Template:Clickable button/doc: Difference between revisions
Template page
More actions
←Created page with '{{TemplateBox |1=target |1d=The target page of the "button". For external links, however, it is recommended using the named parameter target |1def= |1stat=requi...' |
m gerrit link |
||
| Line 6: | Line 6: | ||
|2=1 | |2=1 | ||
|2d=same as target | |2d=same as target; Please use named parameters if it is an external link because they often contain <code><nowiki>=</nowiki></code> which would confuse the parser. | ||
|2def= | |2def= | ||
|2stat=optional- | |2stat=optional- | ||
| Line 73: | Line 73: | ||
|shorthand= | |shorthand= | ||
|relieson= | |relieson= | ||
* jquery.ui.button | * [https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=tree;f=resources/jquery.ui jquery.ui.button] | ||
}} | }} | ||
Revision as of 13:00, 9 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.