Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
add imagecaption parameter |
No edit summary |
||
| Line 36: | Line 36: | ||
</pre> | </pre> | ||
<br><br> | <br><br> | ||
</noinclude><includeonly><table class="infobox" style="border-spacing: 3px;"><caption class="infobox-title">{{{title|{{PAGENAME}}}}}</caption>{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align: center;">[[File:{{{image}}}|260px|class=infobox-image]]{{#if: {{{imagecaption|}}}|<br><span class="infobox-image-caption" style="font-style: italic;">{{{imagecaption}}}</span></td></tr>}}<!-- | </noinclude><includeonly><table class="infobox" style="border-spacing: 3px;"><caption class="infobox-title">{{{title|{{PAGENAME}}}}}</caption>{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align: center;">[[File:{{{image}}}|260px|class=infobox-image]]{{#if: {{{imagecaption|}}}|<br><span class="infobox-image-caption" style="font-style: italic;">{{{imagecaption}}}</span>}}</td></tr>}}<!-- | ||
Row template: | Row template: | ||
Latest revision as of 09:20, 15 January 2023
Usage example
DisNCord Logo | |
| Section Header | |
|---|---|
| Title 1 | Value 1 |
| Infoboxes | Are cool! |
| Section 2 Header | |
| Foo | Bar |
Headers are defined by setting the header{n} parameter. Rows are defined by setting the title{n} and value{n}.
The {n} value decides the order of the header/row. You cannot use the same {n} for a header and a row. You must use the same {n} for a title and value for one row.
{{Infobox
| title = Example Infobox
| image = Disncord logo 2x.png
| imagecaption = DisNCord Logo
| header1 = Section Header
| title2 = Title 1
| value2 = Value 1
| title3 = Infoboxes
| value3 = Are cool!
| header4 = Section 2 Header
| title5 = Foo
| value5 = Bar
|}}