Template:Clickable button 2/doc: Difference between revisions

From escforumwiki
Jump to navigation Jump to search
false
en>Jdaloner
Modified <includeonly> section so that "sandbox" subpage won't appear in categories.
Line 21: Line 21:


{{Button templates}}
{{Button templates}}
<includeonly>
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories and interwikis go here: -->
<!-- Categories and interwikis go here: -->
[[Category:Wikipedia formatting and function templates]]
[[Category:Wikipedia formatting and function templates]]
[[Category:Wikipedia button templates]]
[[Category:Wikipedia button templates]]


</includeonly>
}}</includeonly>

Revision as of 12:35, 26 July 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}}

See also