Difference between revisions of "Related"
Stratonian (talk | contribs) m |
Stratonian (talk | contribs) m |
||
(10 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
-->{{#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::{{sc|{{{2}}}}}]]}}<!-- only get pages with corresponding stat --> | + | -->|[[Has stat::?;?;{{#replace:{{sc|{{{2}}}}}| |_}}]]}}<!-- only get pages with corresponding stat --> |
| ?Has icon | | ?Has icon | ||
| ?Has skill name | | ?Has skill name | ||
Line 29: | Line 29: | ||
| order=asc | | order=asc | ||
| format=template | | format=template | ||
− | | | + | | introtemplate=Skill table header |
− | | | + | | template=Skill table body |
− | | outrotemplate= | + | | outrotemplate=Table footer |
| link=none | | link=none | ||
}} | }} | ||
Line 37: | Line 37: | ||
-->{{#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::{{sc|{{{2}}}}}]]}}<!-- only get pages with corresponding stat --> | + | -->|[[Has stat::?;?;{{#replace:{{sc|{{{2}}}}}| |_}}]]}}<!-- only get pages with corresponding stat --> |
| ?Has talent name | | ?Has talent name | ||
+ | | ?Has stat|+index=3 | ||
| ?Has stat|+index=2 | | ?Has stat|+index=2 | ||
− | |||
| format=template | | format=template | ||
− | | | + | | introtemplate=Talent table header |
− | | | + | | template=Talent table body |
− | | outrotemplate= | + | | outrotemplate=Table footer |
| link=none | | link=none | ||
}} | }} |
Revision as of 14:48, 17 February 2024
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.