Difference between revisions of "AY Honors/Tents/Requirements 2"

From Pathfinder Wiki
< AY Honors‎ | TentsAY Honors/Tents/Requirements 2
(Bot: Automated import of articles)
 
m
Line 1: Line 1:
<languages /><br />
+
<noinclude>
<noinclude><translate></noinclude>
+
This template will return the honor category of a page or if it can't tell, then returns Unknown.
==Requirements==
+
It relies on the CategoryTests extension, which also has a #switchcategory parser, and supposedly, that
{{reqreq|page={{PAGENAME}}|num=1}}
+
parser function will let you specify a page other than the one from which it is invoked - but the documentation
{{reqreq|page={{PAGENAME}}|num=2}}
+
on how to specify that is woefully inadequate.
{{reqreq|page={{PAGENAME}}|num=3}}
+
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.
{{reqreq|page={{PAGENAME}}|num=4}}
+
</noinclude>
{{reqreq|page={{PAGENAME}}|num=5}}
+
{{#ifcategory:
{{reqreq|page={{PAGENAME}}|num=6}}
+
Adventist Youth Honors Answer Book/Arts and Crafts|Arts, Crafts, and Hobbies|{{#ifcategory:
{{reqsubreq|page={{PAGENAME}}|num=6a}}
+
Adventist Youth Honors Answer Book/Health and Science|Health and Science|{{#ifcategory:
{{reqsubreq|page={{PAGENAME}}|num=6b}}
+
Adventist Youth Honors Answer Book/Household Arts|Household Arts|{{#ifcategory:
{{reqreq|page={{PAGENAME}}|num=7}}
+
Adventist Youth Honors Answer Book/Nature|Nature|{{#ifcategory:
{{reqreq|page={{PAGENAME}}|num=8}}
+
Adventist Youth Honors Answer Book/Outdoor Industries|Outdoor Industries|{{#ifcategory:
{{reqsubreq|page={{PAGENAME}}|num=8a}}
+
Adventist Youth Honors Answer Book/Recreation|Recreation|{{#ifcategory:
{{reqsubreq|page={{PAGENAME}}|num=8b}}
+
Adventist Youth Honors Answer Book/Outreach|Spiritual Growth, Outreach, and Heritage|{{#ifcategory:
{{reqsubreq|page={{PAGENAME}}|num=8c}}
+
Adventist Youth Honors Answer Book/Vocational|Vocational|{{#ifcategory:
{{reqsubreq|page={{PAGENAME}}|num=8d}}
+
Adventist Youth Honors Answer Book/ADRA|ADRA|{{#ifcategory:
{{reqreq|page={{PAGENAME}}|num=9}}
+
Adventist Youth Honors Answer Book/Regional|Regional|Unknown|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}
[[Category:Honor Requirements|{{#titleparts:{{PAGENAME}}|1|3}}]]
 
<noinclude></translate></noinclude>
 

Revision as of 01:46, 24 November 2020

This template will return the honor category of a page or if it can't tell, then returns Unknown. 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.

Unknown