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

From Pathfinder Wiki
Line 27: Line 27:
 
</ul>
 
</ul>
 
<includeonly>
 
<includeonly>
[[Category:AY Honors/Zoo visit{{GetLangSuffix}}|{{#titleparts:{{PAGENAME}}|1|2}}]]
+
[[Category:AY Honors/Zoo visit{{GetLangSuffix}}|{{GetHonorName|page={{#titleparts:{{PAGENAME}}|2}}}}]]
 
</includeonly>
 
</includeonly>

Revision as of 02:18, 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

Cannot access the database: :real_connect(): (08004/1040): Too many connections