Difference between revisions of "Related"

m
(re-parameterized)
Line 1: Line 1:
<includeonly>{{#vardefine:skills|{{#switch:{{lc:{{{2|}}}}}
+
<includeonly>{{#vardefine:related|{{#switch:{{lc:{{{3|}}}}}
 
|row
 
|row
|rows={{#ask: [[Category:Skills]] [[Has stat::{{{1}}}]]
+
|rows={{#ask: [[Category:{{{1}}}]] [[Has stat::{{{2}}}]]
 
| ?Has icon
 
| ?Has icon
 
| ?Has skill name
 
| ?Has skill name
Line 10: Line 10:
 
| template=Skill row format}}
 
| template=Skill row format}}
 
|table
 
|table
|#default={{#ask: [[Category:Skills]] [[Has stat::{{{1}}}]]
+
|#default={{#ask: [[Category:{{{1}}}]] [[Has stat::{{{2}}}]]
 
| ?Has icon
 
| ?Has icon
 
| ?Has skill name
 
| ?Has skill name
Line 28: Line 28:
 
| outrotemplate=SkillListTableFooter
 
| outrotemplate=SkillListTableFooter
 
}}}}}}
 
}}}}}}
{{#if:{{#var:skills}}|{{#var:skills}}|'''No skills.'''}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
+
{{#if:{{#var:related}}|{{#var:related}}|'''No related {{{1}}}.'''}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>

Revision as of 15:25, 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

Arrow.png1: The categories to query.
Required.
Notes: Comma separated, can be skills or passive talents
Arrow.png2: The stat to query.
Required.
Arrow.pngnotext: 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.