Template:Uw/doc: Difference between revisions
Template page
More actions
m +explanation |
Fix language-code links to use Wikipedia interwiki prefixes |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 14: | Line 14: | ||
|4=4 | |4=4 | ||
|4d= + or - to precede the user name with the namespace <code>{{ns:2}}:</code> | |4d= + or - to precede the user name with the namespace <code>{{ns:2}}:</code> | ||
:'''+''' ("plus" sign) to make < | :'''+''' ("plus" sign) to make <code>User:</code> a part of the link, | ||
:'''-''' ("minus" sign) to precede < | :'''-''' ("minus" sign) to precede <code>User:</code> as plain text;<br /> | ||
(if ''both'' signs are specified, "+" is used and "-" is ignored)<br> | (if ''both'' signs are specified, "+" is used and "-" is ignored)<br /> | ||
The +/- parameter can as well be specified with parameter 2 or 3. | The +/- parameter can as well be specified with parameter 2 or 3. | ||
|4def= | |4def= | ||
| Line 26: | Line 26: | ||
|6={{0}} | |6={{0}} | ||
|6d=<br>''more parameters to format the namespace (when "+" or "-" is specified)'' | |6d=<br />''more parameters to format the namespace (when "+" or "-" is specified)'' | ||
: <small>» not every possible combination of parameter values is useful «</small> | : <small>» not every possible combination of parameter values is useful «</small> | ||
|6def={{0}} | |6def={{0}} | ||
| Line 38: | Line 38: | ||
|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> | ||
|8def={{int:lang}} | |8def={{int:lang}} | ||
|8stat=optional- | |8stat=optional- | ||
|name=<includeonly>{{PAGENAME}}</includeonly><noinclude>U</noinclude> | |name=<includeonly>{{PAGENAME}}</includeonly><noinclude>U</noinclude> | ||
|desc=<big>User page link</big>, {{Nobold|within Commons when user names are trailed with "~commonswiki"}}<br> | |desc=<big>User page link</big>, {{Nobold|within Commons when user names are trailed with "~commonswiki"}}<br /> | ||
{{Nobold|in other wikipedias when user names are trailed with "~××wiki" (×× for the ISO 639 language code)}} | {{Nobold|in other wikipedias when user names are trailed with "~××wiki" (×× for the ISO 639 language code)}} | ||
|namespace= | |namespace= | ||
| Line 51: | Line 51: | ||
|i18n-method=- | |i18n-method=- | ||
|type= | |type= | ||
|example= | |example=Example | ||
|seealso= | |seealso= | ||
|setscats= | |setscats= | ||
| Line 61: | Line 61: | ||
==== More examples ==== | ==== More examples ==== | ||
{{Tle|t=Uw| | {{Tle|t=Uw|Example}} gives {{Uw|Example}} (<code><nowiki>User:Example~commonswiki</nowiki></code>)<br /> | ||
{{Tle|t=Uw| | {{Tle|t=Uw|Example||w:en}} gives {{Uw|Example||w:en}} (<code><nowiki>w:en:User:Example~enwiki</nowiki></code>)<br /> | ||
{{Tle|t=Uw| | {{Tle|t=Uw|Example|-}} gives {{Uw|Example|-}} <br /> | ||
{{Tle|t=Uw| | {{Tle|t=Uw|Example|+}} gives {{Uw|Example|+}} <br /> | ||
{{Tle|t=Uw| | {{Tle|t=Uw|Example|commons|-}} gives {{Uw|Example|commons|-}} <br /> | ||
{{Tle|t=Uw| | {{Tle|t=Uw|Example|Comm~user|-|p4=link|no}} gives {{Uw|Example|Comm~user|-|link=no}} <br /> | ||
{{Tle|t=Uw| | {{Tle|t=Uw|Example|Comm~user|-|p4=link|no|p5=case|l}} gives {{Uw|Example|Comm~user|-|link=no|case=l}}<br /> | ||
{{Tle|t=Uw|User|Spain~user|es|-|p5=case|i|p6=i18n|es}} gives {{Uw|User|Spain~user|es|-|case=i|i18n=es}} | {{Tle|t=Uw|User|Spain~user|w:es|-|p5=case|i|p6=i18n|es}} gives {{Uw|User|Spain~user|w:es|-|case=i|i18n=es}} | ||
<small>{{Lua|Module:LangSwitch}}</small> | <small>{{Lua|Module:LangSwitch}}</small> | ||
{{namespace/display|t=<includeonly>{{PAGENAME}}</includeonly><noinclude>Uw</noinclude> | {{namespace/display|t=<includeonly>{{PAGENAME}}</includeonly><noinclude>Uw</noinclude> | ||
|name= | |name=Example|par2=~commonswiki}} | ||
{{clr}} | {{clr}} | ||
<span style="float:right" class="editsection"><nowiki>[</nowiki>{{Edit-int|Commons:Link templates/User and user talk links}} <!-- user links --><nowiki>]</nowiki></span> | <span style="float:right" class="editsection"><nowiki>[</nowiki>{{Edit-int|Commons:Link templates/User and user talk links}} <!-- user links --><nowiki>]</nowiki></span> | ||