Difference between revisions of "Template:GetHonorName"

From Pathfinder Wiki
(now the template also works on honor subpages)
Line 15: Line 15:
 
{{GetHonorName|honorname=Camping Skills I}}<br/>
 
{{GetHonorName|honorname=Camping Skills I}}<br/>
  
<includeonly><onlyinclude>{{Localization:Honors/{{{honorname|{{#titleparts:{{{page|{{PAGENAME}}}}}|1|2}}}}}/{{PAGELANGUAGE}}}}</onlyinclude></includeonly>
+
<includeonly><onlyinclude>{{Localization:Honors/{{{honorname|{{#titleparts:{{#if:{{{page|}}}|{{{page}}}|{{PAGENAME}}}}|1|2}}}}}/{{PAGELANGUAGE}}}}</onlyinclude></includeonly>

Revision as of 20:08, 14 January 2022

Other languages:
Deutsch • ‎English • ‎español • ‎français

This template will return the translated honor name of the specified page. If no page parameter is supplied, it operates on the page invoking the template. It is also possible to pass in an honorname.

{{GetHonorName|page=AY Honors/Alternative Fuels/Requirements}}
Alternative Fuels

{{GetHonorName|page=AY Honors/Worms - Advanced/Requirements}}
Worms - Advanced

{{GetHonorName|honorname=Camping Skills I}}
Camping Skills I