Difference between revisions of "Template:GetHonorAuthority"

From Pathfinder Wiki
(Created page with "<noinclude> This template will return the approval authority of an honor page or if it can't tell, then returns Unknown. It relies on the CategoryTests extension, which also h...")
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template will return the approval authority of an honor page or if it can't tell, then returns Unknown.
+
This template will return the approval authority of an honor page specified by the '''page''' argument. If no page argument is supplied, it assumes that the page invoking this template is a sub-page one level down from the honor page.
It relies on the CategoryTests extension, which also has a #switchcategory parser, and supposedly, that
 
parser function will let you specify a page other than the one from which it is invoked - but the documentation
 
on how to specify that is woefully inadequate.
 
Instead, this just uses nested if statements.  Note that the number of {{{page}}} tags at the end has to equal the number of #ifcategory statements.  Yes... it's ugly.
 
 
</noinclude>
 
</noinclude>
{{#ifcategory:
+
{{#dpl:title={{{page|{{BASEPAGENAME}}}}}|include={honor_landing}:authority}}
Adventist Youth Honors Answer Book/General Conference|General Conference|{{#ifcategory:
 
Adventist Youth Honors Answer Book/North American Division|North American Division|{{#ifcategory:
 
Adventist Youth Honors Answer Book/South American Division|South American Division|{{#ifcategory:
 
Adventist Youth Honors Answer Book/South Pacific Division|South Pacific Division|{{#ifcategory:
 
Adventist Youth Honors Answer Book/British Union|British Union|{{#ifcategory:
 
Adventist Youth Honors Answer Book/Southeast Asia Union|Southeast Asia Union|{{#ifcategory:
 
Adventist Youth Honors Answer Book/Florida Conference|Florida Conference|{{#ifcategory:
 
Adventist Youth Honors Answer Book/Puerto Rican Union|Puerto Rican Union|{{#ifcategory:
 
Adventist Youth Honors Answer Book/Potomac Conference|Potomac Conference|{{#ifcategory:
 
Adventist Youth Honors Answer Book/South Caribbean Conference|South Caribbean Conference|{{#ifcategory:
 
Adventist Youth Honors Answer Book/Southern New England Conference|Southern New England Conference|{{#ifcategory:
 
Adventist Youth Honors Answer Book/Arkansas-Louisiana Conference|Arkansas-Louisiana Conference|Unknown|
 
{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}
 

Latest revision as of 21:53, 20 January 2021

This template will return the approval authority of an honor page specified by the page argument. If no page argument is supplied, it assumes that the page invoking this template is a sub-page one level down from the honor page.