Difference between revisions of "Template:GetHonorLandingLink"

From Pathfinder Wiki
(Created page with "<includeonly>{{#vardefine:page|{{{page|{{PAGENAME}}}}}}}{{#vardefine:landing|{{GetHonorLandingPage|page={{#var:page}}}}}}{{#var:landing}}|{{GetHonorName|page={{#var:landing}...")
 
 
Line 1: Line 1:
<includeonly>{{#vardefine:page|{{{page|{{PAGENAME}}}}}}}{{#vardefine:landing|{{GetHonorLandingPage|page={{#var:page}}}}}}[[{{#var:landing}}|{{GetHonorName|page={{#var:landing}}{{GetLangSuffix|page={{#var:page}}}}}}]]
+
<includeonly>{{#vardefine:page|{{{page|{{PAGENAME}}}}}}}{{#vardefine:landing|{{GetHonorLandingPage|page={{#var:page}}}}}}[[{{#var:landing}}{{GetLangSuffix|page={{#var:page}}}}|{{GetHonorName|page={{#var:landing}}{{GetLangSuffix|page={{#var:page}}}}}}]]{{#if:{{{debug|}}}|
 +
*page={{#var:page}}
 +
*landing={{#var:landing}}}}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
 
This template returns a wiki link to 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 supplied, the template will assume it is being invoked from an honor page or subpage.
 
This template returns a wiki link to 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 supplied, the template will assume it is being invoked from an honor page or subpage.
  
The page the template returns is the master source of metadata for the honor.
 
 
*<nowiki>{{</nowiki>GetHonorLandingLink}} &rarr; {{GetHonorLandingLink}}
 
 
*<nowiki>{{</nowiki>GetHonorLandingLink|page=AY Honors/Cycling/Requirements}} &rarr; {{GetHonorLandingLink|page=AY Honors/Cycling/Requirements}}
 
*<nowiki>{{</nowiki>GetHonorLandingLink|page=AY Honors/Cycling/Requirements}} &rarr; {{GetHonorLandingLink|page=AY Honors/Cycling/Requirements}}
 
*<nowiki>{{</nowiki>GetHonorLandingLink|page=AY Honors/Cycling/Requirements/es}} &rarr; {{GetHonorLandingLink|page=AY Honors/Cycling/Requirements/es}}
 
*<nowiki>{{</nowiki>GetHonorLandingLink|page=AY Honors/Cycling/Requirements/es}} &rarr; {{GetHonorLandingLink|page=AY Honors/Cycling/Requirements/es}}

Latest revision as of 23:27, 14 May 2021


This template returns a wiki link to 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 supplied, the template will assume it is being invoked from an honor page or subpage.

  • {{GetHonorLandingLink|page=AY Honors/Cycling/Requirements}} → Cycling


  • {{GetHonorLandingLink|page=AY Honors/Cycling/Requirements/es}} → Cycling


  • {{GetHonorLandingLink|page=AY Honors/Currency (United States)/Answer Key}} → [[AY Honors/Currency (United States)|]]