Template:Ut: Difference between revisions
Template page
More actions
mNo edit summary |
m expansion |
||
| Line 1: | Line 1: | ||
{{#switch: - | {{#switch: + | ||
|{{{2|}}} |{{{3|}}} |{{{4|}}} = | |{{{2|}}} |{{{3|}}} |{{{4|}}} = | | ||
}}[[:{{#if: {{{3|}}} | |{{#switch: - | ||
|{{{2|}}} |{{{3|}}} |{{{4|}}} = {{#if:{{{case|}}}|{{{{{case}}}cfirst:U}}|U}}ser:}}}} | |||
|[[:{{#if: {{{3|}}} | |||
| {{#switch: {{{3|}}} | | {{#switch: {{{3|}}} | ||
|+ |- = | |||
|#default = {{{3|}}}: | |#default = {{{3|}}}: | ||
}} | }} | ||
| Line 10: | Line 12: | ||
-->{{#if: {{{2|}}} | -->{{#if: {{{2|}}} | ||
| {{#switch: {{{2|}}} | | {{#switch: {{{2|}}} | ||
|+ = | |+ = {{#if:{{{case|}}}|{{{{{case}}}cfirst:U}}|U}}ser:{{#if: {{{1|}}} | {{{1|}}} | Example }} | ||
|- = {{#if: {{{1|}}} | {{{1|}}} | Example }} | |- = {{#if: {{{1|}}} | {{{1|}}} | Example }} | ||
|#default = {{#switch: + | |#default = {{#switch: + | ||
|{{{3|}}} |{{{4|}}} = | |{{{3|}}} |{{{4|}}} = {{#if:{{{case|}}}|{{{{{case}}}cfirst:U}}|U}}ser: | ||
}}{{{2|}}} | }}{{{2|}}} | ||
}} | }} | ||
| Line 20: | Line 22: | ||
}}{{#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. | ||
Revision as of 13:12, 23 May 2019
This is creating a link to a user's talk page. It hides the "User talk:" prefix.
Usage
{{Ut|Username}}→
- (which is the same as writing out
[[User talk:Username|Username]])
- (which is the same as writing out
{{Ut|Username|Nickname}}→
- (which is the same as writing out
[[User talk:Username|Nickname]])
- (which is the same as writing out
{{Ut|Username|3=fr}}→
- (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)
{{Commons:Link templates/User and user talk links}}