42,805
edits
m
no edit summary
(Giganormous code cleanup. o_o) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(7 intermediate revisions by one other 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 43: | Line 43: | ||
| movement = | | movement = | ||
{{#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|}}} {{{2|}}} | |||
| {{#lvardef: count | {{color|red|(ERROR: Use <code>movement m</code> or <code>movement ft</code>.)}} }} | |||
[[Category:Pages with errors]] | |||
}} | |||
| movement m = | |||
{{#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 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|}}} | {{#if: {{{count|}}} | ||
| {{#lvardef: count | {{Distance | | {{#lvardef: count | {{Distance | ft = {{{count|}}} }} }} | ||
| {{#if: {{{2|}}} | {{#lvardef: count | {{Distance | | {{#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 202: | 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 243: | Line 269: | ||
| {{Resource|l6|forceplural=yes}} | | {{Resource|l6|forceplural=yes}} | ||
| {{C|l6, s6, spell6, level6}} | | {{C|l6, s6, spell6, level6}} | ||
|- | |||
| {{Resource|shadowlevel3|forceplural=yes}} | |||
| {{C|shadowspell3, ss3, shadowlevel3, sl3}} | |||
|- | |- | ||
| {{Resource|lh|forceplural=yes}} | | {{Resource|lh|forceplural=yes}} | ||
Line 298: | Line 327: | ||
| <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}} |