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...") |
WikiDwarfBOT (talk | contribs) 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 | This is a user link template for use internally on Bharatpedia. | ||
=== Usage === | === Usage === | ||
Line 13: | Line 13: | ||
=== Examples === | === Examples === | ||
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>| | * <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| | |* ''User'' is a required parameter, e.g. {{para|User|WikiDwarf}}. | ||
}}{{#ifeq:{{{user|¬}}}|¬| | }}{{#ifeq:{{{user|¬}}}|¬| | ||
|* ''user'' is a required parameter, e.g. {{para|user| | |* ''user'' is a required parameter, e.g. {{para|user|WikiDwarf}}. | ||
}}{{#ifeq:{{{Project|¬}}}|¬| | }}{{#ifeq:{{{Project|¬}}}|¬| | ||
|* ''Project'' defines a | |* ''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 | |* ''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 | |* ''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 | |* ''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 [[ | <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

![]() | This template uses Lua: |
This is a user link template for use internally on Bharatpedia.
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|WikiDwarf}}
→ WikiDwarf
In cases of usernames which contain = sign, the former syntax should be used, e.g.
{{User-multi|=Billbailey=legend}}
→ Billbailey=legend
Parameters
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 user used is User:Example