Difference between revisions of "Template:See Also"

From Pathfinder Wiki
Line 14: Line 14:
  
 
</noinclude>
 
</noinclude>
<includeonly>{{#vardefine:prereqcat|AY Honors/Prerequisite/{{{honorname|{{#titleparts:{{PAGENAME}}|1|2 }} }}} }}
+
<includeonly>
{{#ifexpr:{{PAGESINCATEGORY:{{#var:prereqcat}}}} > 0|
+
{{#vardefine:honcat|AY Honors/Prerequisite/{{{honorname}}}}}
 +
{{#vardefine:iacat|AY Honors/Prerequisite IA/{{{honorname}}}}}
 +
{{#ifexpr:{{PAGESINCATEGORY:{{#var:honcat}}}}+{{PAGESINCATEGORY:{{#var:iacat}}}} > 0|
 
<div class="toccolours mw-collapsible" style="width:100%">
 
<div class="toccolours mw-collapsible" style="width:100%">
 
{{:Tab Name/Earning this honor meets a requirement for{{GetLangSuffix}}}}
 
{{:Tab Name/Earning this honor meets a requirement for{{GetLangSuffix}}}}
Line 22: Line 24:
 
|include={honor_landing{{GetLangSuffix}}}:honorname
 
|include={honor_landing{{GetLangSuffix}}}:honorname
 
|format=,\n*[[{{#titleparts:%PAGE%|2|1}}{{GetLangSuffix}}¦,]]<br/>,
 
|format=,\n*[[{{#titleparts:%PAGE%|2|1}}{{GetLangSuffix}}¦,]]<br/>,
|category={{#var:prereqcat}}&AY Honor/Honor landing{{GetLangSuffix}}
+
|category={{#var:honcat}}&AY Honor/Honor landing{{GetLangSuffix}}
 
|nottitleregexp=.*/en$
 
|nottitleregexp=.*/en$
 
|order=ascending
 
|order=ascending
Line 29: Line 31:
 
|include={IA desc{{GetLangSuffix}}}:pagename
 
|include={IA desc{{GetLangSuffix}}}:pagename
 
|format=,\n*[[%PAGE%¦,]]<br/>,
 
|format=,\n*[[%PAGE%¦,]]<br/>,
|category={{#var:prereqcat}}
+
|category={{#var:iacat}}
|category=IA desc{{GetLangSuffix}}
 
 
|nottitleregexp=.*/en$
 
|nottitleregexp=.*/en$
 
|order=ascending
 
|order=ascending

Revision as of 04:35, 25 January 2021

Displays a list of all the honors for which the specified honor is a prerequisite.

Parameters

honorname
This parameter specifies the name of the honor. If omitted, the template assumes the can be found as the second element of the page title invoking the template.

This template is related to Template:Honor prerequisite which is used as the answer to most requirements to earn some other honor. That template will add whatever invokes it to [[Category:AY Honors/Prerequisite/honor]], where honor is the prerequisite. Every honor in that category has honor as a prerequisite. This template merely lists all the honors in that category to indicate that once you've earned this one, you're partway to earning another.

Example

{{See Also|honorname=Camping Skills IV}}