Difference between revisions of "Related"
Stratonian (talk | contribs) m (syntax) |
Stratonian (talk | contribs) m (added notext parameter for customisation) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:stat|{{sc|{{{2}}}}}}}<!-- define stat --> | <includeonly>{{#vardefine:stat|{{sc|{{{2}}}}}}}<!-- define stat --> | ||
+ | {{#if:{{{notext|}}}||<!-- only display below text if 'notext' isn't used --> | ||
==Related== | ==Related== | ||
The following can affect (or are affected by) a character's {{#var:stat}}. | The following can affect (or are affected by) a character's {{#var:stat}}. | ||
+ | }} | ||
{{#arraydefine:categories|{{{1}}}}}<!-- split comma-separated list into array | {{#arraydefine:categories|{{{1}}}}}<!-- split comma-separated list into array | ||
-->{{#arrayprint:categories||@| | -->{{#arrayprint:categories||@| | ||
{{#vardefine:category|{{sc|@}}}}<!-- get proper capitalization --> | {{#vardefine:category|{{sc|@}}}}<!-- get proper capitalization --> | ||
+ | {{#if:{{{notext|}}}||<!-- only display below text if 'notext' isn't used --> | ||
<!-- zero-width space character to render the subheading correctly --> | <!-- zero-width space character to render the subheading correctly --> | ||
==={{#var:category}}=== | ==={{#var:category}}=== | ||
+ | }} | ||
{{#switch:{{#var:category}}<!-- | {{#switch:{{#var:category}}<!-- | ||
-->|Skills=<!-- Category:Skills | -->|Skills=<!-- Category:Skills |
Revision as of 13:21, 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.