This is the sandbox page for User:CabbagePotato/Wikibuttons (diff). See also the companion subpage for test cases. |
This page is not empty. Look at the "Edit" tab for this page.
This template generates buttons (created using {{Clickable button 2}}) linking to a user's user pages, user talk pages, and contributions on Wikipedia and its sister projects. This template currently supports the following wikis:
Usage
editThis template may be placed on any page in your userspace. At least one of the named parameters must be used for any buttons to be displayed. All unnamed parameters are optional; however, if you decide to place this on a page other than your user or user talk pages, you will need to type in your username using the first unnamed parameter, like this:
{{User:CabbagePotato/Wikibuttons|username|...}}
or like this:
{{User:CabbagePotato/Wikibuttons|1=username|...}}
Replace username
with your username and ...
with any other parameters.
Template with full parameters
edit{{User:CabbagePotato/Wikibuttons|1= |2= |3= |4= |5= |w= |m= |mw= |wikt= |q= |b= |s= |c= |species= |n= |incubator= |v= |d= |voy= }}
Example
edit{{User:CabbagePotato/Wikibuttons|Example|w=1|wikt=1|c=1}}
produces the buttons in the lower left-hand corner of the browser window.
Parameters
editParameter | Description | Status |
---|---|---|
1 |
Name of user. (Defaults to {{PAGENAME}} if empty.) |
optional |
2 |
Distance (in pixels) from the left side of the browser window. (Defaults to 5 if empty.) |
optional |
3 |
Distance (in pixels) from the bottom of the browser window. (Defaults to 5 if empty.) |
optional |
4 |
Font size in pixels. (Defaults to 10 if empty.) |
optional |
5 |
Background color/style. (Defaults to #F5F5F5 if empty.) |
optional |
w |
Set to 1 to display buttons for a user's Wikipedia user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
m |
Set to 1 to display buttons for a user's Meta-Wiki user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
mw |
Set to 1 to display buttons for a user's MediaWiki user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
wikt |
Set to 1 to display buttons for a user's Wiktionary user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
q |
Set to 1 to display buttons for a user's Wikiquote user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
b |
Set to 1 to display buttons for a user's Wikibooks user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
s |
Set to 1 to display buttons for a user's Wikisource user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
c |
Set to 1 to display buttons for a user's Commons user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
species |
Set to 1 to display buttons for a user's Wikispecies user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
n |
Set to 1 to display buttons for a user's Wikinews user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
incubator |
Set to 1 to display buttons for a user's Incubator user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
v |
Set to 1 to display buttons for a user's Wikiversity user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
d |
Set to 1 to display buttons for a user's Wikidata user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |
voy |
Set to 1 to display buttons for a user's Wikivoyage user page, user talk page, and contributions. Set to any other value (or omit parameter) to leave out the buttons. |
optional |