Difference between revisions of "Template:AY Honors/Zoo Visit"
(Created page with "<noinclude> ==Mechanics== This template is typically invoked by an Answer Key, and the Answer Key is transcluded by the honor's landing page. Thus, both pages will see this....") |
|||
Line 7: | Line 7: | ||
</noinclude>{{Localize|Zoo visit}} | </noinclude>{{Localize|Zoo visit}} | ||
− | {{#dpl: | + | {{#vardefine:zooPages|{{#dpl: |
|debug=0 | |debug=0 | ||
|category=AY Honors/Zoo visit{{GetLangSuffix}} | |category=AY Honors/Zoo visit{{GetLangSuffix}} | ||
|notcategory=Adventist Youth Honors Answer Book/Secondary | |notcategory=Adventist Youth Honors Answer Book/Secondary | ||
− | |format=, | + | |format=,%PAGE%;,, |
− | |||
|order=ascending | |order=ascending | ||
|namespace=0 | |namespace=0 | ||
+ | }}}} | ||
+ | {{#vardefine: i | 0 }}{{#while: | ||
+ | | {{#explode:{{#var:zooPages}}|;|{{#var: i }}}} | ||
+ | | {{#vardefine:title|{{#titleparts:{{#explode:{{#var:zooPages}}|;|{{#var: i }}}}|2}}}}*[[{{#var:title}}|{{#titleparts:{{#var:title}}|1|2}}]] | ||
+ | {{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }} | ||
}} | }} | ||
<includeonly> | <includeonly> | ||
− | {{# | + | *zooPages={{#var:zooPages}} |
− | + | ||
− | + | [[Category:AY Honors/Zoo visit{{GetLangSuffix}}|{{#titleparts:{{PAGENAME}}|1|2}}]] | |
</includeonly> | </includeonly> |
Revision as of 01:12, 14 April 2021
Mechanics
This template is typically invoked by an Answer Key, and the Answer Key is transcluded by the honor's landing page. Thus, both pages will see this. We don't want to add the Answer Key to the category, so we check the third element of the pagename to see if it's "Answer Key". If it is, this #ifeq statement will emit a "do nothing" comment. Otherwise, it must be the Landing page, so we add the page to the Zoo Visit category.
Template output
If you are planning to visit a zoo or aquarium, be aware that there are various honors that have requirements which can be met by visiting a zoo or aquarium. Individuals can work on multiple honors in one visit, or parts of your group may work on different honors during the same visit.
Here is a list of honors which have requirements that can be met by visiting a zoo or aquarium:
- Creation*Harmful Animals*Creationism*Island Fishing*Temperate Deciduous Forests*Animal Camouflage*Raptors*Rainforests*Venomous Animals*Migration*Dunes*Marsupials*Marine Mammals*Endangered Species*Sharks*Bogs & Fens*Temperate Grasslands*Marsupials & Monotremes*Taiga*Oceans*Palouse