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

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

Revision as of 23:37, 24 November 2020