Template:User-multi/template: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(Example)
m (38 revisions imported from wikipedia:Template:User-multi/template)
 
(32 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<span id="Example">[[User:Example|Example]]&nbsp;{{#if:{{{sup|}}}
{{#invoke:UserLinks|main|user=Example|User=Example}}{{#ifeq:{{{doc<noinclude>|yes</noinclude>}}}|yes
|{{documentation
|<sup>
|content=
}}{{toolbar
{{#ifeq:{{FULLPAGENAME}}|Template:User| {{high-risk| 526549 }} }}
|style={{#if:{{{small|}}}|font-size: 90%}}
{{lua|Module:UserLinks}}
|separator={{{separator|dot}}}

|1={{user-multi/{{{1|}}}|user=Example}}
This is a user link template for use internally on Wikipedia.
|2={{user-multi/{{{2|}}}|user=Example}}

|3={{user-multi/{{{3|}}}|user=Example}}
=== Usage ===
|4={{user-multi/{{{4|}}}|user=Example}}
The username can be defined via a named or an unnamed parameter, i.e.
|5={{user-multi/{{{5|}}}|user=Example}}
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>{{#ifeq:{{{User|¬}}}|¬||User}}{{#ifeq:{{{user|¬}}}|¬||user}}<nowiki>=USERNAME}}</nowiki></code> or
|6={{user-multi/{{{6|}}}|user=Example}}
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|USERNAME}}</nowiki></code>
|7={{user-multi/{{{7|}}}|user=Example}}

|8={{user-multi/{{{8|}}}|user=Example}}
=== Examples ===
|9={{user-multi/{{{9|}}}|user=Example}}
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Jimbo Wales}}</nowiki></code> → {{ {{BASEPAGENAME}}|User=Jimbo Wales}}
|10={{user-multi/{{{10|}}}|user=Example}}

}}{{#if:{{{sup|}}}
In cases of usernames which contain = sign, the former syntax should be used, e.g.
|</sup>
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>{{#ifeq:{{{User|¬}}}|¬||User}}{{#ifeq:{{{user|¬}}}|¬||user}}<nowiki>=Billbailey=legend}}</nowiki></code> → {{ {{BASEPAGENAME}}|User=Billbailey=legend}}
}}</span>{{User-multi/template/check

|code={{{1|}}}
=== Parameters ===
}}{{User-multi/template/check
|code={{{2|}}}
{{#ifeq:{{{User|¬}}}|¬|
|* ''User'' is a required parameter, e.g. {{para|User|Jimbo Wales}}.
}}{{User-multi/template/check
|code={{{3|}}}
}}{{#ifeq:{{{user|¬}}}|¬|
|* ''user'' is a required parameter, e.g. {{para|user|Jimbo Wales}}.
}}{{User-multi/template/check
}}{{#ifeq:{{{Project|¬}}}|¬|
|code={{{4|}}}
|* ''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}}.
}}{{User-multi/template/check
}}{{#ifeq:{{{project|¬}}}|¬|
|code={{{5|}}}
|* ''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}}.
}}{{User-multi/template/check
|code={{{6|}}}
}}{{#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.
}}{{User-multi/template/check
|code={{{7|}}}
}}{{#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.
}}{{User-multi/template/check
|code={{{8|}}}
}}{{#ifeq:{{{small|¬}}}|¬|
|* ''small'' causes a smaller text to be used, e.g. {{para|small|yes}}.
}}{{User-multi/template/check
}}{{#ifeq:{{{separator|¬}}}|¬|
|code={{{9|}}}
|* ''separator'' defines the symbol used to separate different links, e.g. {{para|separator|pipe}}. The default is a dot.
}}{{User-multi/template/check
|code={{{10|}}}
}}{{#ifeq:{{{sup|¬}}}|¬|
|* ''sup'' controls whether the output is in superscript, e.g. {{para|sup|yes}}.
}}{{ombox
|text=This is the {{tl|{{BASEPAGENAME}}}} user link template. It uses the [[Template:User-multi]] super template.
}}
}}
{{#ifexist:{{FULLPAGENAME}}/doc|{{{{FULLPAGENAME}}/doc}}}}
{{Userspace linking templates}}
|link box=This documentation is automatically generated by [[Template:User-multi/template]].
<br>Any [[WP:CAT|categories]] and documentation specific to this template should be added to the template's [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Category_interwiki/preload}} /doc] subpage.
}}
}}<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||[[Category:Username internal link templates]]}}</includeonly>

Latest revision as of 21:01, January 19, 2022

Example