Template:RefactorNPCSprite: Difference between revisions

Content deleted Content added
imported>AntumDeluge
Use Template:Status|NA if 'branch' is not specified
imported>AntumDeluge
Use "Template:Status|removed"
 
(25 intermediate revisions by the same user not shown)
Line 1:
|-
| {{{1|}}} || {{#if: {{{2|}}} | {{#ifeq: {{{2|}}} | unused | {{Status|unused}} | {{{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}} | {{#ifeq: {5{{6|}}} | removed | {{Status|removed}} || {{{6|}}} }} }} || {{{7|}}}<noinclude>
 
== Description ==
 
<span style="font-weight:bold;">'''Template:{{PAGENAME}}</span>'''
 
This template is for listing tilesetsNPC 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>
<nowiki>{{</nowiki>PAGENAME<nowiki>}}|woman_001_npc.png|unused||||removed}}
}}</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}}|
}}
{{RefactorNPCSprite|woman_001_npc.png|unused||||removed}}
|}
</blockquote>
 
== See Also ==
 
* [[Templates|List of templates]]
* [[Special:WhatLinksHere/Template:{{PAGENAME}} | Pages using Template:{{PAGENAME}}]]
 
 
[[Category:Stendhal]]
[[Category:Development]]
[[Category:RefactoringTemplates]]