داڕێژە:Clickable button
ڕواڵەت
بەڵگەدارکردنی داڕێژە[ببینە] [دەستکاری بکە] [مێژوو] [پاکسازی]
ئەم داڕێژەیە لوا بەکار دەھێنێت: |
This داڕێژە is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this داڕێژە's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this داڕێژە. Please discuss any changes on the talk page before implementing them. |
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 styles a link like a button, using the deprecated mediawiki.ui.button module. This expands the clickable area and tap target for the link.
Usage
[دەستکاری]- 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=
acceptsblue
andred
,|class=
acceptsmw-ui-progressive
andmw-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}}
→
Template data
[دەستکاری]Styles a link like a button, using the mediawiki.ui.button module
پارامەتر | وەسف | جۆر | ڕەوش | |
---|---|---|---|---|
Link/Label | 1 | Defines the page to link to, and uses that page's title as the text for the button
| پەڕە | پێویستە |
Label | 2 | Defines the text that appears on the button
| نەزانراو | پێشنیارکراوە |
URL | url | Defines a web address for the button to link to
| ناونیشانی ئینتەرنێتی | دڵخواز |
class | class | Defines the visual type of the button
| زنجیرەنووسە | دڵخواز |
Custom CSS styling | style | Allows custom CSS styling to be applied to the button
| زنجیرەنووسە | دڵخواز |
Category switch | category | Whether or not categories should be on
| Boolean | دڵخواز |
color | color | بێوەسف
| نەزانراو | دڵخواز |
See also
[دەستکاری]- commons:Template:Clickable button, corresponding clickable button at Commons.
- Wikimedia design style guide advice on buttons
بەڵگەنامەی سەرەوە لە داڕێژە:Clickable button/docەوە ھاتووە. (دەستکاری بکە | مێژوو) دەستکاریکەران دەتوانن ئەم داڕێژەیە لە پەڕەکانی خۆڵەپەتانێ (دروست بکە | ئاوێنە) و ئەزموون (دروست بکە) تاقی بکەنەوە. تکایە پۆلەکان بە ژێرپەڕەی /doc زیاد بکە. ژێرپەڕەکانی ئەم داڕێژە. |