-The Dream Cancel Wiki has successfully upgraded it's wiki software and editing has returned. Tables for data have returned.
Template:FP Button/Documentation: Difference between revisions
Created page with " Main menu MediaWiki Search MediaWiki Search English Create account Log in Personal tools Editing Template:Clickable button 2/doc Template Discussion Read Edit source View history Tools Information about template data Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits. Advanced Special characters Help {{Languages|Te..." |
No edit summary |
||
Line 10: | Line 10: | ||
Personal tools | Personal tools | ||
Editing Template:Clickable button | Editing Template:Clickable button/doc | ||
Template | Template | ||
Discussion | Discussion | ||
Line 23: | Line 23: | ||
Special characters | Special characters | ||
Help | Help | ||
{{ | {{documentation subpage}} | ||
== Example == | |||
{{Clickable button|color=white}} → <nowiki>{{Clickable button|color=white}}</nowiki> | |||
{{Clickable button|color=red}} → <nowiki>{{Clickable button|color=red}}</nowiki> | |||
{{Clickable button|color=blue}} → <nowiki>{{Clickable button|color=blue}}</nowiki> | |||
[[target|{{Clickable button|text}}]] → <nowiki>[[target|{{Clickable button|text}}]]</nowiki> (for links. To add links, transclude this template inside wikilinks after the pipebar: <nowiki>[[target title|{{Clickable button|text}}]]</nowiki>. Or better use {{tl|clickable button 2}} which adds links automatically) | |||
== Templatedata == | |||
<templatedata> | |||
< | { | ||
"params": { | |||
} | "color": { | ||
"label": "Color of the button", | |||
"description": "Can be blue (progressive), red (destructive) or white", | |||
"suggested": true, | |||
"type": "string" | |||
}, | |||
"text": { | |||
"aliases": [ | |||
"1" | |||
], | |||
"label": "Label", | |||
"type": "content", | |||
"required": true | |||
} | |||
}, | |||
"description": "Creates a OOUI styled button.", | |||
"paramOrder": [ | |||
"text", | |||
"color" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
== See also == | |||
* {{tl|Clickable button 2}} for {{Clickable button 2|Template:Clickable button 2}} | |||
Summary (?): | Summary (?): | ||
Line 58: | Line 72: | ||
· · · · · · · · · · · · · · · | · · · · · · · · · · · · · · · | ||
Templates used on this page: | Templates used on this page: | ||
Privacy policyAbout mediawiki.orgDisclaimersCode of ConductDevelopersStatisticsCookie statementMobile viewWikimedia FoundationPowered by MediaWiki | Privacy policyAbout mediawiki.orgDisclaimersCode of ConductDevelopersStatisticsCookie statementMobile viewWikimedia FoundationPowered by MediaWiki | ||
Toggle limited content width | Toggle limited content width |
Revision as of 17:46, 17 October 2023
Main menu
MediaWiki Search MediaWiki Search English Create account Log in
Personal tools Editing Template:Clickable button/doc Template Discussion Read Edit source View history
Tools Information about template data Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits. Advanced Special characters Help Template:Documentation subpage
Example
Template:Clickable button → {{Clickable button|color=white}}
Template:Clickable button → {{Clickable button|color=red}}
Template:Clickable button → {{Clickable button|color=blue}}
[[target|Template:Clickable button]] → [[target|{{Clickable button|text}}]] (for links. To add links, transclude this template inside wikilinks after the pipebar: [[target title|{{Clickable button|text}}]]. Or better use Template:Tl which adds links automatically)
Templatedata
Creates a OOUI styled button.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Label | text 1 | no description | Content | required |
Color of the button | color | Can be blue (progressive), red (destructive) or white | String | suggested |
See also
Summary (?): By saving changes, you agree to the Terms of Use, and you irrevocably agree to release your contribution under the CC BY-SA 4.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Preview page with this template
Page title
Standard
· · · · · · · · · · · · · · · · · · · · · ·
Templates used on this page:
Privacy policyAbout mediawiki.orgDisclaimersCode of ConductDevelopersStatisticsCookie statementMobile viewWikimedia FoundationPowered by MediaWiki Toggle limited content width