Predloga:Gumb na klik
Predloga se uporablja na 10346 straneh, zato bo vsaka njena sprememba takoj zelo opazna. Prosimo, da vse spremembe, ki jih želite uvesti, pred uvedbo preizkusite na podstraneh predloge (/peskovnik in /testniprimeri) ali na svojih lastnih podstraneh. Pred spreminjanjem te predloge se o želenih spremembah rajši pogovorite na pogovorni strani. |
This template creates an area with the visual appearance of a button. This area can be placed inside a wikilink to give the link the appearance of a button, and expand its clickable size and tap target.
Usage
[uredi kodo]Unnamed parameters:
{{Gumb na klik | TEXT }}
{{Gumb na klik | TEXT | COLOR }}
Named parameters:
{{Gumb na klik | 1= TEXT }}
{{Gumb na klik | 1= TEXT | color= COLOR }}
Button with wikilink:
[[ WIKILINK | {{Gumb na klik | TEXT }} ]]
[[ WIKILINK | {{Gumb na klik | TEXT | color= COLOR }} ]]
Examples
[uredi kodo]Parameter: 1 (1)
[uredi kodo]Example: {{Gumb na klik|This looks like a button}}
- Result:
Example: [[Talk:Main Page|{{Gumb na klik|Main page talk page}}]]
Parameter: color
[uredi kodo]You can select three colors: white (default), blue (progressive) and red (destructive):
White (Default) example: {{Gumb na klik|Button text|color=white}}
- Result:
Blue (Progressive) example: {{Gumb na klik|Button text|color=blue}}
- Result:
Red (Destructive) example: {{Gumb na klik|Button text|color=red}}
- Result:
Note: After the changes outlined in Phabricator task T110555 were implemented, {{Gumb na klik|color=green}}
produces the same output as {{Gumb na klik|color=blue}}
.