Template:Ut: Difference between revisions
Template page
More actions
m typo |
m expansion |
||
| Line 2: | Line 2: | ||
|{{{2|}}} |{{{3|}}} |{{{4|}}} = | |{{{2|}}} |{{{3|}}} |{{{4|}}} = | ||
|{{#switch: - | |{{#switch: - | ||
|{{{2|}}} |{{{3|}}} |{{{4|}}} = {{#if:{{{case|}}}|{{{{{case}}}cfirst:U}}|U}}ser:}}}} | |{{{2|}}} |{{{3|}}} |{{{4|}}} = {{#if:{{{case|}}}|{{{{{case}}}cfirst:U}}|U}}ser:}}}}<!-- | ||
-->{{#ifeq:{{{link}}}|no|­{{#switch:{{{2|}}}|+|-|={{PAGENAME:{{{1<noinclude>|Example</noinclude>}}}}}|{{{2}}}}} | |||
|[[:{{#if: {{{3|}}} | |[[:{{#if: {{{3|}}} | ||
| {{#switch: {{{3|}}} | | {{#switch: {{{3|}}} | ||
| Line 12: | Line 13: | ||
-->{{#if: {{{2|}}} | -->{{#if: {{{2|}}} | ||
| {{#switch: {{{2|}}} | | {{#switch: {{{2|}}} | ||
|+ = | |+ = User:{{#if: {{{1|}}} | {{{1|}}} | Example }} | ||
|- = {{#if: {{{1|}}} | {{{1|}}} | Example }} | |- = {{#if: {{{1|}}} | {{{1|}}} | Example }} | ||
|#default = {{#switch: + | |#default = {{#switch: + | ||
| Line 21: | Line 22: | ||
|{{{3|}}} |{{{4|}}} = User: | |{{{3|}}} |{{{4|}}} = User: | ||
}}{{#if: {{{1|}}} | {{{1|}}} | Example }} | }}{{#if: {{{1|}}} | {{{1|}}} | Example }} | ||
}}]]<noinclude> | }}]]}}<noinclude> | ||
---- | ---- | ||
This is creating a link to a user's talk page. It hides the "User talk:" prefix. | This is creating a link to a user's talk page. It hides the "User talk:" prefix. | ||
| Line 36: | Line 37: | ||
The username can be prefixed with the namespace identifier "User:". | The username can be prefixed with the namespace identifier "User:". | ||
* <nowiki>{{</nowiki>Ut|Username|+}} → {{Ut|Username|+}} (with the "+" sign for parameter 2, 3 or 4; prefix part of the link) | * <nowiki>{{</nowiki>Ut|Username|+}} → {{Ut|Username|+}} (with the "+" sign for parameter 2, 3 or 4; prefix part of the link) | ||
* {{Tle|t=Ut|Username|-|p3=case|l}} → {{Ut|Username|-|case=l}} (namespace in "case=l"ower case) | |||
* {{Tle|t=Ut|Username|-|l|no|p4=case|p3=link}} → {{Ut|Username|-|case=l|link=no}} (nolink, and namespace in "case=l"ower case) | |||
:* | :* | ||
{{Commons:Link templates/User and user talk links}} | {{Commons:Link templates/User and user talk links}} | ||
Revision as of 13:31, 23 May 2019
This is creating a link to a user's talk page. It hides the "User talk:" prefix.
Usage
{{Ut|Username}}→ Username- (which is the same as writing out
[[User talk:Username|Username]])
- (which is the same as writing out
{{Ut|Username|Nickname}}→ Nickname- (which is the same as writing out
[[User talk:Username|Nickname]])
- (which is the same as writing out
{{Ut|Username|3=fr}}→ Username- (which is the same as writing out
[[:fr:User talk:Username|Username]]or[[:fr:Discussion utilisateur:Username|Username]])
- (which is the same as writing out
Prefix
The username can be prefixed with the namespace identifier "User:".
- {{Ut|Username|+}} → User:Username (with the "+" sign for parameter 2, 3 or 4; prefix part of the link)
- {{ Ut | Username | - | case = l }} → user:Username (namespace in "case=l"ower case)
- {{ Ut | Username | - | link = l | case = no }} → user:Username (nolink, and namespace in "case=l"ower case)
{{Commons:Link templates/User and user talk links}}