Difference between revisions of "AY Honors/Zoo Visit"

From Pathfinder Wiki
(Marked this version for translation)
m (Jomegat moved page Adventist Youth Honors Answer Book/Zoo Visit to AY Honors/Zoo Visit without leaving a redirect: Part of translatable page "Adventist Youth Honors Answer Book/Zoo Visit")
 
(5 intermediate revisions by 2 users not shown)
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 aquariumIndividuals 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" commentOtherwise, it must be the Landing page, so we add the page to the Zoo Visit category.
  
<!--T:2-->
+
==Template output==
Here is a list of honors which have requirements that can be met by visiting a zoo or aquarium:
+
 
<DynamicPageList>
+
</noinclude>{{Localize|Zoo visit}}
category=Adventist Youth Honors Answer Book/Zoo visit
+
 
notcategory=Adventist Youth Honors Answer Book/Secondary
+
{{#dpl:
order=ascending
+
|debug=0
namespace=0
+
|category=AY Honors/Zoo visit{{GetLangSuffix}}
</DynamicPageList>
+
|notcategory=Adventist Youth Honors Answer Book/Secondary
 +
|format=,\n*[[%PAGE%|%TITLE%]],,
 +
|shownamespace=false
 +
|order=ascending
 +
|namespace=0
 +
}}
  
 
<!--T:3-->
 
<!--T:3-->
 
<includeonly>
 
<includeonly>
[[Category:Adventist Youth Honors Answer Book/Zoo visit|{{SUBPAGENAME}}]]
+
{{#ifeq:Answer Key|{{#titleparts:{{PAGENAME}}|1|3}}
 +
|<!--do nothing-->
 +
|[[Category:AY Honors/Zoo visit{{GetLangSuffix}}|{{SUBPAGENAME}}]]}}
 
</includeonly>
 
</includeonly>
<noinclude></translate></noinclude>
 

Latest revision as of 01:35, 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: