টেমপ্লেট:ক্লিকযোগ্য বোতাম ২

টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

টেমপ্লেট:Used in system

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.

Usage সম্পাদনা

All parameters:

{{ক্লিকযোগ্য বোতাম ২|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 parameer. 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 সম্পাদনা

Wikilinks সম্পাদনা

{{ক্লিকযোগ্য বোতাম ২|Main Page}}
{{ক্লিকযোগ্য বোতাম ২|Main Page|Click here to visit the main page}}
{{ক্লিকযোগ্য বোতাম ২|Click here|link=no}}

Colors সম্পাদনা

{{ক্লিকযোগ্য বোতাম ২|Main Page|color=blue}}
{{ক্লিকযোগ্য বোতাম ২|Main Page|color=red}}
{{ক্লিকযোগ্য বোতাম ২|Main Page|class=mw-ui-progressive}}
{{ক্লিকযোগ্য বোতাম ২|Main Page|class=mw-ui-destructive}}

Any other color will default to টেমপ্লেট:Clickable button

URLs সম্পাদনা

{{ক্লিকযোগ্য বোতাম ২|url=https://example.com}}
{{ক্লিকযোগ্য বোতাম ২|Example|url=https://example.com}}
{{ক্লিকযোগ্য বোতাম ২|2=Example|url=https://example.com}}

Template data সম্পাদনা

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

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

এই টেমপ্লেটটি প্যারামিটারের একই সরলরেখা বিন্যাসন পছন্দ করে।

প্যারামিটারবিবরণধরনঅবস্থা
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
অজানাপরামর্শকৃত
URLurl

Defines a web address for the button to link to

উদাহরণ
https://www.example.com
URLঐচ্ছিক
classclass

Defines the visual type of the button

উদাহরণ
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
বুলিয়ানঐচ্ছিক

See also সম্পাদনা

টেমপ্লেট:Button templates টেমপ্লেট:Sandbox other