Toggle menu
2
2
238
MechaWiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.


Docs for MechaButton

edit source

Documentation included within a "noinclude". Edit these docs at Template:MechaButton/docs

Creates a Mecha-styled button linking to internal or external pages.

Buttons use the global .mecha-button style and support icons and variants.

Basic usage

edit source
{{MechaButton
|link=Install
|text=Install Mechanix
}}

Install Mechanix


Parameters

edit source
Parameter Required Description Example
link yes Page name or external URL Install
text no Button text Install Mechanix
type no Button style variant mecha-button-secondary
icon no Icon class mecha-i mecha-i--rocket
external no Set to 1 for external links 1

Button variants

edit source

Secondary button

edit source
{{MechaButton
|link=Development
|text=Development Guide
|type=mecha-button-secondary
}}

Development Guide


Button with icon

edit source
{{MechaButton
|link=Install
|text=Install
|icon=mecha-i mecha-i--rocket
}}

Install


edit source
{{MechaButton
|link=https://mecha.so
|text=Visit Website
|external=1
}}

[Website]


Button groups

edit source

Use with Template:MechaButtons:

{{MechaButtons|
{{MechaButton|link=Install|text=Install}}
{{MechaButton|link=Apps|text=Browse Apps|type=mecha-button-secondary}}
}}
  • Internal links use page names, not full URLs.
  • External links require |external=1.
  • Icons use the global Mecha icon system.