m (move templatedata to /dco) |
m (1 revision imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
< | <noinclude> | ||
Template for using stylezed buttons for interanl links. Sytax: | |||
<pre> | |||
{{Button|Page name|Button link text}} | |||
</pre> | |||
Result: | |||
{{Button|Main page|Link to main page}} | |||
</noinclude><includeonly><span class="cta-button">[[{{{1|}}}|{{{1|{{{2|Click here}}}}}}]]</span></includeonly> | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Page name", | |||
"description": "The name of the page that will be linked", | |||
"type": "wiki-page-name", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"2": { | |||
"label": "Link text (optional)", | |||
"type": "string", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "Template for adding button" | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> |
Latest revision as of 13:01, 4 December 2022
Template for using stylezed buttons for interanl links. Sytax:
{{Button|Page name|Button link text}}
Result:
Template for adding button
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page name | 1 | The name of the page that will be linked | Page name | required |
Link text (optional) | 2 | no description | String | suggested |