Difference between revisions of "Template:Cta"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <includeonly><div class="cta cta-{{{ | + | <includeonly><div class="cta cta-{{{class|primary}}}">[[{{{link|{{FULLPAGENAME}}}}}|{{{text|Read more ...}}}]]</div></includeonly><noinclude> |
;Description | ;Description | ||
Creates a button. | Creates a button. | ||
Line 8: | Line 8: | ||
|link= # Name of the page | |link= # Name of the page | ||
|text= # Link text | |text= # Link text | ||
− | | | + | |class= # Custom <code>cta-</code> CSS class name to style the button. Default: "primary" |
}} | }} | ||
</pre> | </pre> |
Revision as of 20:34, 18 February 2022
- Description
Creates a button.
- Usage
{{cta |link= # Name of the page |text= # Link text |class= # Custom <code>cta-</code> CSS class name to style the button. Default: "primary" }}
- Example
{{cta |link=Main Page |text=Home }}
- Result