Template:Clickable button: Difference between revisions
m +buttons possible |
Tacsipacsi (talk | contribs) move category to documentation subpage |
||
(11 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{#if:{{{3|{{{external|}}}}}} |
|||
| <span class="plainlinks">[{{{1|{{{target|//parameter_target_is_empty.de}}}}}} <span class="submit ui-button ui-widget ui-state-default ui-corner-all {{Clickable button/iconclass|{{{4|{{{iconPrimary|}}}}}}|{{{5|{{{iconSecondary|}}}}}}}} {{{class|}}}" role="button" aria-disabled="false">{{#if:{{{4|{{{iconPrimary|}}}}}}|<span class="ui-button-icon-primary ui-icon {{{4|{{{iconPrimary}}}}}}"> </span>}} |
| <span class="plainlinks" {{#if:{{{id|}}}|id="{{{id}}}"}}>[{{{1|{{{target|//parameter_target_is_empty.de}}}}}} <span class="submit ui-button ui-widget ui-state-default ui-corner-all {{Clickable button/iconclass |
||
|{{{4|{{{iconPrimary|}}}}}} |
|||
|{{{5|{{{iconSecondary|}}}}}} |
|||
|{{{2|{{{text|<noinclude>x</noinclude>}}}}}} |
|||
}} {{{class|}}}" role="button" aria-disabled="false"><!-- // -->{{#if:{{{4|{{{iconPrimary|}}}}}} |
|||
|<span class="ui-button-icon-primary ui-icon {{{4|{{{iconPrimary}}}}}}"> </span> |
|||
}}<span class="ui-button-text">{{{2|{{{text|Parameter '''text''' is empty}}}}}}</span>{{#if:{{{5|{{{iconSecondary|}}}}}} |
|||
|<span class="ui-button-icon-secondary ui-icon {{{5|{{{iconSecondary|}}}}}}"> </span> |
|||
}}</span>]</span><!-- |
|||
⚫ | |||
| [[{{{1|{{{target|Parameter target is empty!}}}}}}|<span class="submit ui-button ui-widget ui-state-default ui-corner-all {{Clickable button/iconclass|{{{4|{{{iconPrimary|}}}}}}|{{{5|{{{iconSecondary|}}}}}}}} {{{class|}}}" role="button" aria-disabled="false">{{#if:{{{4|{{{iconPrimary|}}}}}}|<span class="ui-button-icon-primary ui-icon {{{4|{{{iconPrimary}}}}}}"> </span>}}{{#if:{{{2|{{{text|<noinclude>Demo</noinclude>}}}}}}|<span class="ui-button-text">{{{2|{{{text|Parameter '''text''' is empty}}}}}}</span>{{#if:{{{5|{{{iconSecondary|}}}}}}|<span class="ui-button-icon-primary ui-icon {{{5|{{{iconSecondary|}}}}}}"> </span>}}}}</span>]] |
|||
| [[{{{1|{{{target|Parameter target is empty!}}}}}}|<span class="submit ui-button ui-widget ui-state-default ui-corner-all {{Clickable button/iconclass |
|||
}}<!-- |
|||
|{{{4|{{{iconPrimary|}}}}}} |
|||
|{{{5|{{{iconSecondary|}}}}}} |
|||
|{{{2|{{{text|<noinclude>x</noinclude>}}}}}} |
|||
⚫ | |||
}} {{{class|}}}" role="button" aria-disabled="false" {{#if:{{{id|}}}|id="{{{id}}}"}}><!-- // -->{{#if:{{{4|{{{iconPrimary|}}}}}} |
|||
</onlyinclude> |
|||
|<span class="ui-button-icon-primary ui-icon {{{4|{{{iconPrimary}}}}}}"> </span> |
|||
⚫ | |||
}}<span class="ui-button-text">{{{2|{{{text|Parameter '''text''' is empty}}}}}}</span>{{#if:{{{5|{{{iconSecondary|}}}}}} |
|||
<!-- Add categories and interwikis to Template:Clickable button/doc subpage, not here! --> |
|||
|<span class="ui-button-icon-secondary ui-icon {{{5|{{{iconSecondary|}}}}}}"> </span> |
|||
}}</span>]] |
|||
⚫ |
Latest revision as of 13:19, 25 September 2020
This template is obsolete, you should use {{Clickable button 2}} instead.
Provides a button with hover effects.
Parameter | Description | Type | Status | |
---|---|---|---|---|
target | target 1 | The target page of the button. For external links, it is recommended using the named parameter target because they often contain “=” which would confuse the parser. | Line | required |
button text | text 2 | Text (caption) the button should carry. Either you specify text or an icon. | Line | required |
external link | external 3 | Is this an external link? If it is, set to yes or aye, or whatever you like, except nothing. | Line | optional |
primary icon | iconPrimary 4 | A jQuery UI icon class for the primary icon (in LTR languages on the left side of the button label/text)
| Line | optional |
extra CSS classes | class | no description
| Line | optional |
ID | id | Unique id to be used as the button's ID-Attribute. Useful for JavaScript-binding and CSS-styling. | Line | optional |
secondary icon | iconSecondary 5 | A jQuery UI icon class for the secondary icon (in LTR languages on the right side of the button label/text)
| Line | optional |
See icon examples in the commons:Template:Clickable button 2/Icons.
See also
{{Clickable button 2}}
- a button with updated formatting