Template:Resource/category: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(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...")
 
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 Actions]]
| 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.

parameter
Category Input
[[Category:Actions]]
action
[[Category:Bonus Actions]]
bonus
[[Category:Reactions]]
reaction
[[Category:Movement-expending actions]]
movement