مندرجات کا رخ کریں

سانچہ:Clickable button 2

آزاد دائرۃ المعارف، ویکیپیڈیا سے

لوا خطا ماڈیول:Lua_banner میں 103 سطر پر: attempt to index field 'edit' (a nil value)۔ لوا خطا ماڈیول:High-use میں 156 سطر پر: attempt to call upvalue '_fetch' (a nil value)۔

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 2|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= accepts blue and red, |class= accepts mw-ui-progressive and mw-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

[ترمیم]
[ترمیم]
سانچہ:Demo inline
سانچہ:Demo inline
سانچہ:Demo inline

Colors

[ترمیم]
سانچہ:Demo inline – without defined |color= and |class=, the default is a white button
سانچہ:Demo inline
سانچہ:Demo inline
سانچہ:Demo inline
سانچہ:Demo inline
سانچہ:Demo inline
سانچہ:Demo inline
سانچہ:Demo inline

Template data

[ترمیم]

Styles a link like a button, using the mediawiki.ui.button module

محددات سانچہ[انتظام TemplateData]

This template prefers inline formatting of parameters.

پیرامیٹروضاحتطرزحالت
Link/Label1

Defines the page to link to, and uses that page's title as the text for the button

مثال
Foobar
صفحہمطلوب
Label2

Defines the text that appears on the button

طے شدہ
the page being linked to
Unknownتجویز کردہ
URLurl

Defines a web address for the button to link to

مثال
https://www.example.com
یو آر ایلاختیاری
classclass

Defines the visual type of the button

Suggested values
mw-ui-progressive mw-ui-destructive
اِسٹرنگاختیاری
Custom CSS stylingstyle

Allows custom CSS styling to be applied to the button

طے شدہ
None
مثال
border: 2px solid red;
اِسٹرنگاختیاری
Category switchcategory

Whether or not categories should be on

طے شدہ
yes
مثال
no
خودکار قدر
0
بولیناختیاری
colorcolor

کوئی وضاحت نہیں

Suggested values
blue red green
Unknownاختیاری