1,750
editsAd placeholder
User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
update with category auto-detection
(fix display of lone save/duration/recharge) |
(update with category auto-detection) |
||
Line 161: | Line 161: | ||
{{#lvardef: classes-learn-list | | {{#lvardef: classes-learn-list | | ||
{{#loop: level | 1 | 20 | | {{#loop: level | 1 | 20 | | ||
{{#if: {{{ class learns at level {{#var:level}} |}}} | {{blank}} | {{#if: {{{ class learns at level {{#var:level}} |}}} | {{#lvardef:hasclasslearn|1}}{{blank}} | ||
* Class Level {{#var:level}}: {{#invoke: ParseList | main | {{{ class learns at level {{#var:level}} }}} | useTemplate = Class }} | * Class Level {{#var:level}}: {{#invoke: ParseList | main | {{{ class learns at level {{#var:level}} }}} | useTemplate = Class }} | ||
}} | }} | ||
Line 167: | Line 167: | ||
}}{{#lvardef: races-learn-list | | }}{{#lvardef: races-learn-list | | ||
{{#loop: level | 1 | 20 | | {{#loop: level | 1 | 20 | | ||
{{#if: {{{ race learns at level {{#var:level}} |}}} | {{blank}} | {{#if: {{{ race learns at level {{#var:level}} |}}} | {{#lvardef:hasracelearn|1}}{{blank}} | ||
* Character Level {{#var:level}}: {{#invoke: ParseList | main | {{{ race learns at level {{#var:level}} }}} | useTemplate = Race }} | * Character Level {{#var:level}}: {{#invoke: ParseList | main | {{{ race learns at level {{#var:level}} }}} | useTemplate = Race }} | ||
}} | }} | ||
Line 193: | Line 193: | ||
{{{notes}}} | {{{notes}}} | ||
</div>| {{blank}}}}}} | </div>| {{blank}}}}}} | ||
<!-- CATEGORIES -->{{#ifeq: {{lc:{{{type|}}}}} | | <!-- CATEGORIES -->{{#ifeq: {{lc:{{{type|}}}}} |none || | ||
{{#ifeq: {{#lvar: hasclasslearn}} | 1 | |||
|{{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Class Actions]][[Category:Reactions]] | |||
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Class Actions]][[Category:Actions]] | |||
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Class Actions]][[Category:Bonus Actions]] | |||
| [[Category:Class Actions]][[Category:Passive Features]] | |||
}} | |||
|}} | |||
|}} | |||
|{{#ifeq: {{#lvar: hasracelearn}} | 1 | |||
|{{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Racial Action]][[Category:Reactions]] | |{{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Racial Action]][[Category:Reactions]] | ||
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Racial Action]][[Category:Actions]] | |{{#ifeq: {{#lvar: action}} | 1 |[[Category:Racial Action]][[Category:Actions]] | ||
Line 202: | Line 211: | ||
|}} | |}} | ||
| | | | ||
}} <!-- End if race can learn --> | |||
}}<!-- End if class can learn --> | |||
}}<!-- End if type is not none --> | |||
}} | |||
</includeonly><noinclude>This is a page to transclude to generate action pages. It is generally for pages that do not fit the [[Template:SpellPage | <code><nowiki>{{SpellPage}} Template</nowiki></code>]] | </includeonly><noinclude>This is a page to transclude to generate action pages. It is generally for pages that do not fit the [[Template:SpellPage | <code><nowiki>{{SpellPage}} Template</nowiki></code>]] | ||
Line 256: | Line 257: | ||
|- | |- | ||
| {{C|type}} | | {{C|type}} | ||
| Type of page. This is used for categorization. Current types: | | Type of page. This is used for categorization. Currently categorization is auto-detected so there is no need to worry about this parameter unless you don't want categories. Current types: | ||
* none: No categories or specific magic will happen | * none: No categories or specific magic will happen | ||
| <code>type = none</code> | |||
| <code>type = | |||
|- | |- | ||
| {{C|summary}} | | {{C|summary}} | ||
Line 369: | Line 368: | ||
| race learns at level 5 = Wood Elf | | race learns at level 5 = Wood Elf | ||
}}</pre> | }}</pre> | ||
{{User:MetalPlateMage/ | {{User:MetalPlateMage/ActionTemplate2 | ||
| type = none | | type = none | ||
| description = abc | | description = abc |