Template:Cdx-button/doc
This is a documentation subpage for Template:Cdx-button. It contains usage information, categories, and other content that is not part of the original template page. |
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
editIcons
editThis 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
editDisplay 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 |