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-{{{class|primary}}}">{{#if:{{#explode:{{{link|{{FULLPAGENAME}}}}}|@|1}}
+
<includeonly><div class="cta cta-{{{class|primary}}} plainlinks">{{#if:{{#explode:{{{link|{{FULLPAGENAME}}}}}|@|1}}
 
   |[mailto:{{{link|{{FULLPAGENAME}}}}} {{{text|{{{link|Read more ...}}}}}}]
 
   |[mailto:{{{link|{{FULLPAGENAME}}}}} {{{text|{{{link|Read more ...}}}}}}]
 
   |[[{{{link|{{FULLPAGENAME}}}}}|{{{text|{{{link|Read more ...}}}}}}]]
 
   |[[{{{link|{{FULLPAGENAME}}}}}|{{{text|{{{link|Read more ...}}}}}}]]

Latest revision as of 16:41, 1 March 2022

Description

Creates a button linked to a page.

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=:Category:Dairy Cattle and Milk Production‏‎ 
|text=Dairy Cattle and Milk Production‏‎ 
}}
Result