Jump to content

Template:Infobox: Difference between revisions

From ADI Digital Archives
mNo edit summary
m Replaced content with "{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|{{remove first word|{{SUBPAGENAME}}}}}}}}|}}</includeonly><noinclude> {{documentation}} <!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> </noinclude>"
Line 1: Line 1:
<syntaxhighlight lang="wikitext" style="overflow: auto;">
{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude>
{{Infobox
{{documentation}}
| name          = {{subst:PAGENAME}}
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
| child          = {{{child|}}}
</noinclude>
| subbox        = {{{subbox|}}}
| italic title  = {{{italic title|no}}}
| templatestyles =
| child templatestyles =
| grandchild templatestyles =
| bodystyle      =
 
| titlestyle    =
| abovestyle    =
| subheaderstyle =
| title          =
| above          =
| subheader      =
 
|  imagestyle  =
| captionstyle  =
|  image        =
| caption        =
|  image2      =
| caption2      =
 
| headerstyle    =
|  labelstyle    =
|  datastyle    =
| header1  =
|  label1  =
|  data1  =
| header2  =
|  label2  =
|  data2  =
| header3  =
|  label3  =
|  data3  =
| header4  =
|  label4  =
|  data4  =
| header5  =
|  label5  =
|  data5  =
| header6  =
|  label6  =
|  data6  =
| header7  =
|  label7  =
|  data7  =
| header8  =
|  label8  =
|  data8  =
| header9  =
|  label9  =
|  data9  =
| header10 =
|  label10 =
|  data10 =
| header11 =
|  label11 =
|  data11 =
| header12 =
|  label12 =
|  data12 =
| header13 =
|  label13 =
|  data13 =
| header14 =
|  label14 =
|  data14 =
| header15 =
|  label15 =
|  data15 =
| header16 =
|  label16 =
|  data16 =
| header17 =
|  label17 =
|  data17 =
| header18 =
|  label18 =
|  data18 =
| header19 =
|  label19 =
|  data19 =
| header20 =
|  label20 =
|  data20 =
 
| belowstyle    =
| below          =
}}
</syntaxhighlight>
{{clear}}
{{Help:Infobox/user style}}
 
== Porting to other MediaWikis ==
The infobox template requires the [[:mw:Extension:Scribunto|Scribunto]] and [[:mw:Extension:TemplateStyles|TemplateStyles]] extensions. [[Wikipedia:WikiProject Transwiki|WikiProject Transwiki]] has a version of this template that has been modified to work on other MediaWikis.
 
== TemplateData ==
{{TemplateData header}}
<templatedata>
{
"description": "This template is intended as a meta template, a template used for constructing other templates. In general, it is not meant for use directly in an article but can be used on a one-off basis if required.",
"format": "{{_\n| ________________ = _\n}}\n",
"params": {
"name": {
"label": "name",
"description": ""
        },
"child": {
"label": "child",
"description": ""
        },
"subbox": {
"label": "subbox",
"description": ""
        },
"italic title": {
"label": "italic title",
"description": ""
        },
  "templatestyles": {
"label": "templatestyles",
"description": ""
        },
"child templatestyles": {
"label": "child templatestyles",
"description": ""
        },
"grandchild templatestyles": {
"label": "grandchild templatestyles",
"description": ""
        },
"bodystyle": {
"label": "bodystyle",
"description": ""
        },
"titlestyle": {
"label": "titlestyle",
"description": ""
        },
"abovestyle": {
"label": "abovestyle",
"description": ""
        },
"subheaderstyle": {
"label": "subheaderstyle",
"description": ""
        },
"title": {
"label": "Title",
"description": "Title displayed above the infobox",
"type": "string",
"suggested": true
},
"above": {
"label": "above",
"description": ""
        },
"subheader": {
"label": "subheader",
"description": ""
        },
"imagestyle": {
"label": "imagestyle",
"description": ""
        },
"captionstyle": {
"label": "captionstyle",
"description": ""
        },
"image": {
"label": "Image",
"description": "Image illustrating the topic.  Use full image syntax.",
"type": "content",
"suggested": true,
"example": "[[File:example.png|200px|alt=Example alt text]]"
},
"caption": {
"label": "Caption",
"description": "caption for the image",
"type": "content",
"suggested": true
},
"image2": {
"label": "image2",
"description": ""
        },
"caption2": {
"label": "caption2",
"description": ""
        },
"headerstyle": {
"label": "headerstyle",
"description": ""
        },
"labelstyle": {
"label": "labelstyle",
"description": ""
        },
"datastyle": {
"label": "datastyle",
"description": ""
        },
"header1": {
"label": "header1",
"description": ""
        },
"label1": {
"label": "label1",
"description": ""
        },
"data1": {
"label": "data1",
"description": ""
        },
"header2": {
"label": "header2",
"description": ""
        },
"label2": {
"label": "label2",
"description": ""
        },
"data2": {
"label": "data2",
"description": ""
        },
"header3": {
"label": "header3",
"description": ""
        },
"label3": {
"label": "label3",
"description": ""
        },
"data3": {
"label": "data3",
"description": ""
        },
"header4": {
"label": "header4",
"description": ""
        },
"label4": {
"label": "label4",
"description": ""
        },
"data4": {
"label": "data4",
"description": ""
        },
"header5": {
"label": "header5",
"description": ""
        },
"label5": {
"label": "label5",
"description": ""
        },
"data5": {
"label": "data5",
"description": ""
        },
"header6": {
"label": "header6",
"description": ""
        },
"label6": {
"label": "label6",
"description": ""
        },
"data6": {
"label": "data6",
"description": ""
        },
"header7": {
"label": "header7",
"description": ""
        },
"label7": {
"label": "label7",
"description": ""
        },
"data7": {
"label": "data7",
"description": ""
        },
"header8": {
"label": "header8",
"description": ""
        },
"label8": {
"label": "label8",
"description": ""
        },
"data8": {
"label": "data8",
"description": ""
        },
"header9": {
"label": "header9",
"description": ""
        },
"label9": {
"label": "label9",
"description": ""
        },
"data9": {
"label": "data9",
"description": ""
        },
"header10": {
"label": "header10",
"description": ""
        },
"label10": {
"label": "label10",
"description": ""
        },
"data10": {
"label": "data10",
"description": ""
        },
"header11": {
"label": "header11",
"description": ""
        },
"label11": {
"label": "label11",
"description": ""
        },
"data11": {
"label": "data11",
"description": ""
        },
"header12": {
"label": "header12",
"description": ""
        },
"label12": {
"label": "label12",
"description": ""
        },
"data12": {
"label": "data12",
"description": ""
        },
"header13": {
"label": "header13",
"description": ""
        },
"label13": {
"label": "label13",
"description": ""
        },
"data13": {
"label": "data13",
"description": ""
        },
"header14": {
"label": "header14",
"description": ""
        },
"label14": {
"label": "label14",
"description": ""
        },
"data14": {
"label": "data14",
"description": ""
        },
"header15": {
"label": "header15",
"description": ""
        },
"label15": {
"label": "label15",
"description": ""
        },
"data15": {
"label": "data15",
"description": ""
        },
"header16": {
"label": "header16",
"description": ""
        },
"label16": {
"label": "label16",
"description": ""
        },
"data16": {
"label": "data16",
"description": ""
        },
"header17": {
"label": "header17",
"description": ""
        },
"label17": {
"label": "label17",
"description": ""
        },
"data17": {
"label": "data17",
"description": ""
        },
"header18": {
"label": "header18",
"description": ""
        },
"label18": {
"label": "label18",
"description": ""
        },
"data18": {
"label": "data18",
"description": ""
        },
"header19": {
"label": "header19",
"description": ""
        },
"label19": {
"label": "label19",
"description": ""
        },
"data19": {
"label": "data19",
"description": ""
        },
"header20": {
"label": "header20",
"description": ""
        },
"label20": {
"label": "label20",
"description": ""
        },
"data20": {
"label": "data20",
"description": ""
        },
"belowstyle": {
"label": "belowstyle",
"description": ""
        },
"below": {
"label": "below",
"description": ""
        }
},
"paramOrder": [
"name",
"child",
"subbox",
"italic title",
"templatestyles",
"child templatestyles",
"grandchild templatestyles",
"bodystyle",
"titlestyle",
"abovestyle",
"subheaderstyle",
"title",
"above",
"subheader",
"imagestyle",
"captionstyle",
"image",
"caption",
"image2",
"caption2",
"headerstyle",
"labelstyle",
"datastyle",
"header1",
"label1",
"data1",
"header2",
"label2",
"data2",
"header3",
"label3",
"data3",
"header4",
"label4",
"data4",
"header5",
"label5",
"data5",
"header6",
"label6",
"data6",
"header7",
"label7",
"data7",
"header8",
"label8",
"data8",
"header9",
"label9",
"data9",
"header10",
"label10",
"data10",
"header11",
"label11",
"data11",
"header12",
"label12",
"data12",
"header13",
"label13",
"data13",
"header14",
"label14",
"data14",
"header15",
"label15",
"data15",
"header16",
"label16",
"data16",
"header17",
"label17",
"data17",
"header18",
"label18",
"data18",
"header19",
"label19",
"data19",
"header20",
"label20",
"data20",
"belowstyle",
"below"
]
}
</templatedata>
 
==Tracking categories==
* {{Category link with count|Articles with missing Wikidata information}}
* {{Category link with count|Articles using infobox templates with no data rows}}
* {{Category link with count|Pages using embedded infobox templates with the title parameter}}
 
==See also==
* [[Module:Infobox]], the [[WP:LUA|Lua]] module on which this template is based
* [[Module:Check for unknown parameters]]
*[[Wikipedia:Infobox too large]]
* {{tl|Infobox3cols}}
* {{tl|Navbox}} and {{tl|Sidebar}}
* [[Wikipedia:List of infoboxes|List of infoboxes]]
* [[:Module:InfoboxImage]]
 
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Infobox templates| ]]
[[Category:Sidebar metatemplates|Infobox]]
[[Category:Templates generating microformats]]
[[Category:Templates that add a tracking category]]
[[Category:Templates based on the Infobox Lua module]]
 
}}</includeonly>

Revision as of 06:25, 19 January 2026