Difference between revisions of "AY Honors/Zoo Visit"

From Pathfinder Wiki
(Localize the Zoo visit template)
Line 1: Line 1:
<noinclude><translate><!--T:1-->
+
<noinclude>
</noinclude>
+
==Mechanics==
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.
+
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==
 +
 
 +
</noinclude>{{Localize|Zoo visit}}
  
<!--T:2-->
 
Here is a list of honors which have requirements that can be met by visiting a zoo or aquarium:
 
 
{{#dpl:
 
{{#dpl:
|category=Adventist Youth Honors Answer Book/Zoo visit
+
|debug=0
 +
|category=Adventist Youth Honors Answer Book/Zoo visit{{GetLangSuffix}}
 
|notcategory=Adventist Youth Honors Answer Book/Secondary
 
|notcategory=Adventist Youth Honors Answer Book/Secondary
 
|format=,\n*[[%PAGE%|%TITLE%]],,
 
|format=,\n*[[%PAGE%|%TITLE%]],,
Line 16: Line 19:
 
<!--T:3-->
 
<!--T:3-->
 
<includeonly>
 
<includeonly>
<!-- 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. -->{{#ifeq:Answer Key|{{#titleparts:{{PAGENAME}}|1|3}}
+
{{#ifeq:Answer Key|{{#titleparts:{{PAGENAME}}|1|3}}
 
|<!--do nothing-->
 
|<!--do nothing-->
|[[Category:Adventist Youth Honors Answer Book/Zoo visit|{{SUBPAGENAME}}]]}}
+
|[[Category:Adventist Youth Honors Answer Book/Zoo visit{{GetLangSuffix}}|{{SUBPAGENAME}}]]}}
 
</includeonly>
 
</includeonly>
<noinclude></translate></noinclude>
 

Revision as of 01:28, 1 February 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: