Template:User-multi/template: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(+link box) |
m (38 revisions imported from wikipedia:Template:User-multi/template) |
||
(17 intermediate revisions by 9 users not shown) | |||
Line 1:
}}{{#if:{{{sup|}}}▼
|{{documentation
|content=
{{#ifeq:{{FULLPAGENAME}}|Template:User| {{high-risk| 526549 }} }}
{{lua|Module:UserLinks}}
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.
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>{{#ifeq:{{{User|¬}}}|¬||User}}{{#ifeq:{{{user|¬}}}|¬||user}}<nowiki>=USERNAME}}</nowiki></code> or
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|USERNAME}}</nowiki></code>
Line 52 ⟶ 16:
In cases of usernames which contain = sign, the former syntax should be used, e.g.
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>{{#ifeq:{{{User|¬}}}|¬||User}}{{#ifeq:{{{user|¬}}}|¬||user}}<nowiki>=Billbailey=legend}}</nowiki></code> → {{ {{BASEPAGENAME}}|User=Billbailey=legend}}
=== Parameters ===
|* ''User'' is a required parameter, e.g. {{para|User|Jimbo Wales}}.
▲{{#ifeq:{{{small|¬}}}|¬|
|* ''small'' causes a smaller text to be used, e.g. {{para|small|yes}}▼
|* ''user'' is a required parameter, e.g. {{para|user|Jimbo Wales}}.
}}{{#ifeq:{{{Project|¬}}}|¬|
|* ''Project'' defines a [[Wikipedia:Wikimedia sister projects|Wikimedia sister project]] to be used instead of the English Wikipedia, the correct code for the [[Help:Interwikimedia links|interwiki]] link should be used, e.g. {{para|Project|b}}.
}}{{#ifeq:{{{project|¬}}}|¬|
|* ''project'' defines a [[Wikipedia:Wikimedia sister projects|Wikimedia sister project]] to be used instead of the English Wikipedia, the correct code for the [[Help:Interwikimedia links|interwiki]] link should be used, e.g. {{para|project|b}}.
}}{{#ifeq:{{{Lang|¬}}}|¬|
|* ''Lang'' is the [[Help:Interlanguage links|interlanguage]] code for a project to be used instead of the English Wikipedia, e.g. {{para|Lang|es}}. This can be used in conjunction with the project parameter.
}}{{#ifeq:{{{lang|¬}}}|¬|
|* ''lang'' is the [[Help:Interlanguage links|interlanguage]] code for a project to be used instead of the English Wikipedia, e.g. {{para|lang|es}}. This can be used in conjunction with the project parameter.
}}{{#ifeq:{{{small|¬}}}|¬|
▲|* ''small'' causes a smaller text to be used, e.g. {{para|small|yes}}.
}}{{#ifeq:{{{separator|¬}}}|¬|
|* ''separator'' defines the symbol used to separate different links, e.g. {{para|separator|pipe}}. The default is a dot.
Line 63 ⟶ 38:
|* ''sup'' controls whether the output is in superscript, e.g. {{para|sup|yes}}.
}}
{{#ifexist:{{FULLPAGENAME}}/doc|{{{{FULLPAGENAME}}/doc}}}}
{{Userspace linking templates}}
|link box=This documentation is automatically generated by [[Template:User-multi/template]].
}}
}}<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||[[Category:Username internal link templates]]}}</includeonly>▼
▲}}<includeonly>[[Category:Username internal link templates]]</includeonly>
|
Latest revision as of 21:01, January 19, 2022
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.
{{User-multi|=USERNAME}}
or{{User-multi|USERNAME}}
Examples
{{User-multi|Jimbo Wales}}
→ Jimbo Wales
In cases of usernames which contain = sign, the former syntax should be used, e.g.
{{User-multi|=Billbailey=legend}}
→ Billbailey=legend