Infobox like wikipedia
Asked by laxika:

Hello guys,

I have a very basic questation but not found anything about it sadly by googling. How can I create an infobox like ini wikipedia?

<https://en.wikipedia.org/wiki/Infobox#Wikipedia>

Is it even possible?

Thanks


Answers:
author: Milo Test
body: What Guilherme is getting at, is that while there is not the Infobox attribute=value built-in code, you can achieve the same look using the panel macro. But making the panel look and position like a wikimedia (Wikipedia) Infobox, requires a little extra work.

1. Add the div macro and set the class: infobox
2. Add the panel macro and put it into the body of the div macro
3. Add content to the body of the panel macro
4. Add the CSS Stylesheet macro and add the float position to the body:

image2015-12-21 12:59:14.png

Final Look (panel):

image2015-12-21 12:57:33.png

You can achieve more control of the look using HTML table/row/cell macros instead of the panel macro.

image2015-12-21 13:3:35.png

Final Look (HTML table):

image2015-12-21 13:2:18.png

\[EDIT\] I realize that I misspelled "dessert," but I'm not going to go back and recreate the examples, so don't flame me. :smile:  
[](https://community.atlassian.com/t5/Confluence-questions/Infobox-like-wikipedia/qaq-p/263447?attachment-id=7239){#link_11878cb89461f6}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44479/1/image2015-12-21%2012%3A57%3A33.png){#display_11878cb89461f6_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Infobox-like-wikipedia/qaq-p/263447?attachment-id=7240){#link_11878cb89461f6_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44479/2/image2015-12-21%2012%3A46%3A24.png){#display_11878cb89461f6_2}  
[](https://community.atlassian.com/t5/Confluence-questions/Infobox-like-wikipedia/qaq-p/263447?attachment-id=7241){#link_11878cb89461f6_1}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44479/3/image2015-12-21%2013%3A3%3A35.png){#display_11878cb89461f6_4}  
[](https://community.atlassian.com/t5/Confluence-questions/Infobox-like-wikipedia/qaq-p/263447?attachment-id=7242){#link_11878cb89461f6_2}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44479/4/image2015-12-21%2013%3A1%3A44.png){#display_11878cb89461f6_6}  
[](https://community.atlassian.com/t5/Confluence-questions/Infobox-like-wikipedia/qaq-p/263447?attachment-id=7243){#link_11878cb89461f6_3}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44479/5/image2015-12-21%2013%3A2%3A18.png){#display_11878cb89461f6_8}  
[](https://community.atlassian.com/t5/Confluence-questions/Infobox-like-wikipedia/qaq-p/263447?attachment-id=7244){#link_11878cb89461f6_4}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44479/6/image2015-12-21%2012%3A59%3A14.png){#display_11878cb89461f6_10}  
[](https://community.atlassian.com/t5/Confluence-questions/Infobox-like-wikipedia/qaq-p/263447?attachment-id=7245){#link_11878cb89461f6_5}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44479/7/image2015-12-21%2012%3A51%3A23.png){#display_11878cb89461f6_12}  
[](https://community.atlassian.com/t5/Confluence-questions/Infobox-like-wikipedia/qaq-p/263447?attachment-id=7246){#link_11878cb89461f6_6}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44479/8/image2015-12-21%2012%3A49%3A35.png){#display_11878cb89461f6_14}  
[](https://community.atlassian.com/t5/Confluence-questions/Infobox-like-wikipedia/qaq-p/263447?attachment-id=7247){#link_11878cb89461f6_7}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44479/9/image2015-12-21%2012%3A56%3A6.png){#display_11878cb89461f6_16}

comments: author: laxika
body: It looks like an infobox but the infobox's functionality is not there. :S If I add a panel to 100 pages and later plan to change something on it (eg background) I should go throught all the 100 pages and change it one by one what's not acceptable. :( With infobox you create a partial template with attribute markups and you only set the attributes on the page you wnt to show the infobox and it just appears with the filled in data.


author: Nic Brough -Adaptavist-
body: You could put Milo's design into a user macro. You'd be able to feed that a plain text body, and do all the formatting in the macro. Then if you need to change the way it works, just edit the macro.


author: tuexss
body: So, I guess this solution is outdated? I can't even find a div macro.


author: Guilherme V.
body: Hey there,

You can type "{" or Open the Macro Browser and search for the Panel macro. It's very similar.

Cheers,


author: Derrick Oltmann
body: I came across this today looking for the same, and ended up writing a user macro to handle this. It's not perfect, but it works well enough.

I just gave it a name and title of "Infobox" (for obvious reasons). Macro Body Processing set to "Rendered."

```
## Macro title: infobox## Macro Body Processing: rendered## Developed by: Derrick Oltmann## Date created: 28/06/2016## @param Title:title=Name|type=string|required=true|desc=Infobox Title## @param Justify:title=Page Justify|type=enum|enumValues=right,left|default=right|desc=Page justification for the infobox## @param Width:title=Width|type=string|default=22em|desc=Infobox Width## @param TitleColor:title=Title Color|type=enum|enumValues=lightblue,red,green,blue|desc=Title background color## @param TitleTextAlign:title=Title Alignment|type=enum|enumValues=center,left,right|default=center|desc=Title text alignment ## @param TitleVerticalAlign:title=Title Vertical Alignment|type=enum|enumValues=middle,top,bottom|default=middle|desc=Title text vertical alignment ## @param TitleFontSize:title=Title Font Size|type=string|default=100%## @param Border:title=Border Type|type=enum|enumValues=solid,dotted,dashed|default=solid|required=false## @param BorderColor:title=Border Color|type=string|default=#f0f0f0## @param BorderWidth:title=Border Width|type=string|default=1px## @param BorderRadius:title=Border Radius|type=string|default=5px## @param CellPadding:title=Cell Padding|type=string|default=.5em&lt;style type="text/css"&gt; .infobox {    display: table;    float:$!paramJustify;    margin: .5em 0 .5em 1em;    width:$!paramWidth;    border-collapse:seperate;    -moz-border-radius: $!paramBorderRadius;    -webkit-border-radius: $!paramBorderRadius;    border-radius: $!paramBorderRadius;  }  .infobox-tbody {     display: table-row-group;     vertical-align: middle;     border-color: inherit;  }  .infobox-row {     display: table-row;  }  .infobox-cell, .infobox-head {     display: table-cell;     border:$!paramBorder $!paramBorderColor $!paramBorderWidth;     padding: $!paramCellPadding;  }   .infobox-cell {     -moz-border-radius-bottomleft: $!paramBorderRadius;     -moz-border-radius-bottomright: $!paramBorderRadius;     -webkit-border-bottom-right-radius: $!paramBorderRadius;     -webkit-border-bottom-left-radius: $!paramBorderRadius;     border-bottom-right-radius: $!paramBorderRadius;     border-bottom-left-radius: $!paramBorderRadius;}   .infobox-head {     background-color:$!paramTitleColor !important;     text-align:$!paramTitleTextAlign;     vertical-align:$!paramTitleVerticalAlign;     font-weight:bold;     font-size: $!paramTitleFontSize;     -moz-border-radius-topleft: $!paramBorderRadius;     -moz-border-radius-topright: $!paramBorderRadius;     -webkit-border-top-right-radius: $!paramBorderRadius;     -webkit-border-top-left-radius: $!paramBorderRadius;     border-top-right-radius: $!paramBorderRadius;     border-top-left-radius: $!paramBorderRadius;}&lt;/style&gt;&lt;div class="infobox"&gt; &lt;div class="infobox-tbody"&gt;   &lt;div class="infobox-row"&gt;      &lt;div class="infobox-head"&gt;$!paramTitle&lt;/div&gt;   &lt;/div&gt;  &lt;div class="infobox-row"&gt;      &lt;div class="infobox-cell"&gt;$body&lt;/div&gt;  &lt;/div&gt; &lt;/div&gt;&lt;/div&gt;
```

Macro Properties:

2016-06-29_0-52-14.png

In Editor:  
2016-06-29_0-53-11.png

Result:

2016-06-29_0-56-09.png  
[](https://community.atlassian.com/t5/Confluence-questions/Infobox-like-wikipedia/qaq-p/263447?attachment-id=4430){#link_11878cd520ef0f}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44482/1/2016-06-29_0-56-09.png){#display_11878cd520ef0f_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Infobox-like-wikipedia/qaq-p/263447?attachment-id=4431){#link_11878cd520ef0f_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44482/2/2016-06-29_0-52-14.png){#display_11878cd520ef0f_2}  
[](https://community.atlassian.com/t5/Confluence-questions/Infobox-like-wikipedia/qaq-p/263447?attachment-id=4432){#link_11878cd520ef0f_1}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44482/3/2016-06-29_0-53-11.png){#display_11878cd520ef0f_4}