Template:U/doc: Difference between revisions
Template page
More actions
Undo revision 677519038 by Seikan Tunnel (talk) |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 20: | Line 20: | ||
|2=2 | |2=2 | ||
| 2label-en = Displayed | | 2label-en = Displayed text | ||
| 2d-en = May be formatted wikitext or html. | | 2d-en = May be formatted wikitext or html. | ||
| 2def = <nowiki>{{{1}}}</nowiki> | | 2def = <nowiki>{{{1}}}</nowiki> | ||
| Line 27: | Line 27: | ||
|3=3 | |3=3 | ||
| 3label-en = Interwiki | | 3label-en = Interwiki prefix | ||
| 3d-en = language code: for interwiki link. <small>If absent, link to user entry in the Commons</small> | | 3d-en = language code: for interwiki link. <small>If absent, link to user entry in the Commons</small> | ||
| 3d-td-en = Language code for an interwiki link. If absent, link to user entry in the Commons. | | 3d-td-en = Language code for an interwiki link. If absent, link to user entry in the Commons. | ||
| 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}}}} | ||