Template:Infobox: Difference between revisions
-u ndefined- (talk | contribs) mNo edit summary |
-u ndefined- (talk | contribs) m (Resize default image size) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{#if:{{{title|}}}|<div class="infobox-title">{{{title}}}</div>}} | {{#if:{{{title|}}}|<div class="infobox-title">{{{title}}}</div>}} | ||
<div class="infobox-content">{{ | <div class="infobox-content">{{ | ||
#if:{{{image|{{{image_url|}}}}}}|<div class="infobox-image">{{{image_url|[[File:{{{image}}}| | #if:{{{image|{{{image_url|}}}}}}|<div class="infobox-image">{{{image_url|[[File:{{{image}}}|256px|alt={{{image_alt|{{{image}}}}}}]]}}}</div>}}{{ | ||
#if:{{{caption|}}}|<div class="infobox-caption">{{{caption}}}</div>}}<table class="infobox-table">{{ | #if:{{{caption|}}}|<div class="infobox-caption">{{{caption}}}</div>}}<table class="infobox-table">{{ | ||
#if:{{{header1|}}}|<tr class="infobox-header"><th colspan="2">{{{header1}}}</th></tr>}}{{ | #if:{{{header1|}}}|<tr class="infobox-header"><th colspan="2">{{{header1}}}</th></tr>}}{{ | ||
| Line 23: | Line 23: | ||
#if:{{{data9|}}}|<tr class="infobox-row">{{#if:{{{label9|}}}|<td class="infobox-label">{{{label9}}}</td>}}<td class="infobox-data" {{#if:{{{label9|}}}||colspan="2"}}>{{{data9}}}</td></tr>}}</table> | #if:{{{data9|}}}|<tr class="infobox-row">{{#if:{{{label9|}}}|<td class="infobox-label">{{{label9}}}</td>}}<td class="infobox-data" {{#if:{{{label9|}}}||colspan="2"}}>{{{data9}}}</td></tr>}}</table> | ||
</div> | </div> | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude>{{Documentation}}</noinclude> | ||
{{ | |||
}} | |||
</noinclude> | |||
Latest revision as of 06:26, 8 January 2026
Template documentation
|
|---|
| Note: portions of the template sample may not be visible without values provided. |
| View or edit this documentation. (About template documentation) |
| Editors can experiment in this template's sandbox and test case pages. |
Description
Generic template for creating infoboxes. Please use other infoboxes when possible.
Example
{{Infobox
|title=Odd Bot
|image=Odd Bot.png
|caption=caption
|header1=header1
|label1=label1
|data1=data1
|data2=data2
}}
Parameters
Keywords, where # is an integer from 1 to 9:
- title: Title for the infobox.
- image_url: Image to be displayed as full syntax.
- image: Name of the image. A simpler version of image_url parameter.
- image_alt: Alternative text to provide the image.
- caption: Caption for the image.
- header#.
- label#: May be omitted.
- data#.