Template:RefactorNPCSprite: Difference between revisions

Content deleted Content added
imported>AntumDeluge
Fix description
imported>AntumDeluge
Add parameter for linking to 'previous' version
Line 1:
|-
| {{{1|}}} || {{#if: {{{2|}}} | {{{2|}}} | {{Status|NA}} }} || {{#if: {{{3|}}} | [https://github.com/arianne/stendhal/blob/{{{3|}}}/data/sprites/npc/{{{1|}}} {{#ifeq: {{{3|}}} | master | current | {{{3|}}} }}] | {{Status|NA}} | }} || {{#if: {{{4|}}} | [https://github.com/arianne/stendhal/blob/{{{4|}}}/data/sprites/npc/{{{1|}}} {{{4|}}}] | {{Status|NA}} }} || {{#if: {{{5|}}} | {{status|assigned|{{{45|}}}}} | {{status|unassigned}} | }} || {{#ifeq: {{{56|}}} | done | {{status|done}} | {{{56|}}} | }} || {{{67|}}}<noinclude>
 
== Description ==
 
<span style="font-weight:bold;">'''Template:{{PAGENAME}}</span>'''
 
This template is for listing NPC 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>''
 
== Usage ==
Line 15:
! Input || Output
|-
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|filename|sources|branch|old|assigned|status|notes}}</nowiki> || <nowiki>|-</nowiki><br><nowiki>| <filename> || <sources> || [https://github.com/arianne/stendhal/blob/<branch>/data/sprites/npc/<filename> <branch>] || [https://github.com/arianne/stendhal/blob/<old>/data/sprites/npc/<filename> <old>] || <assigned> || <status> || <notes></nowiki>
|}
 
<i><b>'''''Note:</b>''' Text after the call to this template will be placed in "Notes" column.</i>''
 
== Example ==
 
<p style="font-weight:bold;">'''Input:'''</p>
 
<blockquote>
<nowiki>{|</nowiki> class="wikitable"<br>
<nowiki>! Filename<br>(data/sprites/npc) || Source(s) || Git || Previous || Assigned || Status || Notes</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|adosbankassistantnpc.png|{{NPCSource|ados/bank/BankNPC|Rachel}}|0209e35||||Needs assigned.}}</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|blacksmithnpc.png|{{NPCSource|semos/blacksmith/BlacksmithNPC||Xoderos}}|8178fd1||FooUser|WIP|Work-in-progress}}</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|animal/puppy.png|{{NPCSource|semos/city/PuppyNPC}}|master||BarUser|done|}} All done.</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|animal/cat.png||master|2ccdaaf}}</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|youngsoldiernpc.png|
{{NPCSource|semos/kanmararn/CowardSoldierNPC||Henry}}<br>{{NPCSource|ados/swamp/DeathmatchRecruiterNPC||Thonatus}}<br>{{NPCSource|quests/revivalweeks/SoldierNPCs||Hibitus & Lucanus}}|
}}</nowiki><br>
|}
</blockquote>
 
<p style="font-weight:bold;">'''Output:'''</p>
 
<blockquote>
{| class="wikitable"
! Filename<br>(data/sprites/npc) || Source(s) || Git || Previous || Assigned || Status || Notes
{{RefactorNPCSprite|adosbankassistantnpc.png|{{NPCSource|ados/bank/BankNPC|Rachel}}|0209e35||||Needs assigned.}}
{{RefactorNPCSprite|blacksmithnpc.png|{{NPCSource|semos/blacksmith/BlacksmithNPC||Xoderos}}|8178fd1||FooUser|WIP|Work-in-progress}}
{{RefactorNPCSprite|animal/puppy.png|{{NPCSource|semos/city/PuppyNPC}}|master||BarUser|done|}} All done.
{{RefactorNPCSprite|animal/cat.png||master|2ccdaaf}}
{{RefactorNPCSprite|youngsoldiernpc.png|
{{NPCSource|semos/kanmararn/CowardSoldierNPC||Henry}}<br>{{NPCSource|ados/swamp/DeathmatchRecruiterNPC||Thonatus}}<br>{{NPCSource|quests/revivalweeks/SoldierNPCs||Hibitus & Lucanus}}|
}}
|}
</blockquote>
 
== See Also ==