Template:User-multi/template: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(remove interwiki text)
(update for use with Module:UserLinks)
Line 1: Line 1:
{{#invoke:UserLinks|example}}{{#ifeq:{{{doc<noinclude>|yes</noinclude>}}}|yes
<span id="Example">[[User:Example|Example]]&nbsp;{{#if:{{{sup|}}}
|<sup>
}}{{toolbar
|style={{#if:{{{small|}}}|font-size: 90%}}
|separator={{{separator|dot}}}
|1={{user-multi/{{{1|}}}|user=Example}}
|2={{user-multi/{{{2|}}}|user=Example}}
|3={{user-multi/{{{3|}}}|user=Example}}
|4={{user-multi/{{{4|}}}|user=Example}}
|5={{user-multi/{{{5|}}}|user=Example}}
|6={{user-multi/{{{6|}}}|user=Example}}
|7={{user-multi/{{{7|}}}|user=Example}}
|8={{user-multi/{{{8|}}}|user=Example}}
|9={{user-multi/{{{9|}}}|user=Example}}
|10={{user-multi/{{{10|}}}|user=Example}}
}}{{#if:{{{sup|}}}
|</sup>
}}</span>{{ombox
|text=This is the <nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki> user link template. It uses the [[Template:User-multi]] super template.{{User-multi/template/check
|code={{{1|}}}
}}{{User-multi/template/check
|code={{{2|}}}
}}{{User-multi/template/check
|code={{{3|}}}
}}{{User-multi/template/check
|code={{{4|}}}
}}{{User-multi/template/check
|code={{{5|}}}
}}{{User-multi/template/check
|code={{{6|}}}
}}{{User-multi/template/check
|code={{{7|}}}
}}{{User-multi/template/check
|code={{{8|}}}
}}{{User-multi/template/check
|code={{{9|}}}
}}{{User-multi/template/check
|code={{{10|}}}
}}
}}{{#ifeq:{{{doc<noinclude>|yes</noinclude>}}}|yes
|{{documentation
|{{documentation
|content=
|content=
Line 45: Line 6:
=== Usage ===
=== Usage ===
The username can be defined via a named or an unnamed parameter, i.e.
The username can be defined via a named or an unnamed parameter, i.e.
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|User=USERNAME}}</nowiki></code> or
* <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>
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|USERNAME}}</nowiki></code>


Line 52: Line 13:


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


=== Parameters ===
=== Parameters ===
{{#ifeq:{{{User|¬}}}|¬|
* ''User'' is a required parameter, e.g. {{para|User|Jimbo Wales}}
|* ''User'' is a required parameter, e.g. {{para|User|Jimbo Wales}}.
{{#ifeq:{{{Project|¬}}}|¬|
}}{{#ifeq:{{{user|¬}}}|¬|
|* ''Project'' defines a [[Wikipedia:Wikimedia sister projects|Wikimedia sister project]] to be used instead of the English Wikipedia, the correct code for the [[Help:Interlanguage links|interlanguage]] or [[Help:Interwikimedia links|interwiki]] link should be used, e.g. {{para|Project|simple}}
|* ''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|¬}}}|¬|
}}{{#ifeq:{{{small|¬}}}|¬|
|* ''small'' causes a smaller text to be used, e.g. {{para|small|yes}}
|* ''small'' causes a smaller text to be used, e.g. {{para|small|yes}}.
}}{{#ifeq:{{{separator|¬}}}|¬|
}}{{#ifeq:{{{separator|¬}}}|¬|
|* ''separator'' defines the symbol used to separate different links, e.g. {{para|separator|pipe}}. The default is a dot.
|* ''separator'' defines the symbol used to separate different links, e.g. {{para|separator|pipe}}. The default is a dot.

Revision as of 05:13, June 17, 2013

Script error: The function "example" does not exist.