Template:Button: Difference between revisions

1,115 bytes added ,  3 years ago
no edit summary
(Created page with "{{#if:{{{4|{{{external|}}}}}} | <span class="plainlinks">[{{{2|{{{page|}}}}}} <span class="mw-ui-button {{#switch:{{{color|white}}}|green=mw-ui-constructive|red=mw-ui-destruc...")
 
No edit summary
Line 34: Line 34:
| Red (destructive): actions that delete or limit something, such as deleting a page or blocking a user.
| Red (destructive): actions that delete or limit something, such as deleting a page or blocking a user.
|}
|}
<templatedata>
{
"params": {
"1": {},
"2": {},
"3": {},
"4": {},
"external": {
"label": "Is the link an external page?",
"description": "Use this parameter if the link you specified in \"Page\" leads to an external page.",
"type": "boolean"
},
"page": {
"label": "Page",
"description": "Page to link; can be both an internal link (article title) or an external link (full URL).",
"required": true
},
"color": {
"label": "Color of the button",
"description": "Can be white (default), blue, or red."
},
"class": {
"label": "Class",
"description": "Additional class. Can be mw-ui-quiet, mw-ui-big, or mw-ui-block"
},
"logo": {
"label": "Logo",
"description": "Logo to be displayed in the button, use a file name.",
"type": "wiki-file-name"
},
"text": {
"label": "Text",
"description": "Text of the button",
"required": true
}
},
"description": "Adds a button that links to a page.",
"paramOrder": [
"text",
"page",
"external",
"color",
"logo",
"class",
"4",
"2",
"3",
"1"
],
"format": "inline"
}
</templatedata>


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>