Difference between revisions of "Template:Reqreq"

From Pathfinder Wiki
Line 1: Line 1:
 +
<noinclude>
 +
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:
 +
<nowiki>{{reqreq|page=Adventist Youth Honors Answer Book/Nature/Amphibians|num=11a}}</nowiki><br />
 +
shows requirement 11a of the Amphibians honor, displayed as below:
 +
 +
{{reqreq|page=Adventist Youth Honors Answer Book/Nature/Amphibians|num=11a}}
 +
 +
</noinclude>
 
{{clear}}
 
{{clear}}
<b>{{#if:{{{dispreq|}}}|{{{dispreq}}}|{{{num}}}.}} {{:{{#titleparts:{{{page}}}|3|1}}/Requirement/{{{num}}}{{#switch:{{SUBPAGENAME}}|es=/es|fr=/fr}}}}</b>
+
{{#if:{{{dispreq|}}}|{{{dispreq}}}|{{{num}}}.}} {{#lst:{{#titleparts:{{{page}}}|3|1}}/Requirements/{{#switch:{{SUBPAGENAME}}|es=/es|fr=/fr}}|req{{{num}}}}}
 
<noinclude>[[Category:Requirements Template]]</noinclude>
 
<noinclude>[[Category:Requirements Template]]</noinclude>

Revision as of 21:09, 29 November 2020

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:


11a. Adventist Youth Honors Answer Book/Nature/Amphibians/Requirements/


{{{num}}}.