الگو:Clickable button 2/توضیحات
پرونده:Edit-copy purple.svg | این زیرصفحهٔ مستندات الگو:Clickable button 2 است. این شامل اطلاعات استفاده، الگوها، پیوندهای بین زبانی و سایر اطلاعات است که در اصل الگو صفحه قرار نمیگیرد. |
Warning | این الگو در نزدیک ۵۸۶٬۰۰۰ صفحه به کار رفتهاست. برای جلوگیری از اخلال ویکی و فشار به سرورها، همهد تغییرات باید اول در زیرصفحهٔ /موقت یا /آزمایش الگو بیازمایید ، یا در یک زیرصفحهٔ کاربری بیازمایید. آزمایش شوند. لطفاً تمام تغییرات را در یک ویرایش به الگوی اصلی بیاورید. لطفاً تغییرات را اول در صفحهٔ بحث طرح کنید و بعد به کار ببندید. آمار کاربردها مکمن است توسط ربات بهروز شود. |
پرونده:Ambox important.svg | این الگو در در پیامهای سامانه استفاده شدهاست. تغییرات آن تأثیر منجر به تغییر بیدرنگ در میانای کاربری سامانهٔ ویکیپدیا میشود. در ویرایش آن احتیاط کنید و همهٔ ویرایشها را پیش از ذخیرهسازی در یک صفحهٔ آزمایشی محک بزنید. |
نماد لوآ | این الگو از لوآ استفاده میکند: |
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: الگو:Clickable button 2
- Code:
{{Clickable button 2|Main Page|Cover page}}
- Result: الگو:Clickable button 2
- Code:
{{Clickable button 2|Main Page|url=http://en.wikipedia.org}}
- Result: الگو:Clickable button 2
- Code:
{{Clickable button 2|Main Page|class=mw-ui-destructive}}
- Result: الگو:Clickable button 2
- Code:
{{Clickable button 2|Main Page|class=mw-ui-progressive}}
- Result: الگو:Clickable button 2
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.