Template:Resource: Difference between revisions

Jump to navigation Jump to search
(Fix.)
No edit summary
Line 27: Line 27:


<!-- lc is to make the input all lower case, so that case is not my biggest priority -->
<!-- lc is to make the input all lower case, so that case is not my biggest priority -->
{{#switch: {{lc:{{#lvar:type}}}}
{{#switch: {{lc: {{#lvar:type}} }}


| action =
| action =
Line 40: Line 40:
{{#lvardef: type | {{#if: {{{nameonly|}}}|Reaction|[[Reaction]]}}{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }}
{{#lvardef: type | {{#if: {{{nameonly|}}}|Reaction|[[Reaction]]}}{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }}
{{#lvardef: icon | Reaction Icon.png }}
{{#lvardef: icon | Reaction Icon.png }}
| movement =
[[Category:Pages using the Resource template with the deprecated movement parameter]]
{{#lvardef: type | {{#if: {{{nameonly|}}}|Movement|[[Movement speed|Movement]]}} }}
{{#lvardef: icon | Movement Speed Icon.png }}
{{#if: {{{count|}}}
| {{#lvardef: count | {{Distance|m={{{count|}}}}} }}
| {{#if: {{{2|}}} | {{#lvardef: count | {{Distance|m={{{2|}}}}} }} }}
}}


| movement m =
| 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|m={{{count|}}}}} }}
| {{#lvardef: count | {{Distance|m={{{count|}}}}} }}
Line 145: Line 154:
{{#lvardef: type | Level 3 Shadow Spell Slot{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }}
{{#lvardef: type | Level 3 Shadow Spell Slot{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }}
{{#lvardef: icon | Shadow Spell Slot Icon.png }}
{{#lvardef: icon | Shadow Spell Slot Icon.png }}
| #default =
[[Category:Pages with unknown resources]]


<!-- end switch -->
<!-- end switch -->
Line 158: Line 170:
| <!-- blank -->
| <!-- blank -->
| {{#lvar: type}}
| {{#lvar: type}}
}}</span>{{#ifeq: {{#lvar: icon }} | Alert Icon.png
}}</span></includeonly><noinclude>
| [[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''.