Vorlage:Clickable button/doc: Unterschied zwischen den Versionen
K (Reverted 1 edit by 166.181.249.2 (talk) to last revision by Pppery) |
K (1 Version von wpen:Template:Clickable_button_2/doc importiert) |
(kein Unterschied)
|
Version vom 15. Januar 2023, 14:57 Uhr
Diese Vorlage benutzt Module:Clickable button 2, Skripte geschrieben in der Programmiersprache Lua. Bitte informiere dich dort, wenn du mehr über die Sprache und ihren Einsatz erfahren willst. Diese Vorlagen sollte im Regelfall nicht ersetzt werden. |
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,
- Code:
{{Clickable button 2|Main Page}}
- Result:
- Code:
{{Clickable button 2|Main Page|Cover page}}
- Result:
- Code:
{{Clickable button 2|Main Page|url=http://en.wikipedia.org}}
- Result:
- Code:
{{Clickable button 2|Main Page|class=mw-ui-destructive}}
- Result:
- Code:
{{Clickable button 2|Main Page|class=mw-ui-progressive}}
- Result:
Note: After the changes outlined in Phabricator task T110555 were implemented, {{Clickable button 2|Main Page|class=mw-ui-constructive}}
produces the same output as {{Clickable button 2|Main Page|class=mw-ui-progressive}}
.
Template data
Styles a link like a button, using the mediawiki.ui.button module
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
Link/Label | 1 | Defines the page to link to, and uses that page's title as the text for the button
| Seitenname | erforderlich |
Label | 2 | Defines the text that appears on the button | Unbekannt | vorgeschlagen |
URL | url | Defines a web address for the button to link to
| URL | optional |
class | class | Defines the visual type of the button
| Mehrzeiliger Text | optional |
style | style | keine Beschreibung | Mehrzeiliger Text | optional |
category | category | keine Beschreibung | Wahrheitswert | optional |
See also
- commons:Template:Clickable button, corresponding clickable button at Commons.
- Wikimedia design style guide advice on buttons