Difference between revisions of "Template:Reqreq"

From Pathfinder Wiki
m (You meant Amphibians but your example was Aboriginal Lore)
Line 6: Line 6:
 
shows requirement 11a of the Amphibians honor, displayed as below:
 
shows requirement 11a of the Amphibians honor, displayed as below:
  
{{reqreq|page=AY Honors/Aboriginal Lore|num=1}}
+
{{reqreq|page=AY Honors/Amphibians|num=1}}
  
 
This uses the #lst: parser directive which takes two arguments: a page, and a section identifier.  The page it references must have section tags with <nowiki><section begin=''identifier''></nowiki> and <nowiki><section end=''identifier''></nowiki>, with the requirement placed between the two tags.
 
This uses the #lst: parser directive which takes two arguments: a page, and a section identifier.  The page it references must have section tags with <nowiki><section begin=''identifier''></nowiki> and <nowiki><section end=''identifier''></nowiki>, with the requirement placed between the two tags.

Revision as of 03:38, 15 January 2021

This template extracts requirement num from page page and displays it in a way that is useful when you just want the requirement without any formatting.

Example: {{reqreq|page=Adventist Youth Honors Answer Book/Nature/Amphibians|num=11a}}
shows requirement 11a of the Amphibians honor, displayed as below:

1. What are the characteristics of amphibians?


This uses the #lst: parser directive which takes two arguments: a page, and a section identifier. The page it references must have section tags with <section begin=''identifier''> and <section end=''identifier''>, with the requirement placed between the two tags. {{{num}}}.