Template:Clickable button/doc: Difference between revisions
Appearance
Lumosityfan (talk | contribs) Added templates category and noinclude |
Pepperonipi (talk | contribs) Updated documentation |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
The '''Clickable button''' template is a template used for generating clickable buttons. | The '''Clickable button''' template is a template used for generating clickable buttons. | ||
== Parameters == | == Parameters == | ||
:<code><nowiki>1</nowiki></code> - the text | :<code><nowiki>1</nowiki></code> - the page to link to, shown in the button text | ||
:<code><nowiki>2</nowiki></code> - the alternate text to use in the button | |||
:<code><nowiki>url</nowiki></code> - the url for the button to link to | :<code><nowiki>url</nowiki></code> - the url for the button to link to | ||
:<code><nowiki> | :<code><nowiki>class</nowiki></code> - either <code>mw-ui-progressive</code> for a blue button, or <code>mw-ui-destructive</code> for a red button | ||
== Usage == | == Usage == | ||
You always must supply the first argument, and you can optionally supply the other arguments. | |||
== Examples == | == Examples == | ||
| Line 14: | Line 15: | ||
|- | |- | ||
|<pre> | |<pre> | ||
{{Clickable button|SOINC | {{Clickable button|Main Page}} | ||
</pre> | |||
|{{Clickable button|Main Page}} | |||
|- | |||
|<pre> | |||
{{Clickable button|SOINC|url=https://www.soinc.org}} | |||
</pre> | |||
|{{Clickable button|SOINC|url=https://www.soinc.org}} | |||
|- | |||
|<pre> | |||
{{Clickable button|Florida|class=mw-ui-progressive}} | |||
</pre> | </pre> | ||
|{{Clickable button| | |{{Clickable button|Florida|class=mw-ui-progressive}} | ||
|- | |- | ||
|<pre> | |<pre> | ||
{{Clickable button| | {{Clickable button|Ohio|Maybe Ohio?|class=mw-ui-destructive}} | ||
</pre> | </pre> | ||
|{{Clickable button| | |{{Clickable button|Ohio|Maybe Ohio?|class=mw-ui-destructive}} | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 03:17, 17 May 2022
The Clickable button template is a template used for generating clickable buttons.
Parameters
1- the page to link to, shown in the button text2- the alternate text to use in the buttonurl- the url for the button to link toclass- eithermw-ui-progressivefor a blue button, ormw-ui-destructivefor a red button
Usage
You always must supply the first argument, and you can optionally supply the other arguments.
Examples
{{Clickable button|Main Page}}
|
|
{{Clickable button|SOINC|url=https://www.soinc.org}}
|
|
{{Clickable button|Florida|class=mw-ui-progressive}}
|
|
{{Clickable button|Ohio|Maybe Ohio?|class=mw-ui-destructive}}
|