Changes for page InfoboxStyles
Last modified by Mads Pedersen on 2026/07/28 06:53
From version 8.9
edited by Mads Pedersen
on 2026/01/20 14:54
on 2026/01/20 14:54
Change comment:
There is no comment for this version
To version 8.4
edited by Mads Pedersen
on 2026/01/20 14:44
on 2026/01/20 14:44
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (5 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,3 +1,3 @@ 1 -{{wikibox title="Test" data="line1=T Testing"/}}1 +{{wikibox title="Test" caption="Test" data="line1=This is some tekst"}}{{/wikibox}} 2 2 3 3
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,4 +2,3 @@ 1 -{{velocity}} 2 2 {{html clean="false"}} 3 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.4;"> 4 4 <table style="width:100%; border-collapse:collapse;"> ... ... @@ -8,11 +8,12 @@ 8 8 </caption> 9 9 #end 10 10 10 + ## Only show this row if an image URL is provided 11 11 #if($xcontext.macro.params.image && "$!xcontext.macro.params.image" != "") 12 12 <tr> 13 13 <td colspan="2" style="text-align:center; padding:4px;"> 14 14 <img src="$xcontext.macro.params.image" style="max-width:100%; height:auto; display:block; margin: 0 auto;"> 15 - #if($xcontext.macro.params.caption && "$!xcontext.macro.params.caption" != "")15 + #if($xcontext.macro.params.caption) 16 16 <div style="font-size:0.85em; color:#555; padding: 4px 0;">$xcontext.macro.params.caption</div> 17 17 #end 18 18 </td> ... ... @@ -21,6 +21,7 @@ 21 21 22 22 #set($content = $xcontext.macro.params.data) 23 23 #if($content && "$!content" != "") 24 + ## Split content by newlines and handle each line 24 24 #foreach($line in $content.split("\r?\n")) 25 25 #if($line.contains("=") && "$!line.trim()" != "") 26 26 #set($parts = $line.split("=", 2)) ... ... @@ -34,4 +34,3 @@ 34 34 </table> 35 35 </div> 36 36 {{/html}} 37 -{{/velocity}} - Macro content availability
-
... ... @@ -1,1 +1,0 @@ 1 -No content
- XWiki.WikiMacroParameterClass[0]
-
- Parameter order property
-
... ... @@ -1,1 +1,0 @@ 1 -13
- XWiki.WikiMacroParameterClass[1]
-
- Parameter order property
-
... ... @@ -1,1 +1,0 @@ 1 -12
- XWiki.WikiMacroParameterClass[2]
-
- Parameter order property
-
... ... @@ -1,1 +1,0 @@ 1 -11
- XWiki.WikiMacroParameterClass[3]
-
- Parameter description
-
... ... @@ -1,1 +1,1 @@ 1 - Write lines into theinfoboxlike "Label=Exampletext"1 +The label=value pairs - Parameter order property
-
... ... @@ -1,1 +1,0 @@ 1 -10 - Parameter type
-
... ... @@ -1,1 +1,0 @@ 1 -TextArea