Template:Resource: Difference between revisions

Jump to navigation Jump to search
Don't rely on deprecated Template:Distance/Transform.
(Giganormous code cleanup. o_o)
(Don't rely on deprecated Template:Distance/Transform.)
Line 41: Line 41:
{{#lvardef: icon | Reaction Icon.png }}
{{#lvardef: icon | Reaction Icon.png }}


| movement =
| movement m =
{{#lvardef: type | {{#if: {{{nameonly|}}}|Movement|[[Movement speed|Movement]]}} }}
{{#lvardef: type | {{#if: {{{nameonly|}}}|Movement|[[Movement speed|Movement]]}} }}
{{#lvardef: icon | Movement Speed Icon.png}}
{{#lvardef: icon | Movement Speed Icon.png}}
{{#if: {{{count|}}}
{{#if: {{{count|}}}
| {{#lvardef: count | {{Distance/Transform|{{{count|}}}}} }}
| {{#lvardef: count | {{Distance|m={{{count|}}}}} }}
| {{#if: {{{2|}}} | {{#lvardef: count | {{Distance/Transform|{{{2|}}}}} }} }}
| {{#if: {{{2|}}} | {{#lvardef: count | {{Distance|m={{{2|}}}}} }} }}
}}
}}


Line 158: Line 158:
| <!-- blank -->
| <!-- blank -->
| {{#lvar: type}}
| {{#lvar: type}}
}}</span>{{#ifeq: {{#lvar: icon}} | Alert Icon.png | [[Category:Pages with unknown resources]] }}</includeonly><noinclude>
}}</span>{{#ifeq: {{#lvar: icon }} | Alert Icon.png
| [[Category:Pages with unknown resources]]
}}{{#ifeq: {{lc: {{#lvar:type}} }} | movement
| [[Category:Pages using the Resource template with the deprecated movement parameter]]
}}</includeonly><noinclude>
==What is this?==
==What is this?==
This is a template for a quicker and more standardized manner of typing out the class-specific resource. This template is intended to be ''inline''.
This is a template for a quicker and more standardized manner of typing out the class-specific resource. This template is intended to be ''inline''.

Navigation menu