Aktionen

Vorlage

Vorlage:Clickable button/doc

Aus znilwiki

< Vorlage:Clickable button

Vorlage:Documentation subpage

Example

<templatedata> { "params": { "1": { "label": "Label", "required": true }, "color": { "label": "Color of the button", "description": "Can be blue (progressive), red (destructive) or white", "suggested": true } }, "description": "Creates a OOUI styled button." } </templatedata> → {{Clickable button|color=white}}

<templatedata> { "params": { "1": { "label": "Label", "required": true }, "color": { "label": "Color of the button", "description": "Can be blue (progressive), red (destructive) or white", "suggested": true } }, "description": "Creates a OOUI styled button." } </templatedata> → {{Clickable button|color=red}}

<templatedata> { "params": { "1": { "label": "Label", "required": true }, "color": { "label": "Color of the button", "description": "Can be blue (progressive), red (destructive) or white", "suggested": true } }, "description": "Creates a OOUI styled button." } </templatedata> → {{Clickable button|color=blue}}

<templatedata> { "params": { "1": { "label": "Label", "required": true }, "color": { "label": "Color of the button", "description": "Can be blue (progressive), red (destructive) or white", "suggested": true } }, "description": "Creates a OOUI styled button." } </templatedata> → [[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 Vorlage:Tl which adds links automatically)

Templatedata

<templatedata> { "params": { "1": { "label": "Label", "required": true }, "color": { "label": "Color of the button", "description": "Can be blue (progressive), red (destructive) or white", "suggested": true } }, "description": "Creates a OOUI styled button." } </templatedata>

See also