Template:LocalizePrintf

From Pathfinder Wiki
Revision as of 00:16, 1 March 2021 by Jomegat (talk | contribs) (Created page with "<includeonly><nowiki/> {{#fornumargs: number | value | {{#vardefine:znum|{{#expr:{{#var:number}}-1}}}} {{#ifeq:{{#var:number}}|1|{{#vardefine:string|{{#var:value}}}} |{{#v...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This template returns a localized version of a "canned" phrase that we use in the interfaces. THe phrase is in the language of the page that invokes it, so if we call the template from [[some page[[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:

<nowiki>{{</nowiki}}LocalizePrintf|The %1 brown %2 jumps %3 the %4 dog |quick |fox |over |lazy }}


The quick brown fox jumps over the lazy dog