Template:User12: Difference between revisions
Content added Content deleted
Enwikipedia>Ben (→Usage: show Nick to better advantage) |
m (25 revisions imported: fixing lua errors) |
||
(12 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{<includeonly>safesubst:</includeonly>user-multi<noinclude>/template</noinclude> |
|||
<span class="plainlinks">[[User:{{{User|{{{1|Example}}}}}} | {{#ifeq:{{{Nick|{{{2|}}}}}} | | {{{User|{{{1|''Example''}}}}}} | ''<big>“</big><font color="00b82b">{{{Nick|{{{2|}}}}}}</font><big>”</big>'' }}]] ([[User talk:{{{User|{{{1|Example}}}}}}|talk]] <small>•</small> [[Special:Contributions/{{{User|{{{1|Example}}}}}}|contribs]] <small>•</small> [{{SERVER}}/wiki/Special:Log/move?user={{urlencode:{{{User|{{{1|Example}}}}}}}} <span style="color:#002bb8">page moves</span>] <small>•</small> [[Special:Blockip/{{{User|{{{1|Example}}}}}}|block user]] <small>•</small> [{{SERVER}}/wiki/Special:Log/block?page=User:{{urlencode:{{{User|{{{1|Example}}}}}}}} <span style="color:#002bb8">block log</span>]</span>)<noinclude> |
|||
| User = {{{1|{{{User|{{{user|}}}}}}}}} |
|||
| Project = {{{2|{{{Project|{{{project|}}}}}}}}} |
|||
== Usage == |
|||
| Lang = {{{3|{{{Lang|{{{lang|}}}}}}}}} |
|||
*<code><nowiki>{{User12|Jimbo Wales}}</nowiki></code> → {{User12|Jimbo Wales}} |
|||
| 1 = t |
|||
*<code><nowiki>{{User12|Jimbo Wales|Jimbo}}</nowiki></code> → {{User12|Jimbo Wales|Jimbo}} |
|||
| 2 = c |
|||
| 3 = m |
|||
| 4 = bu |
|||
*<code><nowiki>{{User12|Sir Nicholas de Mimsy-Porpington|Nearly Headless Nick}}</nowiki></code> →<br />{{space|10}}{{User12|Sir Nicholas de Mimsy-Porpington|Nearly Headless Nick}} |
|||
| 5 = bl |
|||
| doc = yes |
|||
}} |
|||
Names with (or without) equal signs can be given as '''1='''''Username'' or '''User='''''Username'' : |
|||
*<tt><nowiki>{{User12|1=Billbailey=legend}}</nowiki></tt> → {{User12|1=Billbailey=legend}} |
|||
*<tt><nowiki>{{User12|1=Billbailey=legend|2=Bill=legend}}</nowiki></tt> → {{User12|User=Billbailey=legend|Nick=Bill=legend}} |
|||
*<tt><nowiki>{{User12|User=Billbailey=legend}}</nowiki></tt> → {{User12|User=Billbailey=legend}} |
|||
*<tt><nowiki>{{User12|User=Billbailey=legend|Nick=Bill=legend}}</nowiki></tt> → {{User12|User=Billbailey=legend|Nick=Bill=legend}} |
|||
{{Signatures}} |
|||
[[Category:Internal link templates|User12]] |
|||
</noinclude> |
Latest revision as of 07:11, 30 August 2019
Example (talk · contribs · page moves · block user · block log)
Template documentation
This template uses Lua: |
This is a user link template for use internally on Wikipedia.
Usage
The username can be defined via a named or an unnamed parameter, i.e.
{{User12|User=USERNAME}}
or{{User12|USERNAME}}
Examples
{{User12|Jimbo Wales}}
→ Jimbo Wales (talk · contribs · page moves · block user · block log)
In cases of usernames which contain = sign, the former syntax should be used, e.g.
{{User12|User=Billbailey=legend}}
→ Billbailey=legend (talk · contribs · page moves · block user · block log)
Parameters
- User is a required parameter, e.g.
|User=Jimbo Wales
. - Project defines a Wikimedia sister project to be used instead of the English Wikipedia, the correct code for the interwiki link should be used, e.g.
|Project=b
. - Lang is the interlanguage code for a project to be used instead of the English Wikipedia, e.g.
|Lang=es
. This can be used in conjunction with the project parameter.
Userspace link templates
User information templates provide informational links for a user; they are similar to signatures, but often provide additional information, and may be used by other users. List:
- Demo is User:Example