Template:Passive feature page: Difference between revisions

Jump to navigation Jump to search
(Added cargo table for passives)
(Add/expand cargo declare, and added cargo store)
Line 116: Line 116:


}}
}}
<!-- CATEGORIES -->{{#ifeq: {{{this is an example|}}} ||
{{#switch: {{{this is an example|}}}  
{{#ifeq: {{#lvar: hasclasslearn}} | 1 | [[Category:Class features]]}}
| yes =
{{#ifeq: {{#lvar: hasracelearn}} | 1 | [[Category:Racial features]]}}
| #default = {{#ifeq: {{#lvar: hasclasslearn}} | 1 | [[Category:Class features]]}} {{#ifeq: {{#lvar: hasracelearn}} | 1 | [[Category:Racial features]]}} {{#if: {{{granted by items|}}} | [[Category:Passive item features]] }}
{{#if: {{{granted by items|}}} | [[Category:Passive item features]] }}
[[Category:Passive features]] {{#if: {{{toggleable|}}} | [[Category:Toggleable passive features]] }} {{#cargo_store:
[[Category:Passive features]]
_table = passives
{{#if: {{{toggleable|}}} | [[Category:Toggleable passive features]] }}
| name = {{{name|{{PAGENAME}} }}}
}}<!-- End if type is not none -->
| image = {{{image|}}}
</includeonly><noinclude>
| toggleable = {{#if:{{{toggleable|}}}|yes}}
{{/doc}}
| is_item = {{#if:{{{granted by items|}}}|yes}}
{{#cargo_declare:
| is_feat = {{#if:{{{granted by feats|}}}|yes}}
| is_racial = {{#ifeq: {{#lvar: hasracelearn}} | 1 | yes}}
| is_class = {{#ifeq: {{#lvar: hasclasslearn}} | 1 | yes}}
| description = {{{description|}}}
| recharge = {{{recharge|}}}
}}
}}</includeonly><noinclude>
{{/doc}}{{#cargo_declare:
_table = passives
_table = passives
| name = String
| name = String
| image = File
| toggleable = Boolean
| is_item = Boolean
| is_feat = Boolean
| is_racial = Boolean
| is_class = Boolean
| description = Wikitext
| description = Wikitext
| image = File
| recharge = String
| recharge = String
| toggleable = Boolean
}}
}}</noinclude>
</noinclude>