Template:Button/documentation
From WikiLectures
Šablona slouží pro vytvoření klikatelného tlačítka. The button is based on the currently developed OOjs UI', which should gradually replace all form fields across all wikiprojects of the foundation Wikimedia.
Parameters[edit source]
Either the first parameter or the url
parameter is mandatory, the others are optional.
{{Button |internal link |button text |url = address of external link |size = button size |class = class name (see examples) |class2 = name of a possible second class (see examples) |title = the title that is displayed when the mouse hovers over the button }}
Examples[edit source]
{{Button|Home Page|Home Page}}
{{Button|Home Page}}
{{Button|Home Page|size=20px}}
{{Button|url=https://en.wikipedia.org|MainPage}}
{{Button|Main Page|class=destructive}}
{{Button|Main Page|Class=progressive}}
{{Button|Main Page|Class=destructive|Class2=primary}}
{{Button|Main Page|Class=progressive|Class2=primary}}
{{Button|Main Page|Class=disabled}}
creates:
Source and technical details[edit source]
- This template including most of the documentation was taken from the Czech Wikipedia 24.10.2016, see the original zde.