Difference between revisions of "Template:Cta"

From Wayne County, Ohio Online Resource Center
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly><div class="cta cta-{{{3|primary}}}">[[{{{1|{{FULLPAGENAME}}}}}|{{{2|Read more ...}}}]]</div></includeonly><noinclude>
+
<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
|color= # Custom <code>cta-</code> CSS class name to style the button. Default: "primary"
+
|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