Template:Infobox3cols: Difference between revisions
Jump to navigation
Jump to search
m (Protected "Template:Infobox3cols" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
mNo edit summary |
||
Line 3: | Line 3: | ||
-->{{<includeonly>safesubst:</includeonly>#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox3cols with undocumented parameters|_VALUE_{{PAGENAME}}]]|ignoreblank=y|checkpositional=y | -->{{<includeonly>safesubst:</includeonly>#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox3cols with undocumented parameters|_VALUE_{{PAGENAME}}]]|ignoreblank=y|checkpositional=y | ||
| child| subbox| bodyclass| bodystyle| title| titleclass| titlestyle| above| abovestyle| aboveclass| aboverowclass| subheader| subheaderstyle| subheaderclass| subheaderrowclass1| subheader2| subheaderrowclass2| image| imageclass| imagestyle| caption| captionstyle| image1| caption1| imagerowclass1| image2| caption2| imagerowclass2| headerstyle| labelstyle| multidatastyle| datastyle| datastylea| datastyleb| datastylec| regexp1 = header[%d][%d]*| regexp2 = label[%d][%d]*| regexp3 = data[%d][%d]*[abc]?| regexp4 = class[%d][%d]*[abc]?| regexp5 = rowclass[%d][%d]*| regexp6 = rowstyle[%d][%d]*| regexp7 = rowcellstyle[%d][%d]*| below| belowstyle| belowclass| belowrowclass| name | | child| subbox| bodyclass| bodystyle| title| titleclass| titlestyle| above| abovestyle| aboveclass| aboverowclass| subheader| subheaderstyle| subheaderclass| subheaderrowclass1| subheader2| subheaderrowclass2| image| imageclass| imagestyle| caption| captionstyle| image1| caption1| imagerowclass1| image2| caption2| imagerowclass2| headerstyle| labelstyle| multidatastyle| datastyle| datastylea| datastyleb| datastylec| regexp1 = header[%d][%d]*| regexp2 = label[%d][%d]*| regexp3 = data[%d][%d]*[abc]?| regexp4 = class[%d][%d]*[abc]?| regexp5 = rowclass[%d][%d]*| regexp6 = rowstyle[%d][%d]*| regexp7 = rowcellstyle[%d][%d]*| below| belowstyle| belowclass| belowrowclass| name | ||
}} | }}<noinclude> | ||
{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --> | {{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Revision as of 20:49, 4 April 2021
![]() | This template uses Lua: |
This is a fork of {{infobox}} which provides an option for up to three data
attributes per row, in addition to a label: dataxa, dataxb and dataxc.
Usage
{{Infobox3cols | name = | child = | bodyclass = | bodystyle = | title = | titleclass = | titlestyle = | above = | abovestyle = | aboveclass = | aboverowclass = | subheader = | subheaderstyle = | subheaderclass = | subheaderrowclass1 = | subheader2 = | subheaderrowclass2 = | image = | image1 = | caption = | caption1 = | captionstyle = | imagestyle = | imageclass = | imagerowclass1 = | image2 = | caption2 = | imagerowclass2 = | headerstyle = | labelstyle = | datastyle = | datastylea = | datastyleb = | datastylec = | header1 = | label1 = | data1 = | data1a = | data1b = | data1c = | class1 = | rowclass1 = | header2 = | rowclass2 = | label2 = | data2 = | class2 = | data2a = | data2b = | class2a = | class2b = | class2c = | data2c = | ... | below = | belowstyle = | belowclass = | belowrowclass = }}
Parameter Precedence
The bulk of the infobox is generated by blocks of numbered parameters: headerX
, labelX
, dataX
, dataXa
, dataXb
, and dataXc
. The following examples demonstrate the order in which these parameters are used.
Code | Result | ||||
---|---|---|---|---|---|
{{Infobox3cols | header1 = header1 | label1 = label1 | data1 = data1 | data1a = data1a | data1b = data1b | data1c = data1c }} |
|
Code | Result | ||||
---|---|---|---|---|---|
{{Infobox3cols | header1 = | label1 = label1 | data1 = data1 | data1a = data1a | data1b = data1b | data1c = data1c }} |
|
Code | Result | ||||
---|---|---|---|---|---|
{{Infobox3cols | header1 = | label1 = | data1 = data1 | data1a = data1a | data1b = data1b | data1c = data1c }} |
|
Code | Result | ||||
---|---|---|---|---|---|
{{Infobox3cols | header1 = | label1 = label1 | data1 = | data1a = data1a | data1b = data1b | data1c = data1c }} |
|
Code | Result | ||||
---|---|---|---|---|---|
{{Infobox3cols | header1 = | label1 = label1 | data1 = | data1a = | data1b = data1b | data1c = data1c }} |
|
Code | Result | |||
---|---|---|---|---|
{{Infobox3cols | header1 = | label1 = label1 | data1 = | data1a = | data1b = | data1c = data1c }} |
|
Code | Result |
---|---|
{{Infobox3cols | header1 = | label1 = | data1 = | data1a = data1a | data1b = data1b | data1c = data1c }} |
|
TemplateDate
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | Title displayed above the infobox | String | suggested |
Image | image | Image illustrating the topic. Use full image syntax.
| Content | suggested |
Caption | caption | caption for the image | Content | suggested |