Difference between revisions of "Template:GetHonorName/en"

From Pathfinder Wiki
Template:GetHonorName/en
(Updating to match new version of source page)
 
(Updating to match new version of source page)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
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.
 
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.
 
It is also possible to pass in an honorname.
 +
 
<nowiki>{{GetHonorName|page=AY Honors/Alternative Fuels/Requirements}}</nowiki><br/>
 
<nowiki>{{GetHonorName|page=AY Honors/Alternative Fuels/Requirements}}</nowiki><br/>
 
{{GetHonorName|page=AY Honors/Alternative Fuels/Requirements}}<br/>
 
{{GetHonorName|page=AY Honors/Alternative Fuels/Requirements}}<br/>
Line 9: Line 10:
  
 
<nowiki>{{GetHonorName|honorname=Camping Skills I}}</nowiki><br/>
 
<nowiki>{{GetHonorName|honorname=Camping Skills I}}</nowiki><br/>
{{GetHonorName|page=AY Honors/Worms - Advanced/Requirements}}<br/>
+
{{GetHonorName|honorname={{{honorname|Camping Skills I}}}}}<br/>
  
<includeonly><onlyinclude>{{Localization:Honors/{{{honorname|{{#titleparts:{{{page|{{PAGENAME}}}}}|1|2}}}}}/{{PAGELANGUAGE}}}}</onlyinclude></includeonly>
+
<includeonly><onlyinclude>{{#vardefine:locHonorname|{{#if:{{{honorname|}}}|{{{honorname}}}|{{#titleparts:{{#if:{{{page|}}}|{{{page}}}|{{PAGENAME}}}}|1|2}}}}}}{{Localize|{{#var:locHonorname}}|Honors}}</onlyinclude></includeonly>

Latest revision as of 17:52, 14 July 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