Difference between revisions of "Widget:Button link"
From SystersWiki
(Created page with "<noinclude> <pre> {{#widget: Button link |class= |id= |href= |title= |buttontext= |target= |style= |datatarget= |datatoggle= |datadismiss= }} </pre> </noinclude><includeonly...") |
|||
Line 15: | Line 15: | ||
}} | }} | ||
</pre> | </pre> | ||
+ | |||
+ | Example | ||
+ | {{#widget: Button link | ||
+ | |class=btn btn-default | ||
+ | |href={{fullurl:Main Page}} | ||
+ | |title=This is a link example | ||
+ | |datatoggle=tooltip | ||
+ | |buttontext=click here | ||
+ | |target=_blank | ||
+ | }} | ||
</noinclude><includeonly><a <!--{if (isset($id) && $id!="" )}-->id="<!--{$id|escape:'quotes'}-->"<!--{/if}--> <!--{if (isset($onclick))}-->onclick="<!--{$onclick|escape:'html'}-->"<!--{/if}--> <!--{if (isset($style) && $style!="" )}-->style="<!--{$style|escape:'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}-->><button type="button" role="button" <!--{if (isset($class) && $class!="" )}-->class="<!--{$class|escape:'quotes'}-->"<!--{/if}--> ><!--{if (isset($buttontext) && $buttontext!="" )}--><!--{$buttontext|escape:'quotes'}--><!--{/if}--></button></a></includeonly> | </noinclude><includeonly><a <!--{if (isset($id) && $id!="" )}-->id="<!--{$id|escape:'quotes'}-->"<!--{/if}--> <!--{if (isset($onclick))}-->onclick="<!--{$onclick|escape:'html'}-->"<!--{/if}--> <!--{if (isset($style) && $style!="" )}-->style="<!--{$style|escape:'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}-->><button type="button" role="button" <!--{if (isset($class) && $class!="" )}-->class="<!--{$class|escape:'quotes'}-->"<!--{/if}--> ><!--{if (isset($buttontext) && $buttontext!="" )}--><!--{$buttontext|escape:'quotes'}--><!--{/if}--></button></a></includeonly> |