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