Template:Resource/category: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Created page with "<includeonly>{{#if: {{{1|}}} | {{#lvardef:type|{{{1}}}}} }} {{#switch: {{lc:{{#lvar: type}}}} <!-- lc is to make the input all lower case, so that case is not my biggest priority --> | action = Category:Actions | bonus = Category:Bonus Actions | reaction = Category:Reactions }}</includeonly><noinclude> =What is this?= This is a template that simply adds a category to the transcluded page based on the action type. Only adds categories for actions, bonus acti...") |
HiddenDragon (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
{{#switch: {{lc:{{#lvar: type}}}} <!-- lc is to make the input all lower case, so that case is not my biggest priority --> | {{#switch: {{lc:{{#lvar: type}}}} <!-- lc is to make the input all lower case, so that case is not my biggest priority --> | ||
| action = [[Category:Actions]] | | action = [[Category:Actions]] | ||
| bonus = [[Category:Bonus | | bonus = [[Category:Bonus actions]] | ||
| reaction = [[Category:Reactions]] | | reaction = [[Category:Reactions]] | ||
| movement = [[Category:Movement-expending actions]] | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Line 23: | Line 24: | ||
| <pre>[[Category:Reactions]]</pre> | | <pre>[[Category:Reactions]]</pre> | ||
| {{C|reaction}} | | {{C|reaction}} | ||
|- | |||
| <pre>[[Category:Movement-expending actions]]</pre> | |||
| {{C|movement}} | |||
|} | |} | ||
</noinclude> | </noinclude> |
Latest revision as of 19:03, 13 November 2023
What is this?
This is a template that simply adds a category to the transcluded page based on the action type. Only adds categories for actions, bonus actions and reactions currently.
Category | Input |
---|---|
[[Category:Actions]] |
action
|
[[Category:Bonus Actions]] |
bonus
|
[[Category:Reactions]] |
reaction
|
[[Category:Movement-expending actions]] |
movement
|