Шаблон:Clickable button: различия между версиями

Материал из Ведопедии
Перейти к навигации Перейти к поиску
(add colors)
Метка: Выполнено через Tor
(test new colors)
Метка: Выполнено через Tor
Строка 5: Строка 5:
 
| white =
 
| white =
 
| yellow = #FFFCCC
 
| yellow = #FFFCCC
| violet = #CC66FF
+
| violett = CC66FF
}}"
+
}}">
>{{{1|Button text}}}</span>
+
{{{1|Button text}}}</span>
 
<noinclude>
 
<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! -->
Строка 38: Строка 38:
 
You can select three colors: white (default), blue (progressive) and red (destructive):
 
You can select three colors: white (default), blue (progressive) and red (destructive):
   
White (Default) example: <code><nowiki>{{Clickable button|Button text|color=white}}</nowiki></code>
+
Red (Destructive) example: <code><nowiki>{{Clickable button|Button text|color=red}}</nowiki></code>
: Result: {{Clickable button|Button text|color=white}}
+
: Result: {{Clickable button|Button text|color=red}}
   
 
Blue (Progressive) example: <code><nowiki>{{Clickable button|Button text|color=blue}}</nowiki></code>
 
Blue (Progressive) example: <code><nowiki>{{Clickable button|Button text|color=blue}}</nowiki></code>
 
: Result: {{Clickable button|Button text|color=blue}}
 
: Result: {{Clickable button|Button text|color=blue}}
   
Red (Destructive) example: <code><nowiki>{{Clickable button|Button text|color=red}}</nowiki></code>
+
White (Default) example: <code><nowiki>{{Clickable button|Button text|color=white}}</nowiki></code>
: Result: {{Clickable button|Button text|color=red}}
+
: Result: {{Clickable button|Button text|color=white}}
  +
  +
(and constructive (test):
  +
Green (Constructive) example: <code><nowiki>{{Clickable button|Button text|color=green}}</nowiki></code>
  +
: Result: {{Clickable button|Button text|color=green}}
  +
  +
(New):
  +
Yellow (Test) example: <code><nowiki>{{Clickable button|Button text|color=yellow}}</nowiki></code>
  +
: Result: {{Clickable button|Button text|color=yellow}}
  +
  +
(New):
  +
Violett (Test) example: <code><nowiki>{{Clickable button|Button text|color=violett}}</nowiki></code>
  +
: Result: {{Clickable button|Button text|color=violett}}
   
 
'''Note:''' After the changes outlined in Phabricator task {{Phab|T110555}} were implemented, <code><nowiki>{{Clickable button|color=green}}</nowiki></code> produces the same output as <code><nowiki>{{Clickable button|color=blue}}</nowiki></code>.
 
'''Note:''' After the changes outlined in Phabricator task {{Phab|T110555}} were implemented, <code><nowiki>{{Clickable button|color=green}}</nowiki></code> produces the same output as <code><nowiki>{{Clickable button|color=blue}}</nowiki></code>.

Версия от 22:01, 8 декабря 2020

Button text

Шаблон:documentation

Usage[править | править код | hide | hide all]

Unnamed parameters:

  • {{Clickable button | TEXT }}
  • {{Clickable button | TEXT | COLOR }}

Named parameters:

  • {{Clickable button | 1= TEXT }}
  • {{Clickable button | 1= TEXT | color= COLOR }}

Button with wikilink:

  • [[ WIKILINK | {{Clickable button | TEXT }} ]]
  • [[ WIKILINK | {{Clickable button | TEXT | color= COLOR }} ]]

Parameter: 1 (1)[править | править код | hide]

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[править | править код | hide]

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

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

Result:

Button text


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

Result:

Button text


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

Result:

Button text


(and constructive (test): Green (Constructive) example: {{Clickable button|Button text|color=green}}

Result:

Button text


(New): Yellow (Test) example: {{Clickable button|Button text|color=yellow}}

Result:

Button text


(New): Violett (Test) example: {{Clickable button|Button text|color=violett}}

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}}.