Template:Uw/doc: Difference between revisions
More actions
m +parm |
m format |
||
| Line 34: | Line 34: | ||
|relieson= | |relieson= | ||
}} | }} | ||
__NOTOC__ | |||
==== More examples ==== | ==== More examples ==== | ||
{{Tle|t=Uw|A Obeidat|t}} gives {{Uw|A Obeidat|t}} <br> | {{Tle|t=Uw|A Obeidat|t}} gives {{Uw|A Obeidat|t}} <br> | ||
| Line 42: | Line 43: | ||
{{Tle|t=Uw|Username|commons|-}} gives {{Uw|Username|commons|-}} <br> | {{Tle|t=Uw|Username|commons|-}} gives {{Uw|Username|commons|-}} <br> | ||
{{Tle|t=Uw|User|Comm~user|-|p4=link|no}} gives {{Uw|Username|Comm~user|-|link=no}} <br> | {{Tle|t=Uw|User|Comm~user|-|p4=link|no}} gives {{Uw|Username|Comm~user|-|link=no}} <br> | ||
: only when ''not'' a part of the link, the namespace name can be changed to lower case: | |||
<nowiki>'''{{</nowiki><tt>lcfirst:</tt>{{Tle|t=Uw|User|Comm~user|-|p4=link|no}}<nowiki>}}'''</nowiki> gives '''{{lcfirst:{{Uw|Username|Comm~user|-|link=no}}}}''' | |||
{{Commons:Link templates/User and user talk links}} | {{Commons:Link templates/User and user talk links}} | ||
Revision as of 12:24, 23 May 2019
User page link, only within Commons, when user names are trailed with "~commonswiki"
Usage
{{Uw |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | user name, without the trailing "~commonswiki" | empty | required | |
2 | display name (nick name): may be formatted | param #1 | optional | |
3 | specify a "t" to link to the User Talk page (can as well be coded with parameter 2 or parameter 4 ) | empty | optional | |
4 | either a "+" sign or a "-" sign, to prefix with namespace (can as well be coded with parameter 2 or parameter 3 ) | empty | optional | |
link | returns plain text instead of a link when set to link=no | empty | optional | |
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
{{Uw|Username}}
renders as:
Localization
This template is not intended to be localized.
More examples
{{ Uw | A Obeidat | t }} gives t
{{ Uw | Username | - }} gives User:Username
{{ Uw | Username | + }} gives User:Username
{{ Uw | Username | t | - }} gives User:t
{{ Uw | Username | commons | - }} gives User:commons
{{ Uw | User | Comm~user | - | link = no }} gives User:Comm~user
- only when not a part of the link, the namespace name can be changed to lower case:
'''{{lcfirst:{{ Uw | User | Comm~user | - | link = no }}}}''' gives user:Comm~user
{{Commons:Link templates/User and user talk links}}