Difference between revisions of "Template:Button"

From partnersenproppersolutions
Line 24: Line 24:
 
|Text=Home
 
|Text=Home
 
|Link=Main Page
 
|Link=Main Page
|Class=btn-xs ws-btn-darkblue
+
|Class=btn btn-primary btn-xs
 
}}
 
}}
 
{{Button
 
{{Button
 
|Text=Home
 
|Text=Home
 
|Link=Main Page
 
|Link=Main Page
|Class=ws-btn-darkgreen
+
|Class=btn btn-primary btn-xs
 
|Style=
 
|Style=
 
|Target=_blank
 
|Target=_blank
Line 38: Line 38:
  
 
</noinclude><includeonly>{{
 
</noinclude><includeonly>{{
   #if:{{{Href|}}}|{{#tag:html|{{#tag:a|{{#tag:button|{{{Text|}}}|type="button"|class="btn  btn-primary {{{Class|}}}"|style="margin-right:6px; {{{Style|}}}"}}|href="{{{Href|}}}"|target="{{{Target|}}}"}}}}}}{{
+
   #if:{{{Href|}}}|{{#tag:html|{{#tag:a|{{#tag:button|{{{Text|}}}|type="button"|class="{{{Class|btn btn-primary}}}"|style="margin-right:6px; {{{Style|}}}"}}|href="{{{Href|}}}"|target="{{{Target|}}}"}}}}}}{{
   #if:{{{Link|}}}|{{#tag:html|{{#tag:a|{{#tag:button|{{{Text|}}}|type="button"|class="btn  btn-primary {{{Class|}}}"|style="margin-right:6px; {{{Style|}}}"}}|href="{{localurl:{{{Link|}}}}}"|target="{{{Target|}}}"}}}}}}</includeonly>
+
   #if:{{{Link|}}}|{{#tag:html|{{#tag:a|{{#tag:button|{{{Text|}}}|type="button"|class="{{{Class|btn btn-primary}}}"|style="margin-right:6px; {{{Style|}}}"}}|href="{{localurl:{{{Link|}}}}}"|target="{{{Target|}}}"}}}}}}</includeonly>

Revision as of 09:44, 31 January 2017

{{Button
|Text=Home
|Link=Main Page
|Class=btn-xs ws-btn-darkgreen
|Target=
}}

or if href is directly needed,

{{Button
|Text=Home
|Href=... 
|Target=_blank
|Class=btn-xs ws-btn-darkgreen
}}

examples

Home Home

Mail ons Bel ons