9,856
editsFurther cleanup.
(Don't rely on deprecated Template:Distance/Transform.) |
(Further cleanup.) |
||
(5 intermediate revisions by the same user not shown) | |||
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 = | |||
{{#lvardef: type | {{#if: {{{nameonly|}}}|Movement|[[Movement speed|Movement]]}} }} | |||
{{#lvardef: icon | Movement Speed Icon.png }} | |||
{{#if: {{{count|}}} {{{2|}}} | |||
| {{#lvardef: count | {{color|red|(ERROR: Use <code>movement m</code> or <code>movement ft</code>.)}} }} | |||
[[Category:Pages with errors]] | |||
}} | |||
| 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|}}} }} }} | ||
| {{#if: {{{2|}}} | {{#lvardef: count | {{Distance|m={{{2|}}}}} }} }} | | {{#if: {{{2|}}} | {{#lvardef: count | {{Distance | m = {{{2|}}} }} }} }} | ||
}} | |||
| movement ft = | |||
{{#lvardef: type | {{#if: {{{nameonly|}}}|Movement|[[Movement speed|Movement]]}} }} | |||
{{#lvardef: icon | Movement Speed Icon.png }} | |||
<!-- Backwards compatibility only; this isn't meant to be used with a value --> | |||
{{#if: {{{count|}}} | |||
| {{#lvardef: count | {{Distance | ft = {{{count|}}} }} }} | |||
| {{#if: {{{2|}}} | {{#lvardef: count | {{Distance | ft = {{{2|}}} }} }} }} | |||
}} | }} | ||
Line 145: | Line 162: | ||
{{#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 178: | ||
| <!-- blank --> | | <!-- blank --> | ||
| {{#lvar: type}} | | {{#lvar: type}} | ||
}}</span> | }}</span></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''. | ||
Line 206: | Line 222: | ||
|- | |- | ||
| {{Resource|movement|forceplural=yes}} | | {{Resource|movement|forceplural=yes}} | ||
| {{C|movement}} | | {{C|movement}} (no value) | ||
|- | |||
| {{Resource|movement m|forceplural=yes}} | |||
| {{C|movement m}} (value in meters) | |||
|- | |||
| {{Resource|movement ft|forceplural=yes}} | |||
| {{C|movement ft}} (value in feet) | |||
|- | |- | ||
| {{Resource|half movement|forceplural=yes}} | | {{Resource|half movement|forceplural=yes}} | ||
Line 302: | Line 324: | ||
| <pre>{{Resource | lh | icononly = yes}}</pre> | | <pre>{{Resource | lh | icononly = yes}}</pre> | ||
|- | |- | ||
| {{Resource | movement | count = 5}} | | {{Resource | movement m | count = 1.5}} | ||
| <pre>{{Resource | movement | count = 5}}</pre> | | <pre>{{Resource | movement m | count = 1.5}}</pre> | ||
|- | |- | ||
| Costs: {{Resource | ki | count = 2 | icononly = yes}} | | Costs: {{Resource | ki | count = 2 | icononly = yes}} |