(add template data) |
m (1 revision imported) |
||
(2 intermediate revisions by 2 users 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> | <noinclude> | ||
<templatedata> | <templatedata> | ||
Line 8: | Line 14: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": " | "label": "Page name", | ||
"type": " | "description": "The name of the page that will be linked", | ||
"type": "wiki-page-name", | |||
"required": true, | |||
"suggested": true | "suggested": true | ||
}, | }, | ||
" | "2": { | ||
"label": " | "label": "Link text (optional)", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
} | } | ||
}, | }, | ||
"description": " | "description": "Template for adding button" | ||
} | } | ||
</templatedata> | </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 |