Template:RefactorTileset: Difference between revisions
imported>AntumDeluge Use Template:Status|NA for 'Git' column if empty |
imported>AntumDeluge Use Template:Status|unused in maps column |
||
| Line 1: | Line 1: | ||
|- |
|- |
||
| {{#if: {{{1|}}} | {{{1|}}} | <span style="font-style:italic;">(top-level)</span> }} || {{{2|}}} || style="text-align:center;"{{!}}{{{3|}}} || {{#if: {{{4|}}} | [https://github.com/arianne/stendhal/blob/{{{4|}}}/tiled/tileset/{{{1|}}}/{{{2|}}} {{#ifeq: {{{4|}}} | master | current | {{{4|}}} }}] | {{Status|NA}} | }} || {{#if: {{{5|}}} | [https://github.com/arianne/stendhal/blob/{{{5|}}}/tiled/tileset/{{{1|}}}/{{{2|}}} {{{5|}}}] | {{Status|NA}} }} || {{#if: {{{6|}}} | {{status|assigned|{{{6|}}}}} | {{status|unassigned}} | }} || {{#ifeq: {{{7|}}} | done | {{status|done}} | {{#ifeq: {{{7|}}} | deleted | {{Status|deleted}} | {{{7|}}} }} | }} || {{{8|}}}<noinclude> |
| {{#if: {{{1|}}} | {{{1|}}} | <span style="font-style:italic;">(top-level)</span> }} || {{{2|}}} || {{#if: {{{3|}}} | style="text-align:center;"{{!}}{{{3|}}} | {{Status|unused}} }} || {{#if: {{{4|}}} | [https://github.com/arianne/stendhal/blob/{{{4|}}}/tiled/tileset/{{{1|}}}/{{{2|}}} {{#ifeq: {{{4|}}} | master | current | {{{4|}}} }}] | {{Status|NA}} | }} || {{#if: {{{5|}}} | [https://github.com/arianne/stendhal/blob/{{{5|}}}/tiled/tileset/{{{1|}}}/{{{2|}}} {{{5|}}}] | {{Status|NA}} }} || {{#if: {{{6|}}} | {{status|assigned|{{{6|}}}}} | {{status|unassigned}} | }} || {{#ifeq: {{{7|}}} | done | {{status|done}} | {{#ifeq: {{{7|}}} | deleted | {{Status|deleted}} | {{{7|}}} }} | }} || {{{8|}}}<noinclude> |
||
== Description == |
== Description == |
||
| Line 28: | Line 28: | ||
<nowiki>! Folder<br>(tiled/tileset) || Filename || # of<br>Maps || Git || Previous || Assigned || Status || Notes</nowiki><br> |
<nowiki>! Folder<br>(tiled/tileset) || Filename || # of<br>Maps || Git || Previous || Assigned || Status || Notes</nowiki><br> |
||
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|item/textile|blankets.png|3|1b49133||||Needs assigned.}}</nowiki><br> |
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|item/textile|blankets.png|3|1b49133||||Needs assigned.}}</nowiki><br> |
||
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>| |
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>||brown.png|3|ab7c9df||FooUser|WIP|Work-in-progress}}</nowiki><br> |
||
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|building/door|closed_with_notice.png|3|master||BarUser|done|}} All done.</nowiki><br> |
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|building/door|closed_with_notice.png|3|master||BarUser|done|}} All done.</nowiki><br> |
||
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|item/corpse|hanging_skeleton.png|4||f0d1393||deleted}}</nowiki><br> |
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|item/corpse|hanging_skeleton.png|4||f0d1393||deleted}}</nowiki><br> |
||
| Line 40: | Line 40: | ||
! Folder<br>(tiled/tileset) || Filename || # of<br>Maps || Git || Previous || Assigned || Status || Notes |
! Folder<br>(tiled/tileset) || Filename || # of<br>Maps || Git || Previous || Assigned || Status || Notes |
||
{{RefactorTileset|item/textile|blankets.png|3|1b49133||||Needs assigned.}} |
{{RefactorTileset|item/textile|blankets.png|3|1b49133||||Needs assigned.}} |
||
{{RefactorTileset|ground|brown.png| |
{{RefactorTileset|ground|brown.png||ab7c9df||FooUser|WIP|Work-in-progress}} |
||
{{RefactorTileset|building/door|closed_with_notice.png|3|master|12d51cd|BarUser|done|}} All done. |
{{RefactorTileset|building/door|closed_with_notice.png|3|master|12d51cd|BarUser|done|}} All done. |
||
{{RefactorTileset|item/corpse|hanging_skeleton.png|4||f0d1393||deleted}} |
{{RefactorTileset|item/corpse|hanging_skeleton.png|4||f0d1393||deleted}} |
||
Revision as of 05:34, 18 November 2017
|- | (top-level) || || style="text-align:center;background-color:#ff4500;"|UNUSED || style="text-align:center;background-color:#e6e6fa;"|N/A || style="text-align:center;background-color:#e6e6fa;"|N/A || style="text-align:center;background-color:#ff0000;"| || ||
Description
Template:RefactorTileset
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 |
|---|---|
| {{RefactorTileset|dir|filename|maps|branch|old|assigned|status|notes}} | |- | <dir> || <filename> || <maps> || [https://github.com/arianne/stendhal/blob/<branch>/tiled/tileset/<dir>/<filename> <branch>] || [https://github.com/arianne/stendhal/blob/<old>/tiled/tileset/<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>(tiled/tileset) || Filename || # of<br>Maps || Git || Previous || Assigned || Status || Notes
{{RefactorTileset|item/textile|blankets.png|3|1b49133||||Needs assigned.}}
{{RefactorTileset||brown.png|3|ab7c9df||FooUser|WIP|Work-in-progress}}
{{RefactorTileset|building/door|closed_with_notice.png|3|master||BarUser|done|}} All done.
{{RefactorTileset|item/corpse|hanging_skeleton.png|4||f0d1393||deleted}}
|}
Output:
Folder
(tiled/tileset)Filename # of
MapsGit Previous Assigned Status Notes item/textile blankets.png 3 1b49133 N/A Needs assigned. ground brown.png UNUSED ab7c9df N/A FooUser WIP Work-in-progress building/door closed_with_notice.png 3 current 12d51cd BarUser done ✓ All done. item/corpse hanging_skeleton.png 4 N/A f0d1393 deleted