Template:RefactorEnemySprite: Difference between revisions
imported>AntumDeluge Create Template:RefactorEnemySprite |
imported>AntumDeluge Usage cleanup |
||
| Line 1: | Line 1: | ||
<noinclude>'''Template output:''' |
|||
|- |
|||
<blockquote></noinclude>|- |
|||
| {{#if: {{{1|}}} | {{{1|}}} | <span style="font-style:italic;">(top-level)</span> }} || {{{2|}}} || style="text-align:center;"{{!}}{{{3|}}} || style="text-align:center;"{{!}}{{{4|}}} || {{#if: {{{5|}}} | [https://github.com/arianne/stendhal/blob/{{{5|}}}/data/sprites/monsters{{#if: {{{1|}}} | /{{{1|}}} | }}/{{{2|}}} {{#ifeq: {{{5|}}} | master | current | {{{5|}}} }}] | | }} || {{#if: {{{6|}}} | [https://github.com/arianne/stendhal/blob/{{{6|}}}/data/sprites/monsters{{#if: {{{1|}}} | /{{{1|}}} | }}/{{{2|}}} {{{6|}}}] | {{Status|NA}} }} || {{#if: {{{7|}}} | {{status|assigned|{{{7|}}}}} | {{status|unassigned}} | }} || {{#ifeq: {{{8|}}} | done | {{status|done}} | {{{8|}}} | }} || {{{9|}}}<noinclude> |
| {{#if: {{{1|}}} | {{{1|}}} | <span style="font-style:italic;">(top-level)</span> }} || {{{2|}}} || style="text-align:center;"{{!}}{{{3|}}} || style="text-align:center;"{{!}}{{{4|}}} || {{#if: {{{5|}}} | [https://github.com/arianne/stendhal/blob/{{{5|}}}/data/sprites/monsters{{#if: {{{1|}}} | /{{{1|}}} | }}/{{{2|}}} {{#ifeq: {{{5|}}} | master | current | {{{5|}}} }}] | | }} || {{#if: {{{6|}}} | [https://github.com/arianne/stendhal/blob/{{{6|}}}/data/sprites/monsters{{#if: {{{1|}}} | /{{{1|}}} | }}/{{{2|}}} {{{6|}}}] | {{Status|NA}} }} || {{#if: {{{7|}}} | {{status|assigned|{{{7|}}}}} | {{status|unassigned}} | }} || {{#ifeq: {{{8|}}} | done | {{status|done}} | {{{8|}}} | }} || {{{9|}}}<noinclude></blockquote> |
||
== Description == |
== Description == |
||
| Line 6: | Line 7: | ||
<span style="font-weight:bold;">Template:{{PAGENAME}}</span> |
<span style="font-weight:bold;">Template:{{PAGENAME}}</span> |
||
This template is for listing sprites that need refactoring. Each call to it should be inside a wikitable. |
This template is for listing enemy sprites that need refactoring. Each call to it should be inside a wikitable. |
||
<i><b>FIXME:</b> Would be nice if entire table could be created using template.</i> |
<i><b>FIXME:</b> Would be nice if entire table could be created using template.</i> |
||
| Line 15: | Line 16: | ||
! Input || Output |
! Input || Output |
||
|- |
|- |
||
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|dir|filename|level|dimensions|branch|old|assigned|status|notes}}</nowiki> || <nowiki>|-</nowiki><br><nowiki>| <dir> || <filename> || level || dimensions || [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> |
| <nowiki>{{</nowiki>{{PAGENAME}} <nowiki>| dir | filename | level | dimensions | branch | old | assigned | status | notes}}</nowiki> || <nowiki>|-</nowiki><br><nowiki>| <dir> || <filename> || level || dimensions || [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> |
||
|} |
|} |
||
Revision as of 22:49, 26 November 2017
Template output:
|- | (top-level) || || style="text-align:center;"| || style="text-align:center;"| || || style="text-align:center;background-color:#e6e6fa;"|N/A || style="text-align:center;background-color:#ff0000;"| || ||
Description
Template:RefactorEnemySprite
This template is for listing enemy 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 |
|---|---|
| {{RefactorEnemySprite | dir | filename | level | dimensions | branch | old | assigned | status | notes}} | |- | <dir> || <filename> || level || dimensions || [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.
Arguments:
| Argument | Description |
|---|---|
| 1 | Directory (under data/sprites/monsters) |
| 2 | Filename |
| 3 | Level |
| 4 | Dimensions |
| 4 | Link to location in Git repository |
| 5 | Link to previous sprite in Git repository |
| 6 | User assigned |
| 7 | Status |
| 8 | Notes |
Example
Input:
{| class="wikitable"
! Folder<br>(data/sprites/monsters) || Filename || Level || Dimensions || Git || Previous || Assigned || Status || Notes
{{RefactorEnemySprite|mythical_being|centaur.png|56|48x64|master|4086c9c|AntumDeluge|done|All done.}}
{{RefactorEnemySprite|minotaur|minotaur.png|45|48x64|master|f69e08e|FooUser|WIP|Work-in-progress}}
|}
Output:
Folder
(data/sprites/monsters)Filename Level Dimensions Git Previous Assigned Status Notes mythical_being centaur.png 56 48x64 current 4086c9c AntumDeluge done ✓ All done. minotaur minotaur.png 45 48x64 current f69e08e FooUser WIP Work-in-progress