Template:RefactorSprite: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Fix description
imported>AntumDeluge
Show text '(top-level)' if 'dir' is not specified (& other small fixes)
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|}}} | [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>
| {{#if: {{{1|}}} | {{{1|}}} | <span style="font-style:italic;">(top-level)</span> }} || {{{2|}}} || {{#if: {{{3|}}} | [https://github.com/arianne/stendhal/blob/{{{3|}}}/data/sprites{{#if: {{{1|}}} | /{{{1|}}} | }}/{{{2|}}} {{#ifeq: {{{3|}}} | master | current | {{{3|}}} }}] | | }} || {{#if: {{{4|}}} | [https://github.com/arianne/stendhal/blob/{{{4|}}}/data/sprites{{#if: {{{1|}}} | /{{{1|}}} | }}/{{{2|}}} {{{4|}}}] | {{Status|NA}} }} || {{#if: {{{5|}}} | {{status|assigned|{{{5|}}}}} | {{status|unassigned}} | }} || {{#ifeq: {{{6|}}} | done | {{status|done}} | {{{6|}}} | }} || {{{7|}}}<noinclude>


== Description ==
== Description ==

Revision as of 06:22, 16 November 2017

|- | (top-level) || || || style="text-align:center;background-color:#e6e6fa;"|N/A || style="text-align:center;background-color:#ff0000;"| || ||

Description

Template:RefactorSprite

This template is for listing sprites 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
(top-level) chest.png 284580e N/A Needs assigned.
npc/animal cat.png current 2ccdaaf BarUser done ✓ All done.

See Also