Template:Infobox/doc: Difference between revisions

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..."
 
titlebg
 
(3 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": {
      "label": "Title",
"label": "Title",
      "description": "Title displayed in the infobox header.",
"description": "Title displayed in the infobox header.",
      "type": "string"
"type": "string"
    },
},
    "image": {
"image": {
      "label": "Image",
"label": "Image",
      "description": "Filename of an image to display, without the File: prefix.",
"description": "Filename of an image to display, without the File: prefix.",
      "type": "wiki-file-name"
"type": "wiki-file-name"
    },
},
    "caption": {
"caption": {
      "label": "Caption",
"label": "Caption",
      "description": "Caption displayed below the image.",
"description": "Caption displayed below the image.",
      "type": "string"
"type": "string"
    },
},
    "label1": {
"label1": {
      "label": "Label 1",
"label": "Label 1",
      "description": "Label for the first data row.",
"description": "Label for the first data row.",
      "type": "string"
"type": "string"
    },
},
    "data1": {
"data1": {
      "label": "Data 1",
"label": "Data 1",
      "description": "Content for the first data row. Row is hidden if empty.",
"description": "Content for the first data row. Row is hidden if empty.",
      "type": "string"
"type": "string"
    }
},
  },
"titlebg": {
  "paramOrder": ["title", "image", "caption", "label1", "data1"]
"label": "Title background color",
"default": "var(--vw-accent-subtle)"
}
},
"paramOrder": [
"title",
"image",
"caption",
"label1",
"data1",
"titlebg"
]
}
}
</templatedata>
</templatedata>
Line 53: Line 62:


== 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]]