ထႅမ်းပလဵတ်ႉ:Clickable button
| ဢဝ် ထႅမ်းပလဵတ်ႉ ၼႆႉ ၸႂ်ႉဝႆႉတီႈ တူဝ်လိၵ်ႈ ပိူင် ယဝ်ႉ။ ပေႃးႁဵတ်းလွင်ႈလႅၵ်ႈလၢႆႈ ဢၼ်ၼႆႉၼႆႉ တေၸၢင်ႈႁႂ်ႈပဵၼ် လွင်ႈလႅၵ်ႈလၢႆႈၸူး ၽၢင်ႁၢင်ႈ ၽူႈၸႂ်ႉတိုဝ်းဝီႇၶီႇၽီးတီးယႃး ၵမ်းလဵဝ်ယဝ်ႉ။တွၼ်ႈတႃႇ ငိူင်ႉဝႄႈလႆႈ လွင်ႈပဵၼ် တၢင်းယုင်ႈၵဝ်း ယႂ်ႇယႂ်ႇလူင်လူင်ၼႆႉ လွင်ႈလႅၵ်ႈလၢႆႈ ဢၼ်လႂ်သေဢမ်ႇဝႃႈ ဢဝ်တင်း ထႅမ်းပလဵတ်ႉ ႁင်း /sandbox ဢမ်ႇၼၼ် /testcases ၼႃႈလိၵ်ႈၽႄ၊ ဢမ်ႇၼၼ် ၸၢမ်းတူၺ်းဢွၼ်တၢင်း ၵႃႈတီႈဢွင်ႈတီႈၽူႈၸႂ်ႉတိုဝ်း သုၼ်ႇတူဝ်ၼၼ်ႉလႄႈ။ တီႈလွင်ႈလႅၵ်ႈလၢႆႈၸိူဝ်းၼၼ်ႉ ႁဵတ်းလွင်ႈမႄးထတ်း ပွၵ်ႈလဵဝ်ၵူၺ်းသေၵေႃႈ ၸၢင်ႈသႂ်ႇလႆႈတီႈ ထႅမ်းပလဵတ်ႉ ယူႇ။ မိူဝ်ႈပႆႇသႂ်ႇ လွင်ႈလႅၵ်ႈလၢႆႈ ဢၼ်လႂ်သေဢမ်ႇဝႃႈ ဢုပ်ႇဢူဝ်း တီႈ ၼႃႈလိၵ်ႈ တႃႇဢုပ်ႇၼၼ်ႉ လႄႈ။ |
| should not be used in the article namespace. If the desire is to "navigate" a reader to a new page, taking them away from the current page, a link is preferred. Buttons are used within Wikipedia to trigger an "action". |
| This template uses Lua: |
This template styles a link like a button, using the deprecated mediawiki.ui.button module. This expands the clickable area and tap target for the link.
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်းငဝ်ႈငႃႇ]- All parameters
{{Clickable button|wikilink|display|color=color|url=url|class=class|link=}}- wikilink
- Unnamed first parameter; the title of the page being linked. Brackets are not necessary
- display (optional)
- Optional unnamed second parameter; the text to display. Not needed if the text to display is the wikilink itself
|color=or|class=- Color to display.
|color=acceptsblueandred,|class=acceptsmw-ui-progressiveandmw-ui-destructive |url=- URL to link through the button. If no wikilink/display text is provided, will show the URL, otherwise will show the wikilink/display text
|link=no- Use this parameter set to "no" to display a button without linking to anything
Examples
[မႄးထတ်းငဝ်ႈငႃႇ]Wikilinks
[မႄးထတ်းငဝ်ႈငႃႇ]{{Clickable button|Main Page}}→{{Clickable button|Main Page|Click here to visit the main page}}→{{Clickable button|Click here|link=no}}→
Colors
[မႄးထတ်းငဝ်ႈငႃႇ]{{Clickable button|Main Page}}→ – without defined|color=and|class=, the default is a white button{{Clickable button|Main Page|color=blue}}→{{Clickable button|Main Page|color=red}}→{{Clickable button|Main Page|class=mw-ui-progressive}}→{{Clickable button|Main Page|class=mw-ui-destructive}}→
URLs
[မႄးထတ်းငဝ်ႈငႃႇ]{{Clickable button|url=https://example.com}}→{{Clickable button|Example|url=https://example.com}}→{{Clickable button|2=Example|url=https://example.com}}→
Adding an icon
[မႄးထတ်းငဝ်ႈငႃႇ]Adding an icon to a button should be avoided. Don't forget to hide the icon from the accessibility DOM by wrapping it in a span that is aria-hidden="true" so that a screen reader doesn't read it out loud.
<span class="mw-ui-button mw-ui-progressive"><span aria-hidden="true">[[File:OOjs UI icon logo-wikimediaCommons-invert.svg|15px|link=|alt=]]</span> {{int:multimediaviewer-repository-local}}</span>
Template data
[မႄးထတ်းငဝ်ႈငႃႇ]Styles a link like a button, using the mediawiki.ui.button module
| Parameter | ၶေႃႈသပ်းလႅင်း | Type | Status | |
|---|---|---|---|---|
| Link/Label | 1 | Defines the page to link to, and uses that page's title as the text for the button
| Page name | required |
| Label | 2 | Defines the text that appears on the button
| Unknown | suggested |
| URL | url | Defines a web address for the button to link to
| URL | optional |
| class | class | Defines the visual type of the button
| String | optional |
| Custom CSS styling | style | Allows custom CSS styling to be applied to the button
| String | optional |
| Category switch | category | Whether or not categories should be on
| Boolean | optional |
| color | color | Defines the visual type of the button
| String | optional |
တူၺ်းပႃး
[မႄးထတ်းငဝ်ႈငႃႇ]- commons:Template:Clickable button, corresponding clickable button at Commons.
- Wikimedia design style guide advice on buttons
- phab:T146923, which dropped support for
mw-ui-constructive, the CSS class for green buttons