Difference between revisions of "Template:Button"

From partnersenproppersolutions
m (1 revision imported)
Line 38: Line 38:
  
 
</noinclude><includeonly>{{
 
</noinclude><includeonly>{{
   #if:{{{Href|}}}|{{#tag:html|{{#tag:a|{{#tag:button|{{{Text|}}}|type="button"|class="btn  btn-default {{{Class|}}}"|style="margin-right:6px; {{{Style|}}}"}}|href="{{{Href|}}}"|target="{{{Target|}}}"}}}}}}{{
+
   #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:{{{Link|}}}|{{#tag:html|{{#tag:a|{{#tag:button|{{{Text|}}}|type="button"|class="btn  btn-default {{{Class|}}}"|style="margin-right:6px; {{{Style|}}}"}}|href="{{localurl:{{{Link|}}}}}"|target="{{{Target|}}}"}}}}}}</includeonly>
+
   #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>

Revision as of 09:20, 30 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