Difference between revisions of "Template:Requirement pdf"

From Pathfinder Wiki
(Created page with "{| |- style="vertical-align:top;" |rowspan="2"|200px |style="text-align:right" |<b><big><big>Backpacking</big></big><hr style="height:5px"/></b>...")
 
Line 1: Line 1:
 +
<noinclude>
 +
This template formats a requirements page to make it look like one of the PDF's produced by Advent''Source''.
 +
==Parameters==
 +
;page: Page title of the honor's landing page
 +
;reqs: Requirements body - use the
 +
 +
<nowiki>{{reqreq|page=Landing Page Name|num=<requirement number>}}</nowiki>
 +
 +
To display the requirements correctly (listing all the requirements and indenting them as necessary).
 +
 +
Example:<br />
 +
 +
<nowiki>{{Requirement pdf|page=AY Honors/Amphibians|reqs=</nowiki><br />
 +
<nowiki>{{reqreq|page=AY Honors/Amphibians|num=1}}<br /></nowiki><br />
 +
<nowiki>{{reqreq|page=AY Honors/Amphibians|num=2}}<br /></nowiki><br />
 +
<nowiki>{{reqreq|page=AY Honors/Amphibians|num=3}}<br /></nowiki><br />
 +
<nowiki>{{reqreq|page=AY Honors/Amphibians|num=4}}<br /></nowiki><br />
 +
<nowiki>}}</nowiki>
 +
 +
{{Requirement pdf|page=AY Honors/Amphibians|reqs=
 +
{{reqreq|page=AY Honors/Amphibians|num=1}}<br />
 +
{{reqreq|page=AY Honors/Amphibians|num=2}}<br />
 +
{{reqreq|page=AY Honors/Amphibians|num=3}}<br />
 +
{{reqreq|page=AY Honors/Amphibians|num=4}}<br />
 +
}}
 +
</noinclude>
 +
<includeonly>
 
{|
 
{|
 
|- style="vertical-align:top;"
 
|- style="vertical-align:top;"
−
|rowspan="2"|[[File:Amphibians_Honor.png|200px]]
+
|rowspan="2"|[[File:{{GetHonorInsignia|page={{{page|{{BASEPAGENAME}}}}}}}|200px]]
−
|style="text-align:right" |<b><big><big>Backpacking</big></big><hr style="height:5px"/></b>
+
|style="text-align:right" |<b><big><big>{{#if:{{{honorname|}}}|{{{honorname}}}|{{#titleparts:{{{page|{{PAGENAME}}}}}|1|2}}}}</big></big><hr style="height:5px"/></b>
 
|-
 
|-
 
|style="text-align:left" |
 
|style="text-align:left" |
−
<b>{{reqreq|page=AY Honors/Amphibians|num=1}}<br />
+
{{{reqs|}}}
−
<b>{{reqreq|page=AY Honors/Amphibians|num=2}}<br />
+
<b><big>Skill Level {{GetSkillLevel|page={{{page|{{BASEPAGENAME}}}}}}}</big></b><br />
−
<b>{{reqreq|page=AY Honors/Amphibians|num=3}}<br />
+
<b>Original Honor {{GetHonorYear|page={{{page|{{BASEPAGENAME}}}}}}}</b>
−
<b>{{reqreq|page=AY Honors/Amphibians|num=4}}<br />
 
−
<br/>
 
−
<b><big>Skill Level 1</big></b><br />
 
−
<b>Original Honor 1976</b>
 
 
|-
 
|-
−
|<b><big>Recreation</big></b><br />
+
|<b><big>{{GetHonorCategory|page={{{page|{{BASEPAGENAME}}}}}}}</big></b><br />
−
<b>General Conference</b><br />
+
<b>{{GetHonorAuthority|page={{{page|{{BASEPAGENAME}}}}}}}</b><br />
 
|}
 
|}
 +
</includeonly>

Revision as of 22:30, 25 December 2020

This template formats a requirements page to make it look like one of the PDF's produced by AdventSource.

Parameters

page
Page title of the honor's landing page
reqs
Requirements body - use the

{{reqreq|page=Landing Page Name|num=<requirement number>}}

To display the requirements correctly (listing all the requirements and indenting them as necessary).

Example:

{{Requirement pdf|page=AY Honors/Amphibians|reqs=
{{reqreq|page=AY Honors/Amphibians|num=1}}<br />
{{reqreq|page=AY Honors/Amphibians|num=2}}<br />
{{reqreq|page=AY Honors/Amphibians|num=3}}<br />
{{reqreq|page=AY Honors/Amphibians|num=4}}<br />
}}


Amphibians AY Honor.png Amphibians

1.
2.
3.
4.
Skill Level
Original Honor