Template:Cdx-button
This template uses TemplateStyles: |
Uses Lua: |
This template simulates a Codex-styled button. You can use an internal wikilink with the |link=
parameter, or a full URL using the |url=
parameter.
Examples
Icons
This template supports Codex icons that are in mw:Category:Wikimedia Codex icons, and defined in Template:Cdx-button/styles.css.
NOTE: This uses the mask-image CSS property, which will not work in older browsers.
TemplateData
Display a Codex-formatted 'fake' button that links to a wiki page or external URL.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Wiki link target | link | The destination of the button's link. | Page name | required |
Label | label | The displayed button label. | String | required |
URL | url | A full URL to use instead of the link parameter | URL | optional |
Action | action | no description
| String | optional |
Weight | weight | no description
| String | optional |
Icon | icon | Which Codex icon to use
| String | optional |