Template:RefactorEnemySprite: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Add TODO item
imported>AntumDeluge
Add 10th arg for displaying alternate enemy name
Line 1: Line 1:
<noinclude>'''Template output:'''
<noinclude>'''Template output:'''
<blockquote></noinclude>|-
<blockquote></noinclude>|-
| {{#if: {{{1|}}} | {{{1|}}} | <span style="font-style:italic;">(top-level)</span> }} || {{{2|}}} || {{#ifeq: {{{3|}}} | unused | {{Status|unused}} | 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|}}} }}] | {{Status|NA}} | }} || {{#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>
| {{#if: {{{1|}}} | {{{1|}}} | <span style="font-style:italic;">(top-level)</span> }} || {{{2|}}} {{#if: {{{10|}}} | ({{{10|}}}) | }} || {{#ifeq: {{{3|}}} | unused | {{Status|unused}} | 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|}}} }}] | {{Status|NA}} | }} || {{#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 54: Line 54:
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|orc|orc.png|10|48x64|}}</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|orc|orc.png|10|48x64|}}</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|dwarf|deep_guardian_dwarf.png|unused|48x64||4086c9c}}</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|dwarf|deep_guardian_dwarf.png|unused|48x64||4086c9c}}</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|gnome|woman_gnome.png|2|48x64|master|4086c9c|JOeJOe|done|Based on <i>gnome</i> sprite.|mage gnome}}</nowiki><br>
|}
|}
</blockquote>
</blockquote>
Line 66: Line 67:
{{RefactorEnemySprite|orc|orc.png|10|48x64|}}
{{RefactorEnemySprite|orc|orc.png|10|48x64|}}
{{RefactorEnemySprite|dwarf|deep_guardian_dwarf.png|unused|48x64||4086c9c}}
{{RefactorEnemySprite|dwarf|deep_guardian_dwarf.png|unused|48x64||4086c9c}}
{{RefactorEnemySprite|gnome|woman_gnome.png|2|48x64|master|4086c9c|JOeJOe|done|Based on <i>gnome</i> sprite.|mage gnome}}
|}
|}
</blockquote>
</blockquote>

Revision as of 08:39, 14 December 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:#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.

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
5 Git (Link to location in Git repository)
6 Previous (Link to previous sprite in Git repository)
7 Assigned (User assigned)
8 Status
9 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}}
{{RefactorEnemySprite|orc|orc.png|10|48x64|}}
{{RefactorEnemySprite|dwarf|deep_guardian_dwarf.png|unused|48x64||4086c9c}}
{{RefactorEnemySprite|gnome|woman_gnome.png|2|48x64|master|4086c9c|JOeJOe|done|Based on <i>gnome</i> sprite.|mage gnome}}
|}

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
orc orc.png 10 48x64 N/A N/A
dwarf deep_guardian_dwarf.png UNUSED 48x64 N/A 4086c9c
gnome woman_gnome.png (mage gnome) 2 48x64 current 4086c9c JOeJOe done ✓ Based on gnome sprite.

TODO

  • Find a way to parse .png extension.
  • FIXME: Would be nice if entire table could be created using template.

See Also