Template:Tmpl/doc: Difference between revisions

From Fox Labs Wiki
Jump to navigation Jump to search
(Created page with "{{Shared Template Warning|Template:Tmpl}} {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Lua|Module:Tmpl}} This template replaces numeric variables (similar to those used in MediaWiki messages and translatable pages) in a string. In contrast to translatable pages, it supports only numeric variables {{mono|$1}} to {{mono|$9}}. One variable can appear several times, so in case of translatable pages,...")
 
No edit summary
 
Line 7: Line 7:
== TemplateData ==
== TemplateData ==
{{TemplateData header}}
{{TemplateData header}}
{{#invoke:TNT|doc|tmpl}}


== Examples ==
== Examples ==

Latest revision as of 13:06, 2 November 2023

Template:Shared Template Warning

This template replaces numeric variables (similar to those used in MediaWiki messages and translatable pages) in a string. In contrast to translatable pages, it supports only numeric variables $1 to $9. One variable can appear several times, so in case of translatable pages, there’s no need to translate the same text more than once.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for Tmpl

Examples

  • {{tmpl|0=Text with $1 in the middle.|replacement}}

Text with replacement in the middle.

  • {{tmpl|0= &lt;$1 name=$3>$2&lt;/$1>|tag|content|value}}

<tag name=value>content</tag>