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:Ut: Difference between revisions

Template page
m expansion
m U/main
Line 1: Line 1:
{{#switch: +
<includeonly>{{U/main|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|link={{{link|}}}|case={{{case|}}}|par1={{{par1|&#32;talk}}}|par2={{{par2|}}}}}</includeonly><noinclude>
|{{{2|}}} |{{{3|}}} |{{{4|}}} =
|{{#switch: -
|{{{2|}}} |{{{3|}}} |{{{4|}}} = {{#if:{{{case|}}}|{{{{{case}}}cfirst:U}}|U}}ser:}}}}<!--
-->{{#ifeq:{{{link}}}|no|&shy;{{#switch:{{{2|}}}|+|-|={{PAGENAME:{{{1<noinclude>|Example</noinclude>}}}}}|{{{2}}}}}
|[[:{{#if: {{{3|}}}
| {{#switch: {{{3|}}}
  |+ |- =
  |#default = {{{3|}}}:
  }}
}}User talk:{{#if: {{{1|}}} | {{{1|}}} | Example }}<!--
-->|<!--
-->{{#if: {{{2|}}}
| {{#switch: {{{2|}}}
  |+ = User:{{#if: {{{1|}}} | {{{1|}}} | Example }}
  |- = {{#if: {{{1|}}} | {{{1|}}} | Example }}
  |#default = {{#switch: +
    |{{{3|}}} |{{{4|}}} = {{#if:{{{case|}}}|{{{{{case}}}cfirst:U}}|U}}ser:
    }}{{{2|}}}
  }}
| {{#switch: +
  |{{{3|}}} |{{{4|}}} = User:
  }}{{#if: {{{1|}}} | {{{1|}}} | Example }}
}}]]}}<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 38: Line 15:
* <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|-|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)  
* {{Tle|t=Ut|Username|+|l|no|p3=case|p4=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:42, 28 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]])
  • {{Ut|Username|Nickname}}Nickname
    (which is the same as writing out [[User talk:Username|Nickname]])
  • {{Ut|Username|3=fr}}Username
    (which is the same as writing out [[:fr:User talk:Username|Username]] or [[:fr:Discussion utilisateur:Username|Username]])

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)
  • {{ UtUsername-case = l }} → user:Username (namespace in "case=l"ower case)
  • {{ UtUsername+case = llink = no }} → user:‍Username (nolink, and namespace in "case=l"ower case)

{{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.