Difference between revisions of "Related"
Stratonian (talk | contribs) m (zero-width space character is needed) |
Stratonian (talk | contribs) m (removed 'stat' parameter since it was causing formatting problems) |
||
Line 1: | Line 1: | ||
− | <includeonly | + | <includeonly>{{#if:{{{notext|}}}||<!-- only display below text if 'notext' isn't used --> |
− | |||
==Related== | ==Related== | ||
− | The following can affect (or are affected by) a character's {{ambiguate|{{ | + | The following can affect (or are affected by) a character's {{sc|{{ambiguate|{{{2}}}}}}}. |
}} | }} | ||
{{#arraydefine:categories|{{{1}}}}}<!-- split comma-separated list into array | {{#arraydefine:categories|{{{1}}}}}<!-- split comma-separated list into array | ||
Line 15: | Line 14: | ||
-->{{#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 36: | Line 35: | ||
-->{{#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 talent name | | ?Has talent name | ||
| ?Has stat | | ?Has stat |
Revision as of 14:08, 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.