Changes for page InfoboxStyles

Last modified by Mads Pedersen on 2026/07/28 06:53

From version 8.13
edited by Mads Pedersen
on 2026/01/20 15:00
Change comment: There is no comment for this version
To version 8.14
edited by Mads Pedersen
on 2026/01/20 16:19
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,6 +1,6 @@
1 1  {{velocity}}
2 2  {{html clean="false"}}
3 -<div style="float:right; width:280px; margin:0 0 1em 1em; border:1px solid #aaa; background:#f8f9fa; font-size:0.9em; font-family: sans-serif; line-height: 1.5; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
3 +<div style="float:right; width:$xcontext.macro.params.width; margin:0 0 1em 1em; border:1px solid #aaa; background:#f8f9fa; font-size:0.9em; font-family: sans-serif; line-height: 1.5; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
4 4   <table style="width:100%; border-collapse:collapse;">
5 5   ## Header
6 6   #if($xcontext.macro.params.title && "$!xcontext.macro.params.title" != "")
XWiki.WikiMacroParameterClass[3]
Parameter default value
... ... @@ -1,0 +1,1 @@
1 +18rem
Parameter description
... ... @@ -1,0 +1,1 @@
1 +The width of the box
Parameter name
... ... @@ -1,0 +1,1 @@
1 +width