Portable infoboxes include a wide variety of tags and options that you can use to make the infobox display how you want. Below we have listed all the standard tags, with sample wikitext and output HTML, to help you identify what you need to use, and how to give it a CSS makeover (see also Help:Infoboxes/CSS). Note that parser functionscan also be used.
All infobox fields should be declared using XML convention, with attributes used for field configuration[1].
Basic tags
infobox
Attributes
theme
theme-source
layout
accent-color-source
accent-color-text-source
accent-color-default
accent-color-text-default
Child tags
title
image
header
navigation
data
group
The tag which holds all others and delimits the scope of the infobox.
Default tag text is used when "source" data is not specified, can be used only inside other tags, check child tags column for more info. Accepts wikitext.
Input
Output
<default>John</default>
<divclass="pi-font pi-data-value">John</div>
format
Attributes
None
Child tags
None
Format tag, can be used only inside other tags, check child tags column for more info. Accepts wikitext.
Image tag, used to insert images or video inside an infobox. It can only be styled using the community's CSS, and cannot be manually resized. Multiple images can be passed by using a gallery tag.
Here, the default tag is used to specify an image to be used when no image has been chosen on an article. For example, <default>Example.jpg</default>.
<imagesource="image"><altsource="alternative_title"><default>Default alt text</default></alt></image>
<figureclass="pi-item pi-image"><ahref=".../File:Image.jpg"class="image image-thumbnail"title="Default alt text"><imgsrc="Image.jpg"class="pi-image-thumbnail"alt="Default alt text"width=""height="" data-image-key="Image.jpg" data-image-name="Image.jpg"></a></figure>
Used for grouping fields, can provide header for each group. A group won't be rendered (including any headers) if all fields are empty. However, if the show attribute is set to incomplete, it will render all of the group's fields if at least one field is not empty.