Template:Wn/si/ක්රියා කරවිය හැකි පැනලය
| මෙම සැකිල්ල ලුවා භාවිතා කරයි: |
භාවිතය
[edit source]උපදෙස් සඳහා b:si:Template:ක්රියා කරවිය හැකි පැනලය වෙත යොමු වන්න.
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,
- කේතය:
{{Wn/si/ක්රියා කරවිය හැකි පැනලය|මුල් පිටුව}} - කේතය:
{{Wn/si/ක්රියා කරවිය හැකි පැනලය|Main Page|පිට කවරය}} - කේතය:
{{Wn/si/ක්රියා කරවිය හැකි පැනලය|Main Page|url=http://si.wikipedia.org}} - Code:
{{Wn/si/ක්රියා කරවිය හැකි පැනලය|Main Page|class=mw-ui-destructive}} - Code:
{{Wn/si/ක්රියා කරවිය හැකි පැනලය|Main Page|class=mw-ui-progressive}}
Note: After the changes outlined in Phabricator task Template:Wn/si/Phab were implemented, {{Wn/si/ක්රියා කරවිය හැකි පැනලය|Main Page|class=mw-ui-constructive}} produces the same output as {{Wn/si/ක්රියා කරවිය හැකි පැනලය|Main Page|class=mw-ui-progressive}}.
Template data
[edit source]Styles a link like a button, using the mediawiki.ui.button module
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Link/Label | 1 | Defines the page to link to, and uses that page's title as the text for the button
| Page name | required |
| Label | 2 | Defines the text that appears on the button | Unknown | suggested |
| URL | url | Defines a web address for the button to link to
| URL | optional |
| class | class | Defines the visual type of the button
| String | optional |
| style | style | no description | String | optional |
| category | category | no description | Boolean | optional |
| ඉහත දැක්වෙන උපදෙස්, Template:Wn/si/ක්රියා කරවිය හැකි පැනලය/උපදෙස් වෙතින් ගෙනැවිත් ඇත. (සංස්කරණය | ඉතිහාසය) සංස්කාරක වරුන් හට මෙම සැකිල්ලේ වැලිපිල්ල (නිර්මාණය | mirror) සහ testcases (නිර්මාණය) පිටු තුළ අත්හදා බැලීම් සිදු කළ හැකිය. කරුණාකර /උපදෙස් උප පිටුව තුළට ප්රවර්ග එක් කරන්න. මෙම සැකිල්ලේ උප පිටු. |