Template:RefactorNPCSprite: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Change so can be used with Template:NPCSource
imported>AntumDeluge
Use "Template:Status|removed"
 
(25 intermediate revisions by the same user not shown)
Line 1: 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|}}} }}] | | }} || {{#if: {{{4|}}} | {{status|assigned|{{{4|}}}}} | {{status|unassigned}} | }} || {{#ifeq: {{{5|}}} | done | {{status|done}} | {{{5|}}} | }} || {{{6|}}}<noinclude>
| {{{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|{{{5|}}}}} | {{status|unassigned}} | }} || {{#ifeq: {{{6|}}} | done | {{status|done}} | {{#ifeq: {{{6|}}} | removed | {{Status|removed}} | {{{6|}}} }} }} || {{{7|}}}<noinclude>


== Description ==
== Description ==


<span style="font-weight:bold;">Template:{{PAGENAME}}</span>
'''Template:{{PAGENAME}}'''


This template is for listing tilesets that need refactoring. Each call to it should be inside a wikitable.
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>
'''''FIXME:''' Would be nice if entire table could be created using template.''


== Usage ==
== Usage ==
Line 15: Line 15:
! Input || Output
! Input || Output
|-
|-
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|filename|sources|branch|assigned|status|notes}}</nowiki> || <nowiki>|-</nowiki><br><nowiki>| <filename> || <sources> || [https://github.com/arianne/stendhal/blob/<branch>/data/sprites/npc/<filename> <branch>] || <assigned> || <status> || <notes></nowiki>
| <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>
'''''Note:''' Text after the call to this template will be placed in "Notes" column.''


== Example ==
== Example ==


<p style="font-weight:bold;">Input:</p>
<p>'''Input:'''</p>


<blockquote>
<nowiki>{|</nowiki> class="wikitable"<br>
<nowiki>{|</nowiki> class="wikitable"<br>
<nowiki>! Filename<br>(data/sprites/npc) || Source(s) || Git || Assigned || Status || Notes</nowiki><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>|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>|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/puppy.png|{{NPCSource|semos/city/PuppyNPC}}|master||BarUser|done|}} All done.</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|animal/cat.png||master}}</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>
<p>'''Output:'''</p>


<blockquote>
{| class="wikitable"
{| class="wikitable"
! Filename<br>(data/sprites/npc) || Source(s) || Git || Assigned || Status || Notes
! Filename<br>(data/sprites/npc) || Source(s) || Git || Previous || Assigned || Status || Notes
{{RefactorNPCSprite|adosbankassistantnpc.png|{{NPCSource|ados/bank/BankNPC|Rachel}}|0209e35|||Needs assigned.}}
{{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|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/puppy.png|{{NPCSource|semos/city/PuppyNPC}}|master||BarUser|done|}} All done.
{{RefactorNPCSprite|animal/cat.png||master}}
{{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 ==
== See Also ==


* [[Templates|List of templates]]
* [[Special:WhatLinksHere/Template:{{PAGENAME}} | Pages using Template:{{PAGENAME}}]]




[[Category:Stendhal]]
[[Category:Stendhal]]
[[Category:Development]]
[[Category:Development]]
[[Category:RefactoringTemplates]]

Latest revision as of 00:05, 16 March 2018

|- | || style="text-align:center;background-color:#e6e6fa;"|N/A || 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:RefactorNPCSprite

This template is for listing NPC 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
{{RefactorNPCSprite|filename|sources|branch|old|assigned|status|notes}} |-
| <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>

Note: Text after the call to this template will be placed in "Notes" column.

Example

Input:

{| 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}}|
{{PAGENAME}}|woman_001_npc.png|unused||||removed}} }}
|}

Output:

Filename
(data/sprites/npc)
Source(s) Git Previous Assigned Status Notes
adosbankassistantnpc.png Rachel 0209e35 N/A Needs assigned.
blacksmithnpc.png semos/blacksmith/BlacksmithNPC(Xoderos) 8178fd1 N/A FooUser WIP Work-in-progress
animal/puppy.png semos/city/PuppyNPC current N/A BarUser done ✓ All done.
animal/cat.png N/A current 2ccdaaf
youngsoldiernpc.png semos/kanmararn/CowardSoldierNPC(Henry)
ados/swamp/DeathmatchRecruiterNPC(Thonatus)
quests/revivalweeks/SoldierNPCs(Hibitus & Lucanus)
N/A N/A
woman_001_npc.png UNUSED N/A N/A removed ✓

See Also