Template:U/doc: Difference between revisions
Template page
More actions
Undo revision 677519038 by Seikan Tunnel (talk) |
Fix Linter obsolete tag errors. |
||
| Line 87: | Line 87: | ||
|8=i18n | |8=i18n | ||
| 8d = An {{W|ISO 630-1|ISO 639}} language code, to follow another translation then yours | | 8d = An {{W|ISO 630-1|ISO 639}} language code, to follow another translation then yours | ||
: when parameter setting is < | : when parameter setting is <code>case=i</code> or <code>case=n</code> | ||
<nowiki/> | <nowiki/> | ||
| 8def = {{int:lang}} | | 8def = {{int:lang}} | ||
| Line 143: | Line 143: | ||
|i18n-desc=The template does not generate any localizable text; | |i18n-desc=The template does not generate any localizable text; | ||
with + or - always the ''namespace'' in English: "{{ns:2}}" is displayed; only in <br> | with + or - always the ''namespace'' in English: "{{ns:2}}" is displayed; only in <br> | ||
combination with < | combination with <code>case=i</code> or <code>case=n</code> the namespace can be translated using the "{{T2|i18n/namespace|LangSwitch}}" construct (according to <code>lang</code>).<small>{{Lua|Module:LangSwitch}}</small> | ||
{{namespace/display|t=<includeonly>{{PAGENAME}}</includeonly><noinclude>U</noinclude>|name=username | {{namespace/display|t=<includeonly>{{PAGENAME}}</includeonly><noinclude>U</noinclude>|name=username | ||
|par1={{#switch:{{PAGENAME}}|Ut|Uwt= talk}}|par2={{#switch:{{PAGENAME}}|Uw|Uwt=~commonswiki}}}} | |par1={{#switch:{{PAGENAME}}|Ut|Uwt= talk}}|par2={{#switch:{{PAGENAME}}|Uw|Uwt=~commonswiki}}}} | ||