Template:RefactorSprite: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Update usage & parameters
imported>AntumDeluge
Use "Template:Status|removed"
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
<blockquote></noinclude>
<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|}}} }}] | {{status|NA}} | }} || {{#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}} | {{#ifeq: {{{6|}}} | removed| {{status|removed}} | {{{6|}}} }} | }} || {{{7|}}}<noinclude>
</blockquote>
</blockquote>


Line 14: Line 14:
== 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>
* <span style="font-family:monospace;font-size:14px;border:solid 2px;border-color:lightgray;font-weight:bold;"><nowiki>{{RefactorSprite|dir|filename|[branch]|[old]|[assigned]|[status]|[notes]}}</nowiki><span>


=== Parameters ===
=== Parameters ===
Line 22: Line 22:
! Name || Required || Description
! Name || Required || Description
|-
|-
| dir || {{check}} || Relative directory where file is located.
| dir || {{status|check}} || Relative directory where file is located.
|-
|-
| filename || {{check}} || Filename of file, including extension (e.g., "png").
| filename || {{status|check}} || Filename of file, including extension (e.g., "png").
|-
|-
| branch || || Git branch/commit on which current revision is located.
| branch || || Git branch/commit on which current revision is located.
Line 58: Line 58:
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|monsters/minotaur|minotaur.png|master|f69e08e|FooUser|WIP|Work-in-progress}}</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|monsters/minotaur|minotaur.png|master|f69e08e|FooUser|WIP|Work-in-progress}}</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>||chest.png|284580e||||Needs assigned.}}</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>||chest.png|284580e||||Needs assigned.}}</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|npc/animal|cat.png|master|2ccdaaf|BarUser|done|}} All done.</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|npc/animal|cat.png||2ccdaaf|BarUser|done|}} All done.</nowiki><br>
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|npc/animal|cat.png||2ccdaaf|NA|removed|}}</nowiki><br>
|}
|}


Line 67: Line 68:
{{RefactorSprite|monsters/minotaur|minotaur.png|master|f69e08e|FooUser|WIP|Work-in-progress}}
{{RefactorSprite|monsters/minotaur|minotaur.png|master|f69e08e|FooUser|WIP|Work-in-progress}}
{{RefactorSprite||chest.png|284580e||||Needs assigned.}}
{{RefactorSprite||chest.png|284580e||||Needs assigned.}}
{{RefactorSprite|npc/animal|cat.png|master|2ccdaaf|BarUser|done|}} All done.
{{RefactorSprite|npc/animal|cat.png||2ccdaaf|BarUser|done|}} All done.
{{RefactorSprite|npc/animal|cat.png||2ccdaaf|NA|removed|}}
|}
|}


== See Also ==
== See Also ==


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




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

Latest revision as of 23:18, 18 March 2018

Template Output

|- | (top-level) || || 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:RefactorSprite

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

Usage

  • {{RefactorSprite|dir|filename|[branch]|[old]|[assigned]|[status]|[notes]}}

Parameters

Name Required Description
dir Relative directory where file is located.
filename 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.

Examples

Raw

Input Output
{{RefactorSprite|dir|filename|branch|old|assigned|status|notes}} |-
| <dir> || <filename> || [https://github.com/arianne/stendhal/blob/<branch>/data/sprites/<dir>/<filename> <branch>] || [https://github.com/arianne/stendhal/blob/<old>/data/sprites/<dir>/<filename> <old>] || <assigned> || <status> || <notes>

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

Formatted within Table

Input:

{| class="wikitable"
! Folder<br>(data/sprites) || Filename || Git || Previous || Assigned || Status || Notes
{{RefactorSprite|monsters/minotaur|minotaur.png|master|f69e08e|FooUser|WIP|Work-in-progress}}
{{RefactorSprite||chest.png|284580e||||Needs assigned.}}
{{RefactorSprite|npc/animal|cat.png||2ccdaaf|BarUser|done|}} All done.
{{RefactorSprite|npc/animal|cat.png||2ccdaaf|NA|removed|}}
|}

Output:

Folder
(data/sprites)
Filename Git Previous Assigned Status Notes
monsters/minotaur minotaur.png current f69e08e FooUser WIP Work-in-progress
(top-level) chest.png 284580e N/A Needs assigned.
npc/animal cat.png N/A 2ccdaaf BarUser done ✓ All done.
npc/animal cat.png N/A 2ccdaaf NA removed ✓

See Also