Difference between revisions of "Template:LocalizePrintf"

From Pathfinder Wiki
Line 11: Line 11:
 
<nowiki>{{</nowiki>{{FULLPAGENAME}}|Edit Overview}}<br/>
 
<nowiki>{{</nowiki>{{FULLPAGENAME}}|Edit Overview}}<br/>
  
[[AY Honors|{{{{FULLPAGENAME}}|Edit Overview}}]]
+
{{{{FULLPAGENAME}}|Edit Overview}}
  
 
It is also possible to pass in numbered place-holders in the form of %''n'' where ''n'' is a number starting at 1.  The arguments that follow will replace the placeholders:
 
It is also possible to pass in numbered place-holders in the form of %''n'' where ''n'' is a number starting at 1.  The arguments that follow will replace the placeholders:

Revision as of 04:39, 1 March 2021


This template returns a localized version of a "canned" phrase that we use in the interfaces. The phrase passed in is in English, but the output is in the language of the page that invokes it. Therefore if we call the template from [[some page]], we'd get the English version of the page, but if we call it from [[some page/es]], we would get the Spanish version of the phrase.

Here is an example: {{Template:LocalizePrintf|Edit Overview}}


It is also possible to pass in numbered place-holders in the form of %n where n is a number starting at 1. The arguments that follow will replace the placeholders:

{{Template:LocalizePrintf|The %1 rose
|red
}}