Changes for page InfoboxStyles
Last modified by Mads Pedersen on 2026/07/28 06:53
From version 7.1
edited by Mads Pedersen
on 2026/01/20 14:36
on 2026/01/20 14:36
Change comment:
There is no comment for this version
To version 3.1
edited by Mads Pedersen
on 2026/01/20 14:21
on 2026/01/20 14:21
Change comment:
There is no comment for this version
Summary
-
Objects (0 modified, 0 added, 5 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Cached
-
... ... @@ -1,1 +1,0 @@ 1 -No - Asynchronous rendering
-
... ... @@ -1,1 +1,0 @@ 1 -No - Macro code
-
... ... @@ -1,35 +1,0 @@ 1 -{{html clean="false"}} 2 -<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;"> 3 - <table style="width:100%; border-collapse:collapse;"> 4 - #if($xcontext.macro.params.title) 5 - <caption style="background:#e5e5e5; font-weight:bold; padding:8px; border:1px solid #aaa; border-bottom:none; color: #333;"> 6 - $xcontext.macro.params.title 7 - </caption> 8 - #end 9 - #if($xcontext.macro.params.image) 10 - <tr> 11 - <td colspan="2" style="text-align:center; padding:4px;"> 12 - <img src="$xcontext.macro.params.image" style="max-width:100%; height:auto; display:block; margin: 0 auto;"> 13 - #if($xcontext.macro.params.caption) 14 - <div style="font-size:0.85em; color:#555; padding: 4px 0;">$xcontext.macro.params.caption</div> 15 - #end 16 - </td> 17 - </tr> 18 - #end 19 - 20 - #set($content = $xcontext.macro.params.data) 21 - #if($content) 22 - ## Split content by newlines and handle each line 23 - #foreach($line in $content.split("\r?\n")) 24 - #if($line.contains("=")) 25 - #set($parts = $line.split("=", 2)) 26 - <tr> 27 - <th style="border-top:1px solid #aaa; padding:6px; text-align:left; background:#f2f2f2; width:35%; vertical-align: top;">$parts[0].trim()</th> 28 - <td style="border-top:1px solid #aaa; padding:6px; vertical-align: top;">$parts[1].trim()</td> 29 - </tr> 30 - #end 31 - #end 32 - #end 33 - </table> 34 -</div> 35 -{{/html}} - Macro content type
-
... ... @@ -1,1 +1,0 @@ 1 -Wiki - Macro description
-
... ... @@ -1,1 +1,0 @@ 1 -Wikipedia like infobox - Execution is isolated
-
... ... @@ -1,1 +1,0 @@ 1 -No - Macro name
-
... ... @@ -1,1 +1,0 @@ 1 -wikibox - Supports inline mode
-
... ... @@ -1,1 +1,0 @@ 1 -No - Macro visibility
-
... ... @@ -1,1 +1,0 @@ 1 -Global
- XWiki.WikiMacroParameterClass[0]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -The header text of the box. - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -title
- XWiki.WikiMacroParameterClass[1]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -URL or attachment name for the image. - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -image
- XWiki.WikiMacroParameterClass[2]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Text under the image. - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -caption
- XWiki.WikiMacroParameterClass[3]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -The label=value pairs - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -data