Template:RefactorSprite: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Show text '(top-level)' if 'dir' is not specified (& other small fixes)
imported>AntumDeluge
Update usage & parameters
Line 1: Line 1:
<noinclude>== Template Output ==

<blockquote></noinclude>
|-
|-
| {{#if: {{{1|}}} | {{{1|}}} | <span style="font-style:italic;">(top-level)</span> }} || {{{2|}}} || {{#if: {{{3|}}} | [https://github.com/arianne/stendhal/blob/{{{3|}}}/data/sprites{{#if: {{{1|}}} | /{{{1|}}} | }}/{{{2|}}} {{#ifeq: {{{3|}}} | master | current | {{{3|}}} }}] | | }} || {{#if: {{{4|}}} | [https://github.com/arianne/stendhal/blob/{{{4|}}}/data/sprites{{#if: {{{1|}}} | /{{{1|}}} | }}/{{{2|}}} {{{4|}}}] | {{Status|NA}} }} || {{#if: {{{5|}}} | {{status|assigned|{{{5|}}}}} | {{status|unassigned}} | }} || {{#ifeq: {{{6|}}} | done | {{status|done}} | {{{6|}}} | }} || {{{7|}}}<noinclude>
| {{#if: {{{1|}}} | {{{1|}}} | <span style="font-style:italic;">(top-level)</span> }} || {{{2|}}} || {{#if: {{{3|}}} | [https://github.com/arianne/stendhal/blob/{{{3|}}}/data/sprites{{#if: {{{1|}}} | /{{{1|}}} | }}/{{{2|}}} {{#ifeq: {{{3|}}} | master | current | {{{3|}}} }}] | | }} || {{#if: {{{4|}}} | [https://github.com/arianne/stendhal/blob/{{{4|}}}/data/sprites{{#if: {{{1|}}} | /{{{1|}}} | }}/{{{2|}}} {{{4|}}}] | {{Status|NA}} }} || {{#if: {{{5|}}} | {{status|assigned|{{{5|}}}}} | {{status|unassigned}} | }} || {{#ifeq: {{{6|}}} | done | {{status|done}} | {{{6|}}} | }} || {{{7|}}}<noinclude>
</blockquote>


== Description ==
== Description ==
Line 6: Line 10:
<span style="font-weight:bold;">Template:{{PAGENAME}}</span>
<span style="font-weight:bold;">Template:{{PAGENAME}}</span>


This template is for listing sprites that need refactoring. Each call to it should be inside a wikitable.
This template is for listing sprites that need refactoring. Each call to it should be inside a properly formatted wikitable.

<i><b>FIXME:</b> Would be nice if entire table could be created using template.</i>


== Usage ==
== Usage ==

* <span style="font-family:monospace;font-size:20px;border:solid 2px;border-color:lightgray;"><nowiki>{{RefactorSprite|dir|filename|[branch]|[old]|[assigned]|[status]|[notes]}}</nowiki><span>

=== Parameters ===

<blockquote>
{| class="wikitable"
! Name || Required || Description
|-
| dir || {{check}} || Relative directory where file is located.
|-
| filename || {{check}} || Filename of file, including extension (e.g., "png").
|-
| branch || || Git branch/commit on which current revision is located.
|-
| old || || Git branch/commit on which previous revision is located.
|-
| assigned || || User to which refactoring responsibilities are reserved.
|-
| status || || Current status of refactoring process.
|-
| notes || || Extra notes.
|}
</blockquote>

== Examples ==

=== Raw ===


{| class="wikitable"
{| class="wikitable"
Line 20: Line 50:
<i><b>Note:</b> Text after the call to this template will be placed in "Notes" column.</i>
<i><b>Note:</b> Text after the call to this template will be placed in "Notes" column.</i>


=== Formatted within Table ===
== Example ==


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