Difference between revisions of "AY Honors/Tents/Requirements 2"
From Pathfinder Wiki
Jomegat bot (talk | contribs) (Bot: Automated import of articles) |
DesignerThan (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | < | + | <noinclude> |
− | + | 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. |
− | {{ | + | </noinclude> |
− | {{ | + | {{#ifcategory: |
− | {{ | + | Adventist Youth Honors Answer Book/Arts and Crafts|Arts, Crafts, and Hobbies|{{#ifcategory: |
− | {{ | + | Adventist Youth Honors Answer Book/Health and Science|Health and Science|{{#ifcategory: |
− | {{ | + | Adventist Youth Honors Answer Book/Household Arts|Household Arts|{{#ifcategory: |
− | {{ | + | Adventist Youth Honors Answer Book/Nature|Nature|{{#ifcategory: |
− | {{ | + | Adventist Youth Honors Answer Book/Outdoor Industries|Outdoor Industries|{{#ifcategory: |
− | {{ | + | Adventist Youth Honors Answer Book/Recreation|Recreation|{{#ifcategory: |
− | {{ | + | Adventist Youth Honors Answer Book/Outreach|Spiritual Growth, Outreach, and Heritage|{{#ifcategory: |
− | {{ | + | Adventist Youth Honors Answer Book/Vocational|Vocational|{{#ifcategory: |
− | {{ | + | Adventist Youth Honors Answer Book/ADRA|ADRA|{{#ifcategory: |
− | {{ | + | Adventist Youth Honors Answer Book/Regional|Regional|Unknown|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}}|{{{page}}}}} |
− | |||
− |
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