Difference between revisions of "Related"
Stratonian (talk | contribs) (re-parameterized) |
Stratonian (talk | contribs) (commenting) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:related|{{#switch:{{lc:{{{3|}}}}} | + | <includeonly>{{#vardefine:related|{{#switch:{{lc:{{{3|}}}}}<!-- check format --> |
|row | |row | ||
− | |rows={{#ask: [[Category:{{{1}}}]] [[Has stat::{{{2}}}]] | + | |rows=<!-- Skill row format |
+ | -->{{#ask: [[Category:{{ucfirst:{{lc:{{{1}}}}}}}]]<!-- get pages in corresponding category | ||
+ | --> [[Has stat::{{{2}}}]]<!-- get pages with corresponding stat --> | ||
| ?Has icon | | ?Has icon | ||
| ?Has skill name | | ?Has skill name | ||
Line 10: | Line 12: | ||
| template=Skill row format}} | | template=Skill row format}} | ||
|table | |table | ||
− | |#default={{#ask: [[Category:{{{1}}}]] [[Has stat::{{{2}}}]] | + | |#default=<!-- SkillListTable format |
+ | -->{{#ask: [[Category:{{ucfirst:{{lc:{{{1}}}}}}}]]<!-- get pages in corresponding category | ||
+ | --> [[Has stat::{{{2}}}]]<!-- get pages with corresponding stat --> | ||
| ?Has icon | | ?Has icon | ||
| ?Has skill name | | ?Has skill name | ||
Line 28: | Line 32: | ||
| outrotemplate=SkillListTableFooter | | outrotemplate=SkillListTableFooter | ||
}}}}}} | }}}}}} | ||
− | {{#if:{{#var:related}}|{{#var:related}}|'''No related {{{1}}}.'''}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude> | + | {{#if:{{#var:related}}<!-- if related pages exist |
+ | -->|{{#var:related}}<!-- print related pages | ||
+ | -->|'''No related {{{1}}}.'''}}<!-- else print no related pages | ||
+ | --></includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude> |
Revision as of 15:31, 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.