Difference between revisions of "Template:See Also"

From Pathfinder Wiki
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
Displays a list of all the honors for which the specified honor is a prerequisite.
+
Displays a list of all the honors for which the specified honor is a prerequisite. Every Honor-Link is seperated by "%|%".
  
 
==Parameters==
 
==Parameters==
Line 8: Line 8:
  
 
==Example==
 
==Example==
 
+
<div class="toccolours">
<nowiki>{{</nowiki>See Also|honorname=Camping Skills IV}}
+
:<nowiki>{{</nowiki>See Also|honorname=Camping Skills IV}}
 +
</div>
  
 
{{See Also|honorname=Camping Skills IV}}
 
{{See Also|honorname=Camping Skills IV}}
  
</noinclude>
+
</noinclude><includeonly>{{#vardefine:honcat|AY Honors/Prerequisite/{{{honorname|{{#titleparts:{{PAGENAME}}|1|2}}}}}{{GetLangSuffix}}}}{{#vardefine:iacat|AY Honors/Prerequisite IA/{{{honorname|{{#titleparts:{{PAGENAME}}|1|2}}}}}{{GetLangSuffix}}}}{{#ifexpr:{{PAGESINCATEGORY:{{#var:honcat}}}}+{{PAGESINCATEGORY:{{#var:iacat}}}} > 0|{{#dpl:
<includeonly>
 
{{#vardefine:honcat|AY Honors/Prerequisite/{{{honorname|{{#titleparts:{{PAGENAME}}|1|2}}}}}{{GetLangSuffix}}}}
 
{{#vardefine:iacat|AY Honors/Prerequisite IA/{{{honorname|{{#titleparts:{{PAGENAME}}|1|2}}}}}{{GetLangSuffix}}}}
 
{{#ifexpr:{{PAGESINCATEGORY:{{#var:honcat}}}}+{{PAGESINCATEGORY:{{#var:iacat}}}} > 0|
 
<div class="toccolours mw-collapsible" style="width:100%">
 
{{Localize|Earning this honor meets a requirement for}}
 
<div class="mw-collapsible-content">
 
{{#dpl:
 
 
|include={honor_landing}:honorname
 
|include={honor_landing}:honorname
|format=,\n*[[{{#titleparts:%PAGE%|2|1}}¦,]]<br/>,
+
|format=,[[{{#titleparts:%PAGE%|2|1}}¦,]]%{{!}}%,
 
|category={{#var:honcat}}
 
|category={{#var:honcat}}
 
|notcategory=AY Honors/Secondary
 
|notcategory=AY Honors/Secondary
Line 31: Line 24:
 
}}{{#dpl:
 
}}{{#dpl:
 
|include={IA desc{{GetLangSuffix}}}:pagename
 
|include={IA desc{{GetLangSuffix}}}:pagename
|format=,\n*[[%PAGE%¦,]]<br/>,
+
|format=,[[%PAGE%¦,]]%{{!}}%,
 
|category={{#var:iacat}}
 
|category={{#var:iacat}}
 
|nottitleregexp=.*/en$
 
|nottitleregexp=.*/en$
 
|order=ascending
 
|order=ascending
 
|suppresserrors = true
 
|suppresserrors = true
}}
+
}}}}</includeonly>
</div>
 
</div>
 
}}
 
</includeonly>
 

Revision as of 00:27, 3 February 2021

Displays a list of all the honors for which the specified honor is a prerequisite. Every Honor-Link is seperated by "%|%".

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}}

[[AY Honors/Outdoor Leadership - Advanced/Answer Key|]]%|%[[AY Honors/Wilderness Leadership/Answer Key|]]%|%[[AY Honors/Camp Safety - Advanced/Answer Key|]]%|%[[AY Honors/Outdoor Leadership/Answer Key|]]%|%Ranger/Outdoor Living%|%