සැකිල්ල:Clickable button/උපදෙස්
Appearance
මෙය "" සඳහා උපදෙස් උප පිටුවක් වේ (සැකිල්ල සඳහා එම පිටුව වෙතට යොමු වන්න). මෙහි ඇත්තේ භාවිත තොරතුරු, ප්රවර්ග, සහ මූලික සැකිල්ල පිටුවට අදාළ නොවන වෙනත් අන්තර්ගතය වේ. |
<translate> </translate>
Provides a button with hover effects.
<translate> Usage</translate>
{{Clickable button |target= |text= |external= }}
<translate> </translate>
{{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-green 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§ion=new&preloadtitle=I+love+your+work+because}}|text=Do something good|iconSecondary=ui-icon-heart|external=true|class=ui-button-red}}
→
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
target 1 | The target page of the "button". For external links, however, it is recommended using the named parameter target. Please use named parameters if it is an external link because they often contain = which would confuse the parser. | empty | required | |
text 2 | Text (caption) the button should carry. Either you specify text or an icon. | empty | required | |
external 3 | Is this an external link? If it is, set to yes or aye, or whatever you like, except nothing. | empty | optional | |
iconPrimary 4 | 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[1] | empty | optional | |
iconSecondary 5 | 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 | empty | optional | |
class | Add classes like ui-button-green ui-button-large | empty | optional | |
id | Unique id to be used as the button's ID-Attribute. Useful for JavaScript-binding and CSS-styling. | empty | optional |
<translate> Additional information</translate>
<translate> The template is intended to be used in the following namespaces:</translate> <translate> all namespaces</translate>
<translate> The template is intended to be used by the following user groups:</translate> <translate> all users</translate>
<translate> Relies on:</translate>
<translate> ⧼Seealso⧽</translate>
<translate> </translate>
- {{button}} (works without JS enabled)
- {{Clickable button 2}} (import from de.wikipedia)
- {{key press}}
- {{Clickable button 3}}
<translate> Localization</translate>
<translate> This template is not intended to be localized.</translate>
Test suite/ Unit tests
Icon only | |||
Icon text | |||
Text only, links | |||
Colors |