Difference between revisions of "Template:AY Honors/Zoo Visit"

From Pathfinder Wiki
 
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template is typically invoked by an Answer Key, to provide a canned answer for a requirement that involves visiting a zoo or aquarium. The canned answer provides a list of other honors that also require a zoo visit so the instructor can consider using one trip for multiple honors.
+
This template is typically invoked by an Answer Key, to provide a canned answer for a requirement that involves visiting a zoo or aquarium. The canned answer provides a list of other honors that also require a zoo visit so the instructor can consider using one trip for multiple honors.
  
 
==Mechanics==
 
==Mechanics==
The template works by adding the invoking page to the [[:category:AY Honors/Zoo visit]]. It then uses DPL to find all the pages in this category - this is expected to consist of answer key pages. Since we want to provide a list of links to the honor landing pages, the output of DPL is saved in a variable called zooPages. That variable is then iterated over to come up with the link.
+
The template works by adding the invoking page to the [[:category:AY Honors/Zoo visit]]. It then uses DPL to find all the pages in this category - this is expected to consist of answer key pages. Since we want to provide a list of links to the honor landing pages, the output of DPL is saved in a variable called zooPages. That variable is then iterated over to come up with the link.
  
 
==Template output==
 
==Template output==
Line 9: Line 9:
 
</noinclude>{{Localize|Zoo visit}}
 
</noinclude>{{Localize|Zoo visit}}
  
{{#vardefine:zooPages|{{#dpl:
+
{{#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=,%PAGE%;,,
+
|format=,²{GetHonorLandingLink¦page=%PAGE%,,
|order=ascending
+
|ordermethod=sortkey
 
|namespace=0
 
|namespace=0
}}}}
 
<ul>
 
{{#vardefine: i | 0 }}{{#while:
 
| {{#explode:{{#var:zooPages}}|;|{{#var: i }}}}
 
| {{#vardefine:title|{{#explode:{{#var:zooPages}}|;|{{#var: i }}}}}}{{#ifeq:en|{{#titleparts:{{#var:title}}|1|-1}}|<!--skip /en page-->|
 
<li>[[{{#titleparts:{{#var:title}}|2}}|{{GetHonorName|page={{#var:title}}}}]]</li>
 
 
}}
 
}}
{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
 
}}
 
</ul>
 
 
<includeonly>
 
<includeonly>
[[Category:AY Honors/Zoo visit{{GetLangSuffix}}|{{#titleparts:{{PAGENAME}}|1|2}}]]
+
{{#ifeq:en|{{#titleparts:{{PAGENAME}}|1|-1}}|[[Category:AY Honors/Zoo visit/en]]|
 +
[[Category:AY Honors/Zoo visit{{GetLangSuffix}}|{{GetHonorName|page={{PAGENAME}}}}]]}}
 
</includeonly>
 
</includeonly>

Latest revision as of 12:39, 19 September 2021

This template is typically invoked by an Answer Key, to provide a canned answer for a requirement that involves visiting a zoo or aquarium. The canned answer provides a list of other honors that also require a zoo visit so the instructor can consider using one trip for multiple honors.

Mechanics

The template works by adding the invoking page to the category:AY Honors/Zoo visit. It then uses DPL to find all the pages in this category - this is expected to consist of answer key pages. Since we want to provide a list of links to the honor landing pages, the output of DPL is saved in a variable called zooPages. That variable is then iterated over to come up with the link.

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:

Animal Camouflage

Bogs & Fens

Creation

Creationism

Dunes

Endangered Species

Harmful Animals

Island Fishing

Marine Mammals

Marsupials

Marsupials & Monotremes

Migration

Oceans

Rainforests

Raptors

Sharks

Taiga

Temperate Deciduous Forests

Temperate Grasslands

Venomous Animals