Changes for page InfoboxStyles
Last modified by Mads Pedersen on 2026/07/28 06:53
From version 8.7
edited by Mads Pedersen
on 2026/01/20 14:52
on 2026/01/20 14:52
Change comment:
There is no comment for this version
To version 1.1
edited by Mads Pedersen
on 2026/01/20 14:09
on 2026/01/20 14:09
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (0 modified, 0 added, 6 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,3 +1,0 @@ 1 -{{wikibox title="Test" data="line1=TTesting"/}} 2 - 3 -
- XWiki.StyleSheetExtension[0]
-
- Caching policy
-
... ... @@ -1,1 +1,0 @@ 1 -long - Code
-
... ... @@ -1,20 +1,0 @@ 1 -.xwiki-infobox { 2 - float: right; 3 - width: 280px; 4 - margin: 0 0 1em 1em; 5 - border: 1px solid #aaa; 6 - background: #f8f9fa; 7 - font-size: 0.9em; 8 -} 9 -.xwiki-infobox table { width: 100%; border-collapse: collapse; } 10 -.xwiki-infobox caption { background: #e5e5e5; font-weight: bold; padding: 6px; } 11 -.xwiki-infobox th, .xwiki-infobox td { 12 - border-top: 1px solid #aaa; 13 - padding: 6px; 14 - text-align: left; 15 - vertical-align: top; 16 -} 17 -.xwiki-infobox .xwiki-infobox-image { text-align: center; padding: 6px; } 18 -.xwiki-infobox .xwiki-infobox-image img { width: 100%; height: auto; } 19 -.xwiki-infobox .xwiki-infobox-image-caption { font-size: 0.85em; color: #555; margin-top: 4px; } 20 - - Name
-
... ... @@ -1,1 +1,0 @@ 1 -wikipedia_infobox - Use this extension
-
... ... @@ -1,1 +1,0 @@ 1 -onDemand
- XWiki.WikiMacroClass[0]
-
- Cached
-
... ... @@ -1,1 +1,0 @@ 1 -No - Asynchronous rendering
-
... ... @@ -1,1 +1,0 @@ 1 -No - Macro code
-
... ... @@ -1,37 +1,0 @@ 1 -{{velocity}} 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.4;"> 4 - <table style="width:100%; border-collapse:collapse;"> 5 - #if($xcontext.macro.params.title && "$!xcontext.macro.params.title" != "") 6 - <caption style="background:#e5e5e5; font-weight:bold; padding:8px; border:1px solid #aaa; border-bottom:none; color: #333;"> 7 - $xcontext.macro.params.title 8 - </caption> 9 - #end 10 - 11 - #if($xcontext.macro.params.image && "$!xcontext.macro.params.image" != "") 12 - <tr> 13 - <td colspan="2" style="text-align:center; padding:4px;"> 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" != "") 16 - <div style="font-size:0.85em; color:#555; padding: 4px 0;">$xcontext.macro.params.caption</div> 17 - #end 18 - </td> 19 - </tr> 20 - #end 21 - 22 - #set($content = $xcontext.macro.params.data) 23 - #if($content && "$!content" != "") 24 - #foreach($line in $content.split("\r?\n")) 25 - #if($line.contains("=") && "$!line.trim()" != "") 26 - #set($parts = $line.split("=", 2)) 27 - <tr> 28 - <th style="border-top:1px solid #aaa; padding:6px; text-align:left; background:#f2f2f2; width:35%; vertical-align: top;">$parts[0].trim()</th> 29 - <td style="border-top:1px solid #aaa; padding:6px; vertical-align: top;">$parts[1].trim()</td> 30 - </tr> 31 - #end 32 - #end 33 - #end 34 - </table> 35 -</div> 36 -{{/html}} 37 -{{/velocity}} - Macro content type
-
... ... @@ -1,1 +1,0 @@ 1 -Velocity - Macro content availability
-
... ... @@ -1,1 +1,0 @@ 1 -No content - Macro description
-
... ... @@ -1,1 +1,0 @@ 1 -Wikipedia like infobox - Execution is isolated
-
... ... @@ -1,1 +1,0 @@ 1 -No - Macro id
-
... ... @@ -1,1 +1,0 @@ 1 -wikibox - Macro name
-
... ... @@ -1,1 +1,0 @@ 1 -wikibox - Supports inline mode
-
... ... @@ -1,1 +1,0 @@ 1 -No - Macro visibility
-
... ... @@ -1,1 +1,0 @@ 1 -Current Wiki
- 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