Template:Internationalization template doc: Difference between revisions
Template page
More actions
m format |
Fix whitespace error at e.g. Template:Gez |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 2: | Line 2: | ||
{{TemplateBox | {{TemplateBox | ||
|name = <includeonly>{{lc:{{PAGENAME}}}}</includeonly><noinclude>En</noinclude> | |name = <includeonly>{{lc:{{PAGENAME}}}}</includeonly><noinclude>En</noinclude> | ||
|desc-en = Adds " | |desc-en = Adds "<i>{{trim|{{<includeonly>{{PAGENAME}}</includeonly><noinclude>En</noinclude>|<nowiki />|inline=1}}}}</i>" in front of the text written in {{language|<includeonly>{{PAGENAME}}</includeonly><noinclude>En</noinclude>}}. Also adds machine-readable tags identifying the text as being written in {{language|<includeonly>{{PAGENAME}}</includeonly><noinclude>En</noinclude>}}. | ||
|desc-td-en = Adds "{{#language:<includeonly>{{PAGENAME}}</includeonly><noinclude>En</noinclude>}}" in front of the text written in {{language|<includeonly>{{PAGENAME}}</includeonly><noinclude>En</noinclude>}}. Also adds machine-readable tags identifying the text as being written in {{language|<includeonly>{{PAGENAME}}</includeonly><noinclude>En</noinclude>}}. | |desc-td-en = Adds "{{#language:<includeonly>{{PAGENAME}}</includeonly><noinclude>En</noinclude>}}" in front of the text written in {{language|<includeonly>{{PAGENAME}}</includeonly><noinclude>En</noinclude>}}. Also adds machine-readable tags identifying the text as being written in {{language|<includeonly>{{PAGENAME}}</includeonly><noinclude>En</noinclude>}}. | ||
|namespace = all | |namespace = all | ||
| Line 30: | Line 30: | ||
|seealso = | |seealso = | ||
* [[Commons:Localization]] | * [[Commons:Localization]] | ||
* < | * <code>{{[[mw:Help:Magic_words#Miscellaneous|#language]]}}</code> - Returns the local language name of a language code. | ||
* {{tl|language}} - Returns the translated language name of a language code. | * {{tl|language}} - Returns the translated language name of a language code. | ||
|type = formatting | |type = formatting | ||
| Line 47: | Line 47: | ||
|1d-td-en = Text to be displayed. <!-- TemplateData is used by tools which know wikitext better than most users. They should prepend the "1=" when needed, so if the user enters one manually, the result will be {{en|1=1=text}}... --> | |1d-td-en = Text to be displayed. <!-- TemplateData is used by tools which know wikitext better than most users. They should prepend the "1=" when needed, so if the user enters one manually, the result will be {{en|1=1=text}}... --> | ||
|1type = string | |1type = string | ||
|1default= | |1default=<span class="error">(missing text)</span> | ||
|1stat = required | |1stat = required | ||
|2 = inline | |2 = inline | ||
|2label = inline | |2label = inline | ||
|2d-en = Optional, default | |2d-en = Optional boolean flag, false by default. When set to "true" (or "1", "t", "yes", "y", "on", etc. ), forces the template to be displayed inline, so that it does not break the current paragraph (that makes possible to put several descriptions side by side on a single line). Set to "false" (or "0", "f", "no", "n", "off", etc. ) or omit or leave blank, and each language will be in a separate line. | ||
|2type = line | |2type = line | ||
|2stat = optional- | |2stat = optional- | ||