Diqqət! 4 aprel 2024-cü il tarixdən saytın yeni versiyası sheki.org domenində fəaliyyət göstərir. Bu köhnə versiyadır və yenilənməsi məhdudlaşdırılıb. Lakin 6 yanvar 2025-ci il tarixədək bu vəziyyətdə internetdə qalacaqdır...

"Şablon:Clickable button" səhifəsinin versiyaları arasındakı fərqlər

Şəki Ensiklopediyası səhifəsi
Jump to navigation Jump to search
(11061 dəyişikliyi Aydinsalis (Müzakirə) tərəfindən geri alındı.)
Teq: Undo
 
Sətir 1: Sətir 1:
<span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-constructive | white =mw-ui-progressive | blue = mw-ui-progressive}}">{{{1|Button text}}}</span><noinclude>
+
<span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-constructive | white = | blue = mw-ui-progressive}}">{{{1|Button text}}}</span><noinclude>
 
<!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! -->
 
<!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! -->
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Səhifəsinin 22:10, 1 avqust 2020 tarixinə olan son halı

Button text

Şablondan istifadə təlimatı[bax] [redaktə] [tarixçə] [yenilə]

Examples

Parameter: 1 (1)

Example: {{Clickable button|This looks like a button}}

Result: This looks like a button

Example: [[Talk:Main Page|{{Clickable button|Main page talk page}}]]

Result: Main page talk page

Parameter: color

You can select three colors: white (default), blue (progressive) and red (destructive):

White (Default) example: {{Clickable button|Button text|color=white}}

Result: Button text

Blue (Progressive) example: {{Clickable button|Button text|color=blue}}

Result: Button text

Red (Destructive) example: {{Clickable button|Button text|color=red}}

Result: Button text

Note: After the changes outlined in Phabricator task {{Phab}} were implemented, {{Clickable button|color=green}} produces the same output as {{Clickable button|color=blue}}.