Template:RefactorSprite: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>AntumDeluge Create Template:RefactorSprite |
imported>AntumDeluge Use "Template:Status|removed" |
||
| (24 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>== Template Output == |
|||
<blockquote></noinclude> |
|||
|- |
|- |
||
| {{{1|}}} || {{{2|}}} || {{#if: {{{3|}}} | [https://github.com/arianne/stendhal/blob/{{{3|}}}/data/sprites/{{{1|}}}/{{{2|}}} {{#ifeq: {{{3|}}} | master | current | {{{3|}}} }}] | | }} || {{#if: {{{4|}}} | {{status|assigned|{{{ |
| {{#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> |
|||
== 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 |
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:14px;border:solid 2px;border-color:lightgray;font-weight:bold;"><nowiki>{{RefactorSprite|dir|filename|[branch]|[old]|[assigned]|[status]|[notes]}}</nowiki><span> |
|||
=== Parameters === |
|||
<blockquote> |
|||
{| class="wikitable" |
|||
! Name || Required || Description |
|||
|- |
|||
| dir || {{status|check}} || Relative directory where file is located. |
|||
|- |
|||
| filename || {{status|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> |
|||
| ⚫ | |||
=== Raw === |
|||
{| class="wikitable" |
{| class="wikitable" |
||
! Input || Output |
! Input || Output |
||
|- |
|- |
||
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|dir|filename|branch|assigned|status|notes}}</nowiki> || <nowiki>|-</nowiki><br><nowiki>| <dir> || <filename> || [https://github.com/arianne/stendhal/blob/<branch>/data/sprites/<dir>/<filename> <branch>] || <assigned> || <status> || <notes></nowiki> |
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|dir|filename|branch|old|assigned|status|notes}}</nowiki> || <nowiki>|-</nowiki><br><nowiki>| <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></nowiki> |
||
|} |
|} |
||
<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 === |
|||
| ⚫ | |||
<p style="font-weight:bold;">Input:</p> |
<p style="font-weight:bold;">Input:</p> |
||
<nowiki>{|</nowiki> class="wikitable"<br> |
<nowiki>{|</nowiki> class="wikitable"<br> |
||
<nowiki>! Folder<br>(data/sprites) || Filename || Git || Assigned || Status || Notes</nowiki><br> |
<nowiki>! Folder<br>(data/sprites) || Filename || Git || Previous || Assigned || Status || Notes</nowiki><br> |
||
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>| |
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|monsters/minotaur|minotaur.png|master|f69e08e|FooUser|WIP|Work-in-progress}}</nowiki><br> |
||
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>||chest.png|284580e| |
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>||chest.png|284580e||||Needs assigned.}}</nowiki><br> |
||
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|npc/animal|cat.png| |
<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 34: | Line 65: | ||
{| class="wikitable" |
{| class="wikitable" |
||
! Folder<br>(data/sprites) || Filename || Git || Assigned || Status || Notes |
! Folder<br>(data/sprites) || Filename || Git || Previous || Assigned || Status || Notes |
||
{{RefactorSprite| |
{{RefactorSprite|monsters/minotaur|minotaur.png|master|f69e08e|FooUser|WIP|Work-in-progress}} |
||
{{RefactorSprite||chest.png|284580e| |
{{RefactorSprite||chest.png|284580e||||Needs assigned.}} |
||
{{RefactorSprite|npc/animal|cat.png| |
{{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]] |
|||