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

creates: Home Page

Home Page

{{Button|Home Page}}

creates: Home Page

Home Page

{{Button|Home Page|size=20px}}

creates: Main Page

Main Page

{{Button|url=https://en.wikipedia.org|MainPage}}

creates: MainPage

MainPage

{{Button|Main Page|class=destructive}}

creates: Main Page

Main Page

{{Button|Main Page|Class=progressive}}

creates: MainPage

MainPage

{{Button|Main Page|Class=destructive|Class2=primary}}

creates: Main page

Main page

{{Button|Main Page|Class=progressive|Class2=primary}}

creates: Main Page

Main Page

{{Button|Main Page|Class=disabled}}

creates: Main Page

Main Page

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.