Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Uw/doc: Difference between revisions

Template page
m corr
No edit summary
Line 50: Line 50:
|i18n-method=-
|i18n-method=-
|type=
|type=
|example=Username
|example=Example
|seealso=
|seealso=
|setscats=
|setscats=
Line 60: Line 60:
==== More examples ====
==== More examples ====


{{Tle|t=Uw|Username|-}} gives {{Uw|Username|-}} <br>
{{Tle|t=Uw|Example|-}} gives {{Uw|Example|-}} <br>
{{Tle|t=Uw|Username|+}} gives {{Uw|Username|+}} <br>
{{Tle|t=Uw|Example|+}} gives {{Uw|Example|+}} <br>
{{Tle|t=Uw|Username|commons|-}} gives {{Uw|Username|commons|-}} <br>
{{Tle|t=Uw|Example|commons|-}} gives {{Uw|Example|commons|-}} <br>
{{Tle|t=Uw|Username|Comm~user|-|p4=link|no}} gives {{Uw|Username|Comm~user|-|link=no}} <br>
{{Tle|t=Uw|Example|Comm~user|-|p4=link|no}} gives {{Uw|Example|Comm~user|-|link=no}} <br>
{{Tle|t=Uw|Username|Comm~user|-|p4=link|no|p5=case|l}} gives {{Uw|Username|Comm~user|-|link=no|case=l}}<br>
{{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|Example|Spain~user|es|-|p5=case|i|p6=i18n|es}} gives {{Uw|Example|Spain~user|es|-|case=i|i18n=es}}


==== Language code exampless ====
==== Language code exampless ====
<nowiki>{{Uw|Willy on Wheels}}</nowiki> gives {{Uw|Willy on Wheels}}<br>
<nowiki>{{Uw|Example}}</nowiki> gives {{Uw|Example}}<br>
<nowiki>{{Uw|Willy on Wheels||}}</nowiki> gives {{Uw|Willy on Wheels||}}<br>
<nowiki>{{Uw|Example||}}</nowiki> gives {{Uw|Example||}}<br>
<nowiki>{{Uw|Willy on Wheels|WoW}}</nowiki> gives {{Uw|Willy on Wheels|WoW}}<br>
<nowiki>{{Uw|Example|Example2}}</nowiki> gives {{Uw|Example|Example2}}<br>
<nowiki>{{Uw|Willy on Wheels|WoW|}}</nowiki> gives {{Uw|Willy on Wheels|WoW|}}<br>
<nowiki>{{Uw|Example|Example2|}}</nowiki> gives {{Uw|Example|Example2|}}<br>
<nowiki>{{Uw|Willy on Wheels|WoW|et}}</nowiki> gives {{Uw|Willy on Wheels|WoW|et}}<br>
<nowiki>{{Uw|Example|Example2|et}}</nowiki> gives {{Uw|Example|Example2|et}}<br>
<nowiki>{{Uw|Willy on Wheels||et}}</nowiki> gives {{Uw|Willy on Wheels||et}}<br>
<nowiki>{{Uw|Example||et}}</nowiki> gives {{Uw|Example||et}}<br>


<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=username|par2=~commonswiki}}
|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>

Revision as of 06:58, 25 July 2022

User page link, only within Commons, when user names are trailed with "~commonswiki"

Usage

{{U |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1user name, without the trailing "~commonswiki"emptyrequired
2display name (nick name): may be formattedparam #1optional
3ISO 639 language code; If absent: ~ommonswiki emptyoptional
4+ or - to precede the user name with the namespace User:
+ ("plus" sign) to make User: a part of the link,
- ("minus" sign) to precede User: as plain text;

(if both signs are specified, "+" is used and "-" is ignored)

The +/- parameter can as well be specified with parameter 2 or 3.
emptyoptional
linkspecify link=no to suppress the linkemptyoptional
0
more parameters to format the namespace (when "+" or "-" is specified)
» not every possible combination of parameter values is useful «
0optional
casefor formatting of the namespace:
  • case=l display "user" instead of "User"
  • case=i display the national translation, in general a link
  • case=n display the national translation without linking it
emptyoptional
i18nan ISO 639 language code, to follow another translation then yours
when parameter setting is case=i or case=n
enoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Example

{{U|Example}}

renders as:

Localization

This template is not intended to be localized.

More examples

{{ UwExample- }} gives User:Example
{{ UwExample+ }} gives User:Example
{{ UwExamplecommons- }} gives User:commons
{{ UwExampleComm~user-link = no }} gives User:‍Comm~user
{{ UwExampleComm~user-link = nocase = l }} gives user:‍Comm~user
{{ UwExampleSpain~useres-case = ii18n = es }} gives LangSwitch Error: no default:Spain~user

Language code exampless

{{Uw|Example}} gives Example
{{Uw|Example||}} gives Example
{{Uw|Example|Example2}} gives Example2
{{Uw|Example|Example2|}} gives Example2
{{Uw|Example|Example2|et}} gives Example2
{{Uw|Example||et}} gives Example

Table: different displays for {{Uw}} with the namespace option 0
{{ UwExample }} 0this is the standard Example
{{ UwExample- }} User:Example
{{ UwExample-case = l }} user:Example
{{ UwExample-case = i }} LangSwitch Error: no default:Example
{{ UwExample-case = n }} user:Example
{{ UwExample+ }} User:Example
{{ UwExample+case = l }} user:Example
{{ UwExample+case = i }} user:Example
{{ UwExample+case = n }} user:Example
{{ UwExamplelink = n }} ‍Example
{{ UwExample-link = n }} User:‍Example
{{ UwExample-link = ncase = l }} user:‍Example
{{ UwExample-link = ncase = i }} LangSwitch Error: no default:‍Example
{{ UwExample-link = ncase = n }} user:‍Example
{{ UwExample+link = n }} User:‍Example
{{ UwExample+link = ncase = l }} user:‍Example
{{ UwExample+link = ncase = i }} LangSwitch Error: no default:‍Example
{{ UwExample+link = ncase = n }} user:‍Example

[edit ] {{Commons:Link templates/User and user talk links}}

Cookies help us deliver our services. By using our services, you agree to our use of cookies.