Template:Clickable button 3/doc: Difference between revisions
More actions
No edit summary |
use {{TemplateBox}} |
||
| Line 1: | Line 1: | ||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | |||
{{TemplateBox | |||
|1 =1<!-- Name of the first parameter the template takes --> | |||
|1label =target<!-- A (very) brief name for the parameter. --> | |||
|1d-en =Link target page. Becomes the title when used with url<!-- English description of the first parameter the template takes --> | |||
|1aliases =<!-- List of aliases, separated by / (a slash) --> | |||
|1type =wiki-page-name<!-- number, string, string/wiki-user-name, string/wiki-page-name, string/line; unknown --> | |||
|1def =<!-- default value for the parameter --> | |||
|1stat =required<!-- required, optional or optional-; optional- means it is optional and omitted in the usage-sample --> | |||
|2 =2 | |||
|2label =label | |||
|2d-en =Button label | |||
|2aliases = | |||
|2type =line | |||
|2def =Target page | |||
|2stat =optional | |||
|3 =url | |||
|3label = | |||
|3d-en = | |||
|3d-td = | |||
|3aliases = | |||
|3type =url | |||
|3def = | |||
|3stat =optional | |||
|4 =class | |||
|4label = | |||
|4d-en = | |||
|4d-td = | |||
|4aliases = | |||
|4type = | |||
|4def = | |||
|4stat =optional | |||
|5 =style | |||
|5label = | |||
|5d-en = | |||
|5d-td = | |||
|5aliases = | |||
|5type = | |||
|5def = | |||
|5stat =optional | |||
|name =Clickable button 3 | |||
|desc-en =This template generates a clickable button that is styled using the mediawiki.ui.button module. | |||
|desc-fr =Ce modèle permet de génerer un bouton cliquable qui utilise le style de mediawiki.ui.button module. | |||
|namespace =any | |||
|usergroup =all | |||
|placement = | |||
|example-value = | |||
|mustbesubst = | |||
|relieson = | |||
|usage-notes = | |||
|shorthand = | |||
|setscats = | |||
|seealso = | |||
|type = | |||
|i18n-desc = | |||
|i18n-subpage = | |||
|i18n-mediawiki-msg = | |||
|i18n-method =- | |||
|example = | |||
|print = | |||
|useTemplateData =1 | |||
}} | |||
== Examples == | |||
This template generates a clickable button that is styled using the mediawiki.ui.button module. It can be used in the following ways, | This template generates a clickable button that is styled using the mediawiki.ui.button module. It can be used in the following ways, | ||
| Line 15: | Line 84: | ||
*'''Code: '''<code><nowiki>{{Clickable button 3|</nowiki>{{FULLPAGENAME}}<nowiki>|class=mw-ui-progressive}}</nowiki></code> (link to current page becomes unclickable) | *'''Code: '''<code><nowiki>{{Clickable button 3|</nowiki>{{FULLPAGENAME}}<nowiki>|class=mw-ui-progressive}}</nowiki></code> (link to current page becomes unclickable) | ||
**'''Result: '''{{Clickable button 3|{{FULLPAGENAME}}|class=mw-ui-progressive}} | **'''Result: '''{{Clickable button 3|{{FULLPAGENAME}}|class=mw-ui-progressive}} | ||
< | |||
<includeonly>{{Sandbox other|| | |||
<!-- Categories below this line; interwikis at Wikidata --> | |||
<!-- | |||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</includeonly> | |||
}}</includeonly> | |||
Revision as of 22:12, 14 July 2022
This template generates a clickable button that is styled using the mediawiki.ui.button module.
Usage
{{Clickable button 3 |1= |2= |url= |class= |style= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | target | Link target page. Becomes the title when used with url | empty | required |
2 | label | Button label | Target page | optional |
url | empty | optional | ||
class | empty | optional | ||
style | empty | optional | ||
|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information This template generates a clickable button that is styled using the mediawiki.ui.button module.
| ||||||||||||||||||||||||||||||
Additional information
The template is intended to be used in the following namespaces: unknown
The template is intended to be used by the following user groups: all users
Localization
This template is not intended to be localized.
Examples
This template generates a clickable button that is styled using the mediawiki.ui.button module. It can be used in the following ways,
- Code:
{{Clickable button 3|Main Page}} - Code:
{{Clickable button 3|Main Page|Cover page}} - Code:
{{Clickable button 3|Main Page|url=http://en.wikipedia.org}} - Code:
{{Clickable button 3|Main Page|class=mw-ui-constructive}} - Code:
{{Clickable button 3|Main Page|class=mw-ui-destructive}} - Code:
{{Clickable button 3|Main Page|class=mw-ui-progressive}} - Code:
{{Clickable button 3|Template:Clickable button 3/doc|class=mw-ui-progressive}}(link to current page becomes unclickable)