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>...") |
|||
(One intermediate revision by the same user not shown) | |||
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. If omitted, the template will assume the landing page is the first two elements of the page invoking it. | ||
+ | ;honorname: Name of the honor. If omitted, the template will assume the second element of the page name is the honorname. | ||
+ | ;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: | + | |rowspan="2"|[[File:{{GetHonorInsignia|page={{{page|{{BASEPAGENAME}}}}}}}|200px]] |
− | |style="text-align:right" |<b><big><big> | + | |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" | | ||
− | + | {{{reqs|}}} | |
− | < | + | <b><big>Skill Level {{GetSkillLevel|page={{{page|{{BASEPAGENAME}}}}}}}</big></b><br /> |
− | + | <b>Original Honor {{GetHonorYear|page={{{page|{{BASEPAGENAME}}}}}}}</b> | |
− | |||
− | |||
− | |||
− | <b>Original Honor | ||
|- | |- | ||
− | |<b><big> | + | |<b><big>{{GetHonorCategory|page={{{page|{{BASEPAGENAME}}}}}}}</big></b><br /> |
− | <b> | + | <b>{{GetHonorAuthority|page={{{page|{{BASEPAGENAME}}}}}}}</b><br /> |
|} | |} | ||
+ | </includeonly> |
Latest revision as of 20:51, 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. If omitted, the template will assume the landing page is the first two elements of the page invoking it.
- honorname
- Name of the honor. If omitted, the template will assume the second element of the page name is the honorname.
- 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 />
}}