Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Clickable button/doc: Difference between revisions

Template page
m +icons
Line 11: Line 11:


|3=text
|3=text
|3d=Text (caption) the button should carry.
|3d=Text (caption) the button should carry. Either you specify text or an icon.
|3def=
|3def=
|3stat=required
|3stat=required
Line 30: Line 30:
|6stat=optional-
|6stat=optional-


|7=
|7=iconPrimary
|7d=
|7d=A jquery UI icon class for the primary icon (in LTR languages on the left side of the button label/text). E.g. ''ui-icon-gear''
|7def=
|7def=
|7stat=
|7stat=optional-


|8=
|8=4
|8d=
|8d=same as iconPrimary
|8def=
|8def=
|8stat=
|8stat=optional-


|9=
|9=iconSecondary
|9d=
|9d=A jquery UI icon class for the secondary icon (in LTR languages on the right side of the button label/text). E.g. ''ui-icon-triangle-1-s''
|9def=
|9def=
|9stat=
|9stat=optional-


|10=class
|10=5
|10d=Add classes like <code> ui-button-green ui-button-large</code>
|10d=same as iconSecondary
|10def=
|10def=
|10stat=optional-
|10stat=optional-
|11=class
|11d=Add classes like <code> ui-button-green ui-button-large</code>
|11def=
|11stat=optional-


|name=Clickable button
|name=Clickable button
Line 58: Line 63:
* <code><nowiki>{{Clickable button|:en:Wikipedia:Manual of Style/Layout|'''Wikipedia's manual of Style'''|class=ui-button-orange ui-button-large}}</nowiki></code> →  
* <code><nowiki>{{Clickable button|:en:Wikipedia:Manual of Style/Layout|'''Wikipedia's manual of Style'''|class=ui-button-orange ui-button-large}}</nowiki></code> →  
** {{Clickable button|:en:Wikipedia:Manual of Style/Layout|'''Wikipedia's manual of Style'''|class=ui-button-orange ui-button-large}}
** {{Clickable button|:en:Wikipedia:Manual of Style/Layout|'''Wikipedia's manual of Style'''|class=ui-button-orange ui-button-large}}
* <code><nowiki>{{Clickable button|:en:Wikipedia:Twinkle/Preferences|'''Twinkle preferences'''|iconPrimary=ui-icon-wrench|class=ui-button-blue ui-button-large}}</nowiki></code> →
** {{Clickable button|:en:Wikipedia:Twinkle/Preferences|'''Twinkle preferences'''|iconPrimary=ui-icon-wrench|class=ui-button-blue ui-button-large}}
* <code><nowiki>{{Clickable button|target={{fullurl:Special:Random/User talk|action=edit&section=new&preloadtitle=I+love+your+work+because}}|text=Do something good|iconSecondary=ui-icon-heart|external=true|class=ui-button-red}}</nowiki></code> →
** {{Clickable button|target={{fullurl:Special:Random/User talk|action=edit&section=new&preloadtitle=I+love+your+work+because}}|text=Do something good|iconSecondary=ui-icon-heart|external=true|class=ui-button-red}}
|namespace=all
|namespace=all
|usergroup=all
|usergroup=all

Revision as of 11:08, 15 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}}
  • {{Clickable button|:en:Wikipedia:Twinkle/Preferences|'''Twinkle preferences'''|iconPrimary=ui-icon-wrench|class=ui-button-blue ui-button-large}}
  • {{Clickable button|target={{fullurl:Special:Random/User talk|action=edit&section=new&preloadtitle=I+love+your+work+because}}|text=Do something good|iconSecondary=ui-icon-heart|external=true|class=ui-button-red}}

Usage

{{Clickable button |target= |text= |external= }}

Template parameters

ParameterDescriptionDefaultStatus
targetThe target page of the "button". For external links, however, it is recommended using the named parameter targetemptyrequired
1same as target; Please use named parameters if it is an external link because they often contain = which would confuse the parser.emptyoptional
textText (caption) the button should carry. Either you specify text or an icon.emptyrequired
2same as textemptyoptional
externalIs this an external link? If it is, set to yes or aye, or whatever you like, except nothing.emptyoptional
3same as externalemptyoptional
iconPrimaryA jquery UI icon class for the primary icon (in LTR languages on the left side of the button label/text). E.g. ui-icon-gearemptyoptional
4same as iconPrimaryemptyoptional
iconSecondaryA jquery UI icon class for the secondary icon (in LTR languages on the right side of the button label/text). E.g. ui-icon-triangle-1-semptyoptional
5same as iconSecondaryemptyoptional
classAdd classes like ui-button-green ui-button-largeemptyoptional

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.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.