模板:Clickable button 2/doc/cs
外观
| 文件:Codex icon book color-base.svg | This is a documentation subpage for 模板:Clickable button 2/doc. It contains usage information, categories and other content that is not part of the original 模板 page. |
| Lua标志 | 使用Lua |
Tato šablona generuje tlačítko, na které lze kliknout a jehož styl je vytvořen pomocí modulu mediawiki.ui.button. Lze jej použít následujícími způsoby,
- Kód:
{{Clickable button 2|Main Page}} - Kód:
{{Clickable button 2|Main Page|Cover page}} - Kód:
{{Clickable button 2|Main Page|url=http://en.wikipedia.org}} - Kód:
{{Clickable button 2|Main Page|class=mw-ui-destructive}} - Kód:
{{Clickable button 2|Main Page|class=mw-ui-progressive}}
Poznámka: Poté, co byly implementovány změny nastíněné v úloze Phabricator T110555, {{Clickable button 2|Main Page|class=mw-ui-constructive}} vytvoří stejný výstup jako {{Clickable button 2|Main Page|class=mw-ui-progressive}}.
Související odkazy
- commons:Template:Clickable button, odpovídající klikací tlačítko na Commons.