Template:Internationalization template doc: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "<noinclude>{{Protected}}</noinclude> {{TemplateBox |name = <includeonly>{{lc:{{PAGENAME}}}}</includeonly><noinclude>En</noinclude> |desc-en = Adds "''{{<includeonly>{{PAGENAME..." Tag: 2017 source edit |
Caleb Cooper (talk | contribs) Blanked the page Tags: Blanking 2017 source edit |
||
| Line 1: | Line 1: | ||
<noinclude>{{Protected}}</noinclude> |
|||
{{TemplateBox |
|||
|name = <includeonly>{{lc:{{PAGENAME}}}}</includeonly><noinclude>En</noinclude> |
|||
|desc-en = Adds "''{{<includeonly>{{PAGENAME}}</includeonly><noinclude>En</noinclude>|''|inline=1}}" 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 |
|||
|usergroup = all |
|||
|docsub-override = <noinclude>true</noinclude> |
|||
|placement = |
|||
|mustbesubst = |
|||
|relieson = |
|||
* {{Tl|description}} |
|||
|usage-notes = |
|||
|shorthand = {{{shorthand|}}} |
|||
|setscats = {{{setscats|}}} |
|||
* [[:Category:Language templates with no text displayed]] (if parameter #1 is empty) |
|||
|seealso = |
|||
* [[Commons:Localization]] |
|||
* <tt>{{[[mw:Help:Magic_words#Miscellaneous|#language]]}}</tt> - Returns the local language name of a language code. |
|||
* {{tl|language}} - Returns the translated language name of a language code. |
|||
|type = formatting |
|||
|i18n-desc = It relies on [[mw:Help:Magic_words#Miscellaneous|<nowiki>{{#language:...}}</nowiki>]] parser function for localization. |
|||
|i18n-subpage = |
|||
|i18n-mediawiki-msg = |
|||
|i18n-method = - |
|||
|example = 1=Abcdefghijklmnopqrstuwxyz |
|||
|example-value = {{<includeonly>{{PAGENAME}}</includeonly><noinclude>En</noinclude>|Abcdefghijklmnopqrstuwxyz}} |
|||
|print = one |
|||
|useTemplateData = 1 |
|||
|1 = 1 |
|||
|1label = text |
|||
|1d-en = Text to be displayed. Please prepend "1=" to the text, otherwise any "=" characters in the text will break the template. |
|||
|1d-td-en = Text to be displayed. <!-- TemplateData is used by tools which know wikitext better than the user. They should prepend the "1=" if needed, so if the user enters one manually, the result will be {{en|1=1=text}}... --> |
|||
|1type = string |
|||
|1stat = required |
|||
|1def = |
|||
|2 = inline |
|||
|2label = inline |
|||
|2d-en = Optional, default is empty string. When set to any value different from an empty string, 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) |
|||
|2type = line |
|||
|2stat = optional- |
|||
|2def = |
|||
}} |
|||
== {{LangSwitch |
|||
|en=Other multi-lingual templates |
|||
|pl=Inne szablony multi-języczne |
|||
}} == |
|||
{{I18n templates}} |
|||
<includeonly> |
|||
{{{localcat|{{#ifexist:Category:Commons-{{lc:{{BASEPAGENAME}}}}|[[Category:Commons-{{lc:{{BASEPAGENAME}}}}|{{PAGENAME}}]]}}}}} |
|||
{{#ifeq:{{lc:{{#titleparts:{{{{uc:{{{b|}}}}}PAGENAME}}|-{{{m|1}}}}}/sandbox}}|{{lc:{{{{uc:{{{b|}}}}}PAGENAME}}}}<!-- |
|||
-->|[[Category:Language templates| ]]<!-- |
|||
-->|{{#ifeq:{{PAGENAME}}|Unknown language|[[Category:Language templates| ]]|[[Category:Language templates|{{PAGENAME}}]]}}}} |
|||
</includeonly> |
|||
<noinclude> |
|||
[[Category:Template namespace templates|{{PAGENAME}}]] |
|||
[[Category:Internationalization templates|{{PAGENAME}}]] |
|||
[[Category:Multi-template documentation|{{PAGENAME}}]] |
|||
</noinclude> |
|||