Difference between revisions of "Template:See Also"

From Pathfinder Wiki
Line 1: Line 1:
<noinclude><translate><!--T:4-->
+
<noinclude>
 +
Displays a list of all the honors that the specified honor is a prerequisite to. 
 +
 
 +
==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.
 +
 
 +
==Example==
 +
 
 +
{{See Also|honorname=Camping Skills IV}}
 +
 
 
</noinclude>
 
</noinclude>
 
+
<includeonly>{{#vardefine:prereqcat|AY Honors/Prerequisite/{{{honorname|{{#titleparts:{{PAGENAME}}|1|2 }} }}} }}
<!--T:5-->
+
{{#ifexpr:{{PAGESINCATEGORY:{{#var:prereqcat}}}} > 0|
{{#ifexpr:{{PAGESINCATEGORY:Adventist Youth Honors Answer Book/Prerequisite/{{{1|}}}}} > 0|
 
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:100%">
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:100%">
Earning this honor meets a requirement for:
+
[[:Tab Name/Earning this honor meets a requirement for{{GetLangSuffix}}]]
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
{{#dpl:
 
{{#dpl:
 
|format=,\n*[[%PAGE%¦,]]<br/>,
 
|format=,\n*[[%PAGE%¦,]]<br/>,
|include={Honor desc{{{2|}}}}:honorname
+
|include={Honor tab{{GetLangSuffix}}}:honorname
|category=Adventist Youth Honors Answer Book/Prerequisite/{{{1|}}}
+
|category={{#var:prereqcat}}
|category=Adventist Youth Honors Answer Book/Honor Desc{{{2|}}}
+
|category=AY Honors/Honor tab{{GetLangSuffix}}
 
|nottitleregexp=.*/en$
 
|nottitleregexp=.*/en$
 
|order=ascending
 
|order=ascending
Line 17: Line 25:
 
}}{{#dpl:
 
}}{{#dpl:
 
|format=,\n*[[%PAGE%¦,]]<br/>,
 
|format=,\n*[[%PAGE%¦,]]<br/>,
|include={IA desc{{{2|}}}}:pagename
+
|include={IA desc{{GetLangSuffix}} }:pagename
|category=Adventist Youth Honors Answer Book/Prerequisite/{{{1|}}}
+
|category={{#var:prereqcat}}
|category=IA desc{{{2|}}}
+
|category=IA desc{{GetLangSuffix}}
 
|nottitleregexp=.*/en$
 
|nottitleregexp=.*/en$
 
|order=ascending
 
|order=ascending
Line 27: Line 35:
 
</div>
 
</div>
 
}}
 
}}
 
+
</includeonly>
<!--T:6-->
 
<noinclude></translate></noinclude>
 

Revision as of 23:13, 15 January 2021

Displays a list of all the honors that the specified honor is a prerequisite to.

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.

Example