Template:Uw/doc: Difference between revisions
More actions
m format |
m -tag |
||
| Line 7: | Line 7: | ||
|2def=param #1 | |2def=param #1 | ||
|2stat=optional- | |2stat=optional- | ||
|4=4 | |4=4 | ||
|4d=either a "+" sign or a "-" sign, to prefix with namespace<br>''(can as well be coded with parameter 2 or parameter 3 )'' | |4d=either a "+" sign or a "-" sign, to prefix with namespace<br>''(can as well be coded with parameter 2 or parameter 3 )'' | ||
| Line 40: | Line 37: | ||
{{Tle|t=Uw|Username|-}} gives {{Uw|Username|-}} <br> | {{Tle|t=Uw|Username|-}} gives {{Uw|Username|-}} <br> | ||
{{Tle|t=Uw|Username|+}} gives {{Uw|Username|+}} <br> | {{Tle|t=Uw|Username|+}} gives {{Uw|Username|+}} <br> | ||
{{Tle|t=Uw|Username|t|-}} gives {{Uw|Username|t|-}} <br> | <!-- {{Tle|t=Uw|Username|t|-}} gives {{Uw|Username|t|-}} <br> --> | ||
{{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> | ||
Revision as of 14:06, 28 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 | |
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 | 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}}