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

From Pathfinder Wiki
(Undo revision 445918 by Jomegat (talk))
Tag: Undo
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.
 +
 
==Mechanics==
 
==Mechanics==
This template is typically invoked by an Answer Key, and the Answer Key is transcluded by the honor's landing pageThus, 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" commentOtherwise, it must be the Landing page, so we add the page to the Zoo Visit category.
+
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 zooPagesThat variable is then iterated over to come up with the link.
  
 
==Template output==
 
==Template output==

Revision as of 02:04, 25 April 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: