Jump to content

Template:Infobox/doc: Difference between revisions

From VassarWiki
Created page with "A base infobox template powered by Module:Infobox. Used to build specific infobox templates — not meant to be used directly on pages. <templatedata> { "description": "Base infobox template. Use this to build specific infobox templates, not directly on article pages.", "params": { "title": { "label": "Title", "description": "Title displayed in the infobox header.", "type": "string" }, "image": { "label": "Image", "descr..."
 
m typo
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
A base infobox template powered by [[Module:Infobox]]. Used to build specific infobox templates — not meant to be used directly on pages.
<templatedata>
<templatedata>
{
{
   "description": "Base infobox template. Use this to build specific infobox templates, not directly on article pages.",
   "description": "Meta-template for building specific infobox templates. It should not be used directly on article pages.",
   "params": {
   "params": {
     "title": {
     "title": {
Line 53: Line 51:


== See also ==
== See also ==
* [[Module:Infobox]] the Lua module that renders this template
* [[Module:Infobox]]: the Lua module that renders this template
 
* [[Template:Infobox group]]
[[Category:Infobox templates]]

Latest revision as of 23:09, 13 April 2026

Meta-template for building specific infobox templates. It should not be used directly on article pages.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Title displayed in the infobox header.

Stringoptional
Imageimage

Filename of an image to display, without the File: prefix.

Fileoptional
Captioncaption

Caption displayed below the image.

Stringoptional
Label 1label1

Label for the first data row.

Stringoptional
Data 1data1

Content for the first data row. Row is hidden if empty.

Stringoptional

Additional label/data pairs follow the same pattern: label2/data2, label3/data3, and so on. There is no hard limit.

Example

Call this template from another template, passing labeled rows as parameters:

{{Infobox
| title   = {{{name|}}}
| image   = {{{image|}}}
| caption = {{{caption|}}}
| label1  = Founded
| data1   = {{{founded|}}}
| label2  = Type
| data2   = {{{type|}}}
}}

See also