Difference between revisions of "Template:GetHonorLandingPage"
From Pathfinder Wiki
(Created page with "<includeonly> {{#vardefine:page|{{{page|{{#if:{{{honor|}}}|AY Honors/{{{honor}}}|{{#titleparts:{{PAGENAME}}|2}}}}}}}}} {{#vardefineecho:landing:{{#if:{{#explode:{{#var:page}}|...") |
|||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{#vardefine:page|{{{page|{{#if:{{{honor|}}}|AY Honors/{{{honor}}}|{{#titleparts:{{PAGENAME}}|2}}}}}}}}}{{#vardefine:srcpage|{{#if:{{#explode:{{#var:page}}|(|1}}}|{{#explode:{{#var:page}}|(|0}}|{{#var:page}}}}}}{{#titleparts:{{#var:srcpage}}|2}} |
− | {{#vardefine:page|{{{page|{{#if:{{{honor|}}}|AY Honors/{{{honor}}}|{{#titleparts:{{PAGENAME}}|2}}}}}}}}} | ||
− | {{# | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
+ | This template returns the page title of an honor's main landing page. It accepts a page argument which can be any subpage of an honor, and it can also be any variant of an honor. If no page argument is given, it can accept an honor instead. | ||
− | {{GetLandingPage|page=AY Honors/Cycling/Requirements}} | + | *<nowiki>{{</nowiki>GetLandingPage}} → {{GetLandingPage}} |
− | + | *<nowiki>{{</nowiki>GetLandingPage|page=AY Honors/Cycling/Requirements}} → {{GetLandingPage|page=AY Honors/Cycling/Requirements}} | |
− | {{GetLandingPage|page=AY Honors/Currency (United States)/Answer Key}} | + | *<nowiki>{{</nowiki>GetLandingPage|page=AY Honors/Currency (United States)/Answer Key}} → {{GetLandingPage|page=AY Honors/Currency (United States)/Answer Key}} |
− | + | *<nowiki>{{</nowiki>GetLandingPage|honor=Camping Skills III}} → {{GetLandingPage|honor=Camping Skills III}} | |
− | {{GetLandingPage|honor=Camping Skills III}} | + | *<nowiki>{{</nowiki>GetLandingPage|honor=Animal Tracking (General Conference)}} → {{GetLandingPage|honor=Animal Tracking (General Conference)}} |
− | |||
− | {{GetLandingPage|honor=Animal Tracking (General Conference)}} | ||
</noinclude> | </noinclude> |
Revision as of 01:52, 22 March 2021
This template returns the page title of an honor's main landing page. It accepts a page argument which can be any subpage of an honor, and it can also be any variant of an honor. If no page argument is given, it can accept an honor instead.
- {{GetLandingPage}} → Template:GetLandingPage
- {{GetLandingPage|page=AY Honors/Cycling/Requirements}} → Template:GetLandingPage
- {{GetLandingPage|page=AY Honors/Currency (United States)/Answer Key}} → Template:GetLandingPage
- {{GetLandingPage|honor=Camping Skills III}} → Template:GetLandingPage
- {{GetLandingPage|honor=Animal Tracking (General Conference)}} → Template:GetLandingPage