Widget:AnchorButton

From Open Energy Information

This widget displays an anchor as a button using Bootstrap 3 button classed and glyphicons. More info.

Parameters include:

  • page - page/article title for href link
  • text - anchor text
  • title - title to display for anchor (optional, default : page title)
  • target - the target for the anchor (optional, default: _self)
  • icon_class - glyphicon icon css selector to use for displaying in button (optional, example : glyphicon-globe)
  • button_class - button css selector to use for displaying in button (optional, default : btn-default)
  • style - any additonal css style to apply to the anchor (optional)

For example:

{{#Widget:AnchorButton | page=Main Page | text=Example}}
{{#Widget:AnchorButton | page=Main Page | icon_class=glyphicon-globe }}
{{#Widget:AnchorButton | page=Help:Contents | target=_blank | text=Example 3 | icon_class=glyphicon-circle-arrow-down | button_class=btn-info}}


Example Example 3