Template:User-multi/template: Difference between revisions

(Created page with "{{#invoke:UserLinks|main|user=Example|User=Example}}{{#ifeq:{{{doc<noinclude>|yes</noinclude>}}}|yes |{{documentation |content= {{#ifeq:{{FULLPAGENAME}}|Template:User| {{hi...")
 
m (clean up, replaced: Wikipedia → Bharatpedia)
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
{{lua|Module:UserLinks}}
{{lua|Module:UserLinks}}


This is a user link template for use internally on Wikipedia.
This is a user link template for use internally on Bharatpedia.


=== Usage ===
=== Usage ===
Line 13: Line 13:


=== Examples ===
=== Examples ===
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Jimbo Wales}}</nowiki></code>  → {{ {{BASEPAGENAME}}|User=Jimbo Wales}}
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|WikiDwarf}}</nowiki></code>  → {{ {{BASEPAGENAME}}|User=WikiDwarf}}


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.
Line 20: Line 20:
=== Parameters ===
=== Parameters ===
{{#ifeq:{{{User|¬}}}|¬|
{{#ifeq:{{{User|¬}}}|¬|
|* ''User'' is a required parameter, e.g. {{para|User|Jimbo Wales}}.
|* ''User'' is a required parameter, e.g. {{para|User|WikiDwarf}}.
}}{{#ifeq:{{{user|¬}}}|¬|
}}{{#ifeq:{{{user|¬}}}|¬|
|* ''user'' is a required parameter, e.g. {{para|user|Jimbo Wales}}.
|* ''user'' is a required parameter, e.g. {{para|user|WikiDwarf}}.
}}{{#ifeq:{{{Project|¬}}}|¬|
}}{{#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}}.  
|* ''Project'' defines a Bharatpedia sister project to be used, the correct code for the interwiki link should be used, e.g. {{para|Project|b}}.  
}}{{#ifeq:{{{project|¬}}}|¬|
}}{{#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}}.
|* ''project'' defines a Bharatpedia to be used, the correct code for the interwiki link should be used, e.g. {{para|project|b}}.
}}{{#ifeq:{{{Lang|¬}}}|¬|
}}{{#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.  
|* ''Lang'' is the [[Help:Interlanguage links|interlanguage]] code for a project to be used, e.g. {{para|Lang|es}}. This can be used in conjunction with the project parameter.  
}}{{#ifeq:{{{lang|¬}}}|¬|
}}{{#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.
|* ''lang'' is the [[Help:Interlanguage links|interlanguage]] code for a project to be used, 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}}.
Line 41: Line 41:
{{Userspace linking templates}}
{{Userspace linking templates}}
|link box=This documentation is automatically generated by [[Template:User-multi/template]].
|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.
<br>Any [[BP: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>
}}<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||[[Category:Username internal link templates]]}}</includeonly>

Latest revision as of 11:01, 10 June 2021

Example