Difference between revisions of "Widget:Button"

From Venlo Samenwerkingswijzer
 
Line 32: Line 32:
 
[[Template:Linked button]]
 
[[Template:Linked button]]
  
</noinclude><includeonly><a type="button" <!--{if (empty($class))}--><!--{else}-->class="<!--{$class|escape:'quotes'}-->"<!--{/if}--> <!--{if (empty($style))}--><!--{else}-->style="<!--{$style|escape:'quotes'}-->"<!--{/if}--> href="<!--{$href|escape:'html'}-->" title="<!--{$title|escape:'html'}-->" <!--{if (empty($target))}--><!--{else}-->target="<!--{$target|escape:'html'}-->"<!--{/if}--> role="button"><!--{$buttontext|escape:'quotes'}--></a></includeonly>
+
</noinclude><includeonly><a type="button" <!--{if (isset($class) && $class!="" )}-->class="<!--{$class|escape:'single quotes'}-->"<!--{/if}--> <!--{if (isset($id) && $id!="" )}-->id="<!--{$id|escape:'single quotes'}-->"<!--{/if}--> <!--{if (isset($style) && $style!="" )}-->style="<!--{$style|escape:'single quotes'}-->"<!--{/if}--> <!--{if (isset($href) && $href!="" )}-->href="<!--{$href|escape:'html'}-->"<!--{/if}--> <!--{if (isset($title) && $title!="" )}-->title="<!--{$title|escape:'html'}-->"<!--{/if}--> <!--{if (isset($target) && $target!="" )}-->target="<!--{$target|escape:'html'}-->"<!--{/if}--> <!--{if (isset($datatoggle))}-->data-toggle="<!--{$datatoggle|escape:'html'}-->"<!--{/if}--> <!--{if (isset($datadismiss))}-->data-dismiss="<!--{$datadismiss|escape:'html'}-->"<!--{/if}--> <!--{if (isset($datatarget))}-->data-target="<!--{$datatarget|escape:'html'}-->"<!--{/if}--> <!--{if (isset($onclick) && $onclick!="" )}-->onClick="<!--{$onclick}-->"<!--{/if}--> role="button"><!--{if (isset($buttontext) && $buttontext!="" )}--><!--{$buttontext|escape:'single quotes'}--><!--{/if}--></a></includeonly>

Latest revision as of 10:44, 24 July 2018

Borrowed from the Tenso wiki

Syntax

{{#widget: Button
|class=
|href=
|title=
|buttontext=
|target=
|style=
}}

Example

click here

Dashboard Samenwerking
https://venlo.dashboardsamenwerking.nl

Template version

Template:Linked button