-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
Jump to navigation
Jump to search
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 |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | |||
{{FP button|color=white}} → <nowiki>{{FP button|color=white}}</nowiki> | |||
{{FP button|color=red}} → <nowiki>{{FP button|color=red}}</nowiki> | |||
{{FP button|color=blue}} → <nowiki>{{FP button|color=blue}}</nowiki> | |||
[[target|{{FP button|text}}]] → <nowiki>[[target|{{FP button|text}}]]</nowiki> (for links. To add links, transclude this template inside wikilinks after the pipebar: <nowiki>[[target title|{{FP button|text}}]]</nowiki>. Or better use {{tl|FP 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> | |||
</noinclude> | |||
}} | |||
Latest revision as of 17:48, 17 October 2023
Template:FP button → {{FP button|color=white}}
Template:FP button → {{FP button|color=red}}
Template:FP button → {{FP button|color=blue}}
[[target|Template:FP button]] → [[target|{{FP button|text}}]] (for links. To add links, transclude this template inside wikilinks after the pipebar: [[target title|{{FP 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 |