Template:Clickable button 2/doc: Difference between revisions

From escforumwiki
Jump to navigation Jump to search
en>Lam-ang
m use main template as examples instead of sandbox
en>Mr. Stradivarius
add {{lua}}
Line 1: Line 1:
{{template shortcut|CLB2}}
{{template shortcut|CLB2}}
{{lua|Module:Clickable button 2}}
This template generates a clickable button that is styled using the mediawiki.ui.button module. It can be used in the following ways,
This template generates a clickable button that is styled using the mediawiki.ui.button module. It can be used in the following ways,



Revision as of 04:32, 11 June 2014

This template generates a clickable button that is styled using the mediawiki.ui.button module. It can be used in the following ways,

  • Code: {{Clickable button 2|Main Page}}
  • Code: {{Clickable button 2|Main Page|Cover page}}
  • Code: {{Clickable button 2|Home|url=http://en.wikipedia.org}}
  • Code: {{Clickable button 2|Main Page|class=mw-ui-constructive}}
  • Code: {{Clickable button 2|Main Page|class=mw-ui-destructive}}
  • Code: {{Clickable button 2|Main Page|class=mw-ui-progressive}}

Note that if a browser does not have JavaScript enabled then no button is displayed but the text will still be displayed.

See also