Template:RefactorTileset: Difference between revisions

Content deleted Content added
imported>AntumDeluge
Usage: Fix GitHub link text output
imported>AntumDeluge
Add parameter for linking to 'previous' version
Line 1:
|-
| {{#if: {{{1|}}} | {{{1|}}} | <span style="font-style:italic;">(top-level)</span> }} || {{{2|}}} || {{{3|}}} || {{#if: {{{4|}}} | [https://github.com/arianne/stendhal/blob/{{{4|}}}/tiled/tileset/{{{1|}}}/{{{2|}}} {{#ifeq: {{{4|}}} | master | current | {{{4|}}} }}] | | }} || {{#if: {{{5|}}} | [https://github.com/arianne/stendhal/blob/{{{5|}}}/tiled/tileset/{{{1|}}}/{{{2|}}} {{{5|}}}] | {{Status|NA}} }} || {{#if: {{{6|}}} | {{status|assigned|{{{56|}}}}} | {{status|unassigned}} | }} || {{#ifeq: {{{67|}}} | done | {{status|done}} | {{{67|}}} | }} || {{{78|}}}<noinclude>
 
== Description ==
 
<span style="font-weight:bold;">'''Template:{{PAGENAME}}</span>'''
 
This template is for listing tilesets 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>{{RefactorTileset|dir|filename|maps|branch|old|assigned|status|notes}}</nowiki> || <nowiki>|-</nowiki><br><nowiki>| <dir> || <filename> || <maps> || [https://github.com/arianne/stendhal/blob/<branch>/tiled/tileset/<dir>/<filename> <branch>] || [https://github.com/arianne/stendhal/blob/<old>/tiled/tileset/<dir>/<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 ==
Line 24:
<p style="font-weight:bold;">Input:</p>
 
<blockquote>
<nowiki>{|</nowiki> class="wikitable"</nowiki><br>
<nowiki>! Folder<br>(tiled/tileset) || Filename || # of<br>Maps || Git || Previous || Assigned || Status || Notes</nowiki><br>
<nowiki>{{RefactorTileset|item/textile|blankets.png|3|1b49133|||Needs assigned.}}</nowiki><br>
<nowiki>{{RefactorTileset</nowiki>{{PAGENAME}}<nowiki>|grounditem/textile|brownblankets.png|3|ab7c9df1b49133|FooUser|WIP|Work-in-progress|Needs assigned.}}</nowiki><br>
<nowiki>{{RefactorTileset|building</doornowiki>{{PAGENAME}}<nowiki>|ground|closed_with_noticebrown.png|3|masterab7c9df|BarUser|doneFooUser|WIP|Work-in-progress}} All done.</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|building/door|closed_with_notice.png|3|master||BarUser|done|}} All done.</nowiki><br>
|}
</blockquote>
 
<p style="font-weight:bold;">Output:</p>
 
<blockquote>
{| class="wikitable"
! Folder<br>(tiled/tileset) || Filename || # of<br>Maps || Git || Previous || Assigned || Status || Notes
{{RefactorTileset|item/textile|blankets.png|3|1b49133||||Needs assigned.}}
{{RefactorTileset|ground|brown.png|3|ab7c9df||FooUser|WIP|Work-in-progress}}
{{RefactorTileset|building/door|closed_with_notice.png|3|master|12d51cd|BarUser|done|}} All done.
|}
</blockquote>
 
== See Also ==
 
* [[Special:WhatLinksHere/Template:RefactorTileset{{PAGENAME}} | Pages using Template:{{PAGENAME}}]]