Template:RefactorSprite: Difference between revisions
imported>AntumDeluge Create Template:RefactorSprite |
imported>AntumDeluge Add parameter for linking to 'previous' version |
||
| Line 1: | Line 1: | ||
|- |
|- |
||
| {{{1|}}} || {{{2|}}} || {{#if: {{{3|}}} | [https://github.com/arianne/stendhal/blob/{{{3|}}}/data/sprites/{{{1|}}}/{{{2|}}} {{#ifeq: {{{3|}}} | master | current | {{{3|}}} }}] | | }} || {{#if: {{{4|}}} | {{status|assigned|{{{ |
| {{{1|}}} || {{{2|}}} || {{#if: {{{3|}}} | [https://github.com/arianne/stendhal/blob/{{{3|}}}/data/sprites/{{{1|}}}/{{{2|}}} {{#ifeq: {{{3|}}} | master | current | {{{3|}}} }}] | | }} || {{#if: {{{4|}}} | [https://github.com/arianne/stendhal/blob/{{{4|}}}/data/sprites/{{{1|}}}/{{{2|}}} {{{4|}}}] | {{Status|NA}} }} || {{#if: {{{5|}}} | {{status|assigned|{{{5|}}}}} | {{status|unassigned}} | }} || {{#ifeq: {{{6|}}} | done | {{status|done}} | {{{6|}}} | }} || {{{7|}}}<noinclude> |
||
== Description == |
== Description == |
||
| Line 15: | Line 15: | ||
! Input || Output |
! Input || Output |
||
|- |
|- |
||
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|dir|filename|branch|assigned|status|notes}}</nowiki> || <nowiki>|-</nowiki><br><nowiki>| <dir> || <filename> || [https://github.com/arianne/stendhal/blob/<branch>/data/sprites/<dir>/<filename> <branch>] || <assigned> || <status> || <notes></nowiki> |
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|dir|filename|branch|old|assigned|status|notes}}</nowiki> || <nowiki>|-</nowiki><br><nowiki>| <dir> || <filename> || [https://github.com/arianne/stendhal/blob/<branch>/data/sprites/<dir>/<filename> <branch>] || [https://github.com/arianne/stendhal/blob/<old>/data/sprites/<dir>/<filename> <old>] || <assigned> || <status> || <notes></nowiki> |
||
|} |
|} |
||
| Line 25: | Line 25: | ||
<nowiki>{|</nowiki> class="wikitable"<br> |
<nowiki>{|</nowiki> class="wikitable"<br> |
||
<nowiki>! Folder<br>(data/sprites) || Filename || Git || Assigned || Status || Notes</nowiki><br> |
<nowiki>! Folder<br>(data/sprites) || Filename || Git || Previous || Assigned || Status || Notes</nowiki><br> |
||
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>| |
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|monsters/minotaur|minotaur.png|master|f69e08e|FooUser|WIP|Work-in-progress}}</nowiki><br> |
||
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>||chest.png|284580e| |
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>||chest.png|284580e||||Needs assigned.}}</nowiki><br> |
||
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|npc/animal|cat.png|master|BarUser|done|}} All done.</nowiki><br> |
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|npc/animal|cat.png|master|2ccdaaf|BarUser|done|}} All done.</nowiki><br> |
||
|} |
|} |
||
| Line 34: | Line 34: | ||
{| class="wikitable" |
{| class="wikitable" |
||
! Folder<br>(data/sprites) || Filename || Git || Assigned || Status || Notes |
! Folder<br>(data/sprites) || Filename || Git || Previous || Assigned || Status || Notes |
||
{{RefactorSprite| |
{{RefactorSprite|monsters/minotaur|minotaur.png|master|f69e08e|FooUser|WIP|Work-in-progress}} |
||
{{RefactorSprite||chest.png|284580e| |
{{RefactorSprite||chest.png|284580e||||Needs assigned.}} |
||
{{RefactorSprite|npc/animal|cat.png|master|BarUser|done|}} All done. |
{{RefactorSprite|npc/animal|cat.png|master|2ccdaaf|BarUser|done|}} All done. |
||
|} |
|} |
||
Revision as of 05:30, 16 November 2017
|- | || || || style="text-align:center;background-color:#e6e6fa;"|N/A || style="text-align:center;background-color:#ff0000;"| || ||
Description
Template:RefactorSprite
This template is for listing tilesets that need refactoring. Each call to it should be inside a wikitable.
FIXME: Would be nice if entire table could be created using template.
Usage
| Input | Output |
|---|---|
| {{RefactorSprite|dir|filename|branch|old|assigned|status|notes}} | |- | <dir> || <filename> || [https://github.com/arianne/stendhal/blob/<branch>/data/sprites/<dir>/<filename> <branch>] || [https://github.com/arianne/stendhal/blob/<old>/data/sprites/<dir>/<filename> <old>] || <assigned> || <status> || <notes> |
Note: Text after the call to this template will be placed in "Notes" column.
Example
Input:
{| class="wikitable"
! Folder<br>(data/sprites) || Filename || Git || Previous || Assigned || Status || Notes
{{RefactorSprite|monsters/minotaur|minotaur.png|master|f69e08e|FooUser|WIP|Work-in-progress}}
{{RefactorSprite||chest.png|284580e||||Needs assigned.}}
{{RefactorSprite|npc/animal|cat.png|master|2ccdaaf|BarUser|done|}} All done.
|}
Output:
| Folder (data/sprites) |
Filename | Git | Previous | Assigned | Status | Notes |
|---|---|---|---|---|---|---|
| monsters/minotaur | minotaur.png | current | f69e08e | FooUser | WIP | Work-in-progress |
| chest.png | 284580e | N/A | Needs assigned. | |||
| npc/animal | cat.png | current | 2ccdaaf | BarUser | done ✓ | All done. |