Welcome to the TTSCpedia (beta)! This wiki is the successor to the FANDOM/Wikia version! You may create an account on the new wiki during the Public Beta stage and begin editing. Please see the to-do list here. Any content from the FANDOM/Wikia wiki will not be transferred automatically, such as pages, and accounts. That must be done manually by the end user, being you. |
Limited Feature Set Many TTSCpedia features are currently semi-broken due to regressions introduced with the MediaWiki upgrade. We hope to be fully operational again soon. The MonoBook skin has temporarily been set as the default skin due to Cali not being fully ported to the new version of MediaWiki. |
Template:Clickable button 2/doc
From The TTSCpedia
< Template:Clickable button 2
Jump to navigationJump to searchRevision as of 03:40, 24 February 2019 by FairPlay137 (talk | contribs) (Created page with "{{Documentation subpage}} {{Used in system}} {{lua|Module:Clickable button 2}} This template styles a link like a button, using the mediawiki.ui.button module. This expands t...")
This template is used in system messages. Changes to it can cause immediate changes to the TTSCpedia user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please discuss any changes on the talk page before implementing them. |
This template uses Lua: |
This template styles a link like a button, using the mediawiki.ui.button module. This expands the clickable area and tap target for the link. It can be used in the following ways,
- Code:
{{Clickable button 2|Main Page}}
- Code:
{{Clickable button 2|Main Page|Cover page}}
- Code:
{{Clickable button 2|Main Page|url=http://en.wikipedia.org}}
- Code:
{{Clickable button 2|Main Page|class=mw-ui-destructive}}
- Code:
{{Clickable button 2|Main Page|class=mw-ui-progressive}}
Note: After the changes outlined in Phabricator task Template:Phab were implemented, {{Clickable button 2|Main Page|class=mw-ui-constructive}}
produces the same output as {{Clickable button 2|Main Page|class=mw-ui-progressive}}
.
Template data
Styles a link like a button, using the mediawiki.ui.button module
Parameter | Description | Type | Status | |
---|---|---|---|---|
Link/Label | 1 | no description | Unknown | required |
Label | 2 | no description | Unknown | suggested |
URL | url | no description | URL | optional |
Class | class | no description
| String | optional |
Style | style | no description | String | optional |
Category | category | no description | Boolean | optional |
See also
- commons:Template:Clickable button, corresponding clickable button at Commons.