Button

Modifié par superadmin le 25/05/2025 - 00:00

Insert a noticeable, clickable button on your XWiki page to highlight links and create call to actions!

Parameters

NameDescriptionDefault
labelThe label of the button.-
urlUn lien ou une référence de page.-
colorThe color of the button.White
widthThe width of the button specified in pixels, percentage or other valid CSS value (ex. 30px, 30%, 30em). If no value is specified, the width will be determined by the length of the label.-
newTabDenotes whether the page will be opened in a new page or not.false
iconIcon associated with the button, placed before the label.-
typeType of the button.Default
idID of the button element.Default
classA custom CSS class to apply on the button.Default

Examples

{{button label="Store" url="http://store.xwiki.com"/}}

{{button label="Store" url="http://store.xwiki.com" color="#889cb8"/}}

{{button label="Store" url="http://store.xwiki.com" color="#889cb8" newTab="true" icon="page"/}}

{{button label="Store" url="http://store.xwiki.com" color="#889cb8" newTab="true" icon="page" width="100%"/}}

{{button label="Delete example" url="http://store.xwiki.com" type="DANGER"/}}