Template:Clickable button/doc: Difference between revisions
Template page
More actions
m gerrit link |
<includeonly> Category:Formatting templates </includeonly> |
||
| Line 75: | Line 75: | ||
* [https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=tree;f=resources/jquery.ui jquery.ui.button] | * [https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=tree;f=resources/jquery.ui jquery.ui.button] | ||
}} | }} | ||
<includeonly> | |||
[[Category:Formatting templates]] | |||
</includeonly> | |||
Revision as of 23:54, 14 September 2012
Provides a button with hover effects.
{{Clickable button|FAQ|Frequently asked questions}}→{{Clickable button|target={{fullurl:{{FULLPAGENAME}}|withJS=MediaWiki:VisualFileChange.js}}|text=This page with '''VisualFileChange'''|external=true}}→{{Clickable button|:en:Wikipedia:Manual of Style/Layout|'''Wikipedia's manual of Style'''|class=ui-button-orange ui-button-large}}→
Usage
{{Clickable button |target= |text= |external= |7= |8= |9= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
target | The target page of the "button". For external links, however, it is recommended using the named parameter target | empty | required | |
1 | same as target; Please use named parameters if it is an external link because they often contain = which would confuse the parser. | empty | optional | |
text | Text (caption) the button should carry. | empty | required | |
2 | same as text | empty | optional | |
external | Is this an external link? If it is, set to yes or aye, or whatever you like, except nothing. | empty | optional | |
3 | same as external | empty | optional | |
7 | empty | optional | ||
8 | empty | optional | ||
9 | empty | optional | ||
class | Add classes like ui-button-green ui-button-large | empty | optional | |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Relies on:
See also
Localization
This template is not intended to be localized.