Template:Tmpl/doc

From Fox Labs Wiki
Revision as of 13:04, 2 November 2023 by Inari (talk | contribs) (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,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Lua error in Module:TNT at line 124: mw.text.jsonEncode: Cannot use type 'boolean' as a table key.

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>