Difference between revisions of "AY Honors/Zoo Visit"

From Pathfinder Wiki
(Tried to set something up to alphabetize the Zoo Visit list. Want to also find a way to only display honor name, will work on it some more ...)
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")
 
(4 intermediate revisions by the same user 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 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=AY Honors/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>
[[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: