Module:Clickable button/doc: Difference between revisions
From Neodyland Wiki
More actions
←Created page with '{{copied from wikipedia}}' |
create |
||
| Line 1: | Line 1: | ||
{{copied from wikipedia}} | {{documentation subpage}} {{copied from wikipedia}} | ||
{{Module rating|release}} | |||
<div style="background-color: var(--background-color-neutral-subtle); width: auto; padding: 0.2em 0.5em; margin: 4px 10%; border: 1px solid var(--border-color-disabled)">'''Shortcuts:''' {{mdl|module=Clickable button}}</div> | |||
'''Generates wikitext to render the a clickable button'''. Renders the button component from the [[wmdoc:codex/latest|Codex design system for Wikimedia]]. Includes helper functions for URL parsing and cleaning, adding tracking categories. Intended for use in templates and other modules. Implements [[Template:Clickable button]] and others. Supports legacy parameters. | |||
* Options to include an icon from the list in [[Template:Clickable button/styles.css]] | |||
* Create an icon-only or a dummy button (no target link/URL) | |||
* Target a URL or a wikilink | |||
* Set the weight, size and state of the button (enabled or disabled). | |||
Revision as of 19:39, 22 September 2025
Shortcuts: Module:Clickable button (talk · edit · hist · links · doc · subpages · tests / results · sandbox · all modules)
Generates wikitext to render the a clickable button. Renders the button component from the Codex design system for Wikimedia. Includes helper functions for URL parsing and cleaning, adding tracking categories. Intended for use in templates and other modules. Implements Template:Clickable button and others. Supports legacy parameters.
- Options to include an icon from the list in Template:Clickable button/styles.css
- Create an icon-only or a dummy button (no target link/URL)
- Target a URL or a wikilink
- Set the weight, size and state of the button (enabled or disabled).