Difference between revisions of "Related"
Stratonian (talk | contribs) m (start case) |
Stratonian (talk | contribs) m (unnecessary stat variable) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:category|{{ucfirst:{{lc:{{{1}}}}}}}}}<!-- define category variable | <includeonly>{{#vardefine:category|{{ucfirst:{{lc:{{{1}}}}}}}}}<!-- define category variable | ||
− | |||
-->{{#vardefine:related|<!-- define related pages | -->{{#vardefine:related|<!-- define related pages | ||
-->{{#switch:{{#var:category}} | -->{{#switch:{{#var:category}} | ||
Line 6: | Line 5: | ||
-->{{#ask: [[Category:{{#var:category}}]]<!-- get pages in corresponding category | -->{{#ask: [[Category:{{#var:category}}]]<!-- get pages in corresponding category | ||
-->{{#ifeq:{{{2|}}}|{{{2}}}<!-- if second parameter exists | -->{{#ifeq:{{{2|}}}|{{{2}}}<!-- if second parameter exists | ||
− | -->|[[Has stat::{{ | + | -->|[[Has stat::{{sc|{{{2}}}}}]]}}<!-- only get pages with corresponding stat --> |
| ?Has icon | | ?Has icon | ||
| ?Has skill name | | ?Has skill name | ||
Line 27: | Line 26: | ||
-->{{#ask: [[Category:{{#var:category}}]]<!-- get pages in corresponding category | -->{{#ask: [[Category:{{#var:category}}]]<!-- get pages in corresponding category | ||
-->{{#ifeq:{{{2|}}}|{{{2}}}<!-- if second parameter exists | -->{{#ifeq:{{{2|}}}|{{{2}}}<!-- if second parameter exists | ||
− | -->|[[Has stat::{{ | + | -->|[[Has stat::{{sc|{{{2}}}}}]]}}<!-- only get pages with corresponding stat --> |
| ?Has stat | | ?Has stat | ||
| ?Has stat value | | ?Has stat value |
Revision as of 20:14, 11 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.