Difference between revisions of "Template:Button"

From partnersenproppersolutions
 
(3 intermediate revisions by the same user not shown)
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|}}}|{{#widget: Button
   #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>
+
|class={{{Class|btn btn-default}}}
 +
|href={{{Href|}}}
 +
|title={{{Text|}}}
 +
|buttontext={{{Text|}}}
 +
|target={{{Target|}}}
 +
|style=margin-right:6px; {{{Style|}}}
 +
}} }}{{
 +
   #if:{{{Link|}}}|{{#widget: Button
 +
|class={{{Class|btn btn-default}}}
 +
|href={{localurl:{{{Link|}}}}}
 +
|title={{{Text|}}}
 +
|buttontext={{{Text|}}}
 +
|target={{{Target|}}}
 +
|style=margin-right:6px; {{{Style|}}}
 +
}} }}</includeonly>

Latest revision as of 10:38, 27 July 2018

{{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