Difference between revisions of "Related"
Stratonian (talk | contribs) m (used ambiguate template) |
Stratonian (talk | contribs) m (check for no output) |
||
Line 11: | Line 11: | ||
==={{#var:category}}=== | ==={{#var:category}}=== | ||
}} | }} | ||
− | {{#switch:{{#var:category}}<!-- | + | {{#vardefine:result|{{#switch:{{#var:category}}<!-- |
-->|Skills=<!-- Category:Skills | -->|Skills=<!-- Category:Skills | ||
-->{{#ask: [[Category:{{#var:category}}]]<!-- get pages in corresponding category | -->{{#ask: [[Category:{{#var:category}}]]<!-- get pages in corresponding category | ||
Line 46: | Line 46: | ||
}} | }} | ||
|#default={{error|Invalid category. Check documentation.}}<!-- invalid category error | |#default={{error|Invalid category. Check documentation.}}<!-- invalid category error | ||
− | -->}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude> | + | -->}}}} |
+ | {{#if:{{#var:result}}|{{#var:result}}|'''No {{#var:category}}.'''}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude> |
Revision as of 13:44, 15 August 2023
Description
Displays a stylized list of all pages in the specified categories that contain the specified Stat.
Usage
{{Related|<category/categories>|<stat>|<notext=notext>}}
Parameters
- notext: Whether or not to include descriptor text.
- Optional.
- Notes: If not set, the following text will display:
==Related== The following can affect (or are affected by) a character's {{{2}}}.
[For each category, a stylized list and accompanying subheading will display.]
Errors
Invalid category. Check documentation.