Template:Infobox3cols/doc: Difference between revisions
From The Goon Show Depository
m (1 revision imported) |
m (1 revision imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
{{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}} | {{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}} | ||
{{Lua | Module:Infobox3cols | Module:Check for unknown parameters }} | {{Lua |Module:Infobox3cols|Module:Navbar|Module:Italic title| Module:Check for unknown parameters }} | ||
{{Uses TemplateStyles|Template:Plainlist/styles.css|Template:Hlist/styles.css}} | |||
This is a fork of {{tl|infobox}} which provides an option for up to three <code>data</code> attributes per row, in addition to a label: data''x''a, data''x''b and data''x''c. | This is a fork of {{tl|infobox}} which provides an option for up to three <code>data</code> attributes per row, in addition to a label: data''x''a, data''x''b and data''x''c. | ||
Line 8: | Line 9: | ||
{{clear}} | {{clear}} | ||
== Usage == | == Usage == | ||
{{text|<pr}}{{text|e>}}{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols||Infobox3cols}} | {{text|<pr}}{{text|e>}}{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols|infoboxTemplate|Infobox3cols}} | ||
| child = | | child = | ||
| bodyclass = | | bodyclass = | ||
Line 82: | Line 83: | ||
! Code !! Result | ! Code !! Result | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
|{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols||Infobox3cols}} | |{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols|infoboxTemplate|Infobox3cols}} | ||
{{!}} header1 = header1 | {{!}} header1 = header1 | ||
{{!}} label1 = label1 | {{!}} label1 = label1 | ||
Line 105: | Line 106: | ||
! Code !! Result | ! Code !! Result | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
|{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols||Infobox3cols}} | |{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols|infoboxTemplate|Infobox3cols}} | ||
{{!}} header1 = | {{!}} header1 = | ||
{{!}} label1 = label1 | {{!}} label1 = label1 | ||
Line 128: | Line 129: | ||
! Code !! Result | ! Code !! Result | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
|{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols||Infobox3cols}} | |{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols|infoboxTemplate|Infobox3cols}} | ||
{{!}} header1 = | {{!}} header1 = | ||
{{!}} label1 = | {{!}} label1 = | ||
Line 151: | Line 152: | ||
! Code !! Result | ! Code !! Result | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
|{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols||Infobox3cols}} | |{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols|infoboxTemplate|Infobox3cols}} | ||
{{!}} header1 = | {{!}} header1 = | ||
{{!}} label1 = label1 | {{!}} label1 = label1 | ||
Line 174: | Line 175: | ||
! Code !! Result | ! Code !! Result | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
|{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols||Infobox3cols}} | |{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols|infoboxTemplate|Infobox3cols}} | ||
{{!}} header1 = | {{!}} header1 = | ||
{{!}} label1 = label1 | {{!}} label1 = label1 | ||
Line 197: | Line 198: | ||
! Code !! Result | ! Code !! Result | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
|{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols||Infobox3cols}} | |{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols|infoboxTemplate|Infobox3cols}} | ||
{{!}} header1 = | {{!}} header1 = | ||
{{!}} label1 = label1 | {{!}} label1 = label1 | ||
Line 220: | Line 221: | ||
! Code !! Result | ! Code !! Result | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
|{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols||Infobox3cols}} | |{{#tag:pre|{{((}}{{#ifeq:{{NAMESPACE}}|Module|#invoke:infobox3cols|infoboxTemplate|Infobox3cols}} | ||
{{!}} header1 = | {{!}} header1 = | ||
{{!}} label1 = | {{!}} label1 = |
Latest revision as of 11:02, 20 February 2023
This is a documentation subpage for Template:Infobox3cols It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 16,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Lua error: callParserFunction: function "#translation" was not found.
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 | 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 = | extracellstyles = 1,3a,4b=... | header1 = | label1 = | data1 = | data1a = | data1b = | data1c = | class1 = | rowclass1 = | header2 = | rowclass2 = | label2 = | data2 = | class2 = | data2a = | data2b = | class2a = | class2b = | class2c = | data2c = ... | below = | belowstyle = | belowclass = | belowrowclass = | name = }}
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 }} |
|
Tracking categories
- Category:Pages using infobox3cols with undocumented parameters (0)
- Category:Pages using infobox3cols with header0 or label0 or data0 (0)
- Category:Pages using infobox3cols with multidatastyle (0)