Changes for page InfoboxStyles
Last modified by Mads Pedersen on 2026/07/28 06:53
From 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
To version 4.1
edited by Mads Pedersen
on 2026/01/20 14:29
on 2026/01/20 14:29
Change comment:
There is no comment for this version
Summary
-
Objects (0 modified, 2 added, 0 removed)
Details
- XWiki.StyleSheetExtension[0]
-
- Caching policy
-
... ... @@ -1,0 +1,1 @@ 1 +long - Code
-
... ... @@ -1,0 +1,20 @@ 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,0 +1,1 @@ 1 +wikipedia_infobox - Use this extension
-
... ... @@ -1,0 +1,1 @@ 1 +onDemand
- XWiki.WikiMacroClass[0]
-
- Cached
-
... ... @@ -1,0 +1,1 @@ 1 +No - Asynchronous rendering
-
... ... @@ -1,0 +1,1 @@ 1 +No - Macro code
-
... ... @@ -1,0 +1,21 @@ 1 +{{html clean="false"}} 2 +<div class="xwiki-infobox"> 3 + <table> 4 + <caption>$escapetool.xml($!parameters.title)</caption> 5 + #if("$!parameters.image" != "") 6 + <tr> 7 + <td colspan="2" class="xwiki-infobox-image"> 8 + <img src="$escapetool.xml($!parameters.image)" alt="" /> 9 + #if("$!parameters.imageCaption" != "") 10 + <div class="xwiki-infobox-image-caption">$escapetool.xml($!parameters.imageCaption)</div> 11 + #end 12 + </td> 13 + </tr> 14 + #end 15 + 16 + <!-- Rows are provided by the user in the macro body --> 17 + $!content 18 + </table> 19 +</div> 20 +{{/html}} 21 + - Macro content type
-
... ... @@ -1,0 +1,1 @@ 1 +Wiki - Macro description
-
... ... @@ -1,0 +1,1 @@ 1 +Wikipedia like infobox - Execution is isolated
-
... ... @@ -1,0 +1,1 @@ 1 +No - Macro name
-
... ... @@ -1,0 +1,1 @@ 1 +wikibox - Supports inline mode
-
... ... @@ -1,0 +1,1 @@ 1 +No - Macro visibility
-
... ... @@ -1,0 +1,1 @@ 1 +Global