قالب:زر للنقر 2
(تم التحويل من قالب:Clickable button 2)
This template is used on 586256 pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages, or in your own user space. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
This template 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 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 at the talk page before implementing them. |
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}}
- Result:
- Code:
{{Clickable button 2|Main Page|Cover page}}
- Result:
- Code:
{{Clickable button 2|Main Page|url=http://en.wikipedia.org}}
- Result:
- Code:
{{Clickable button 2|Main Page|class=mw-ui-destructive}}
- Result:
- Code:
{{Clickable button 2|Main Page|class=mw-ui-progressive}}
- Result:
Note: After the changes outlined in Phabricator task قالب: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
وسيط | وصف | نوع | حالة | |
---|---|---|---|---|
Link/Label | 1 | دون وصف | غير معروف | مطلوب |
Label | 2 | دون وصف | غير معروف | مقترح |
URL | url | دون وصف | مسار | اختياري |
class | class | دون وصف
| نص | اختياري |
style | style | دون وصف | نص | اختياري |
category | category | دون وصف | بولياني | اختياري |
See also
- commons:Template:Clickable button, corresponding clickable button at Commons.
The above documentation is transcluded from قالب:زر للنقر 2/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |