Difference between revisions of "Related"

m (TODO: fix passive talents related)
m
 
Line 16: Line 16:
 
-->{{#ifeq:{{{2|}}}|{{{2}}}<!-- if second parameter exists
 
-->{{#ifeq:{{{2|}}}|{{{2}}}<!-- if second parameter exists
 
-->|[[Has stat::?;?;{{#replace:{{sc|{{{2}}}}}|&nbsp;|_}}]]}}<!-- only get pages with corresponding stat -->
 
-->|[[Has stat::?;?;{{#replace:{{sc|{{{2}}}}}|&nbsp;|_}}]]}}<!-- only get pages with corresponding stat -->
| ?Has icon
+
|?Has icon
| ?Has skill name
+
|?Has skill name
| ?Has cast time
+
|?Has cast time
| ?Has range
+
|?Has range
| ?Has cost
+
|?Has cost
| ?Has cost type
+
|?Has cost type
| ?Has cooldown
+
|?Has cooldown
| ?Is for hero
+
|?Is for hero
| ?Has mastery
+
|?Has mastery
| ?Has skill order
+
|?Has skill order
| sort=Has skill order
+
|sort=Has skill order
| order=asc
+
|order=asc
| format=template
+
|format=template
| introtemplate=Skill table header
+
|introtemplate=Skill table header
| template=Skill table body
+
|template=Skill table body
| outrotemplate=Table footer
+
|outrotemplate=Table footer
| link=none
+
|link=none
 
}}
 
}}
 
|Passive&nbsp;Talents=<!-- Category:Passive talents
 
|Passive&nbsp;Talents=<!-- Category:Passive talents
Line 38: Line 38:
 
-->{{#ifeq:{{{2|}}}|{{{2}}}<!-- if second parameter exists
 
-->{{#ifeq:{{{2|}}}|{{{2}}}<!-- if second parameter exists
 
-->|[[Has stat::?;?;{{#replace:{{sc|{{{2}}}}}|&nbsp;|_}}]]}}<!-- only get pages with corresponding stat -->
 
-->|[[Has stat::?;?;{{#replace:{{sc|{{{2}}}}}|&nbsp;|_}}]]}}<!-- only get pages with corresponding stat -->
| format=template
+
|?Has icon
| introtemplate=Talent table header
+
|?Has branch
| template=Talent table body
+
|?Has tier
| outrotemplate=Table footer
+
|format=template
| link=none
+
|introtemplate=Talent table header
 +
|template=Talent table body
 +
|outrotemplate=Table footer
 +
|link=none
 
}}
 
}}
 
|#default={{error|Invalid category. Check documentation.}}<!-- invalid category error
 
|#default={{error|Invalid category. Check documentation.}}<!-- invalid category error
 
-->}}}}
 
-->}}}}
 
{{#if:{{#var:result}}|{{#var:result}}|'''No {{#var:category}}.'''}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
 
{{#if:{{#var:result}}|{{#var:result}}|'''No {{#var:category}}.'''}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>

Latest revision as of 21:03, 1 June 2024

Description[edit]

Displays a stylized list of all pages in the specified categories that contain the specified Stat.

Usage[edit]

{{Related|<category/categories>|<stat>|<notext=notext>}}

Parameters[edit]

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[edit]

Invalid category. Check documentation.