Difference between revisions of "Template:Infobox3cols/sandbox"
Jump to navigation
Jump to search
imported>Frietjes |
imported>Frietjes |
||
| Line 316: | Line 316: | ||
</table><!-- | </table><!-- | ||
-->{{<includeonly>safesubst:</includeonly>#invoke:Check for unknown parameters/sandbox|check|unknown=[[Category:Pages using infobox3cols with undocumented parameters|_VALUE_{{PAGENAME}}]]|ignoreblank=y | -->{{<includeonly>safesubst:</includeonly>#invoke:Check for unknown parameters/sandbox|check|unknown=[[Category:Pages using infobox3cols with undocumented parameters|_VALUE_{{PAGENAME}}]]|ignoreblank=y | ||
| − | | child| 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]*| below| belowstyle| belowclass| belowrowclass| name | + | | child| 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 |
}}{{#if:{{{header0|}}}{{{label0|}}}{{{data0|}}}{{{data0a|}}}{{{data0b|}}}{{{data0c|}}}{{{class0|}}}{{{rowclass0|}}}|[[Category:Pages using infobox3cols with header0 or label0 or data0]] | }}{{#if:{{{header0|}}}{{{label0|}}}{{{data0|}}}{{{data0a|}}}{{{data0b|}}}{{{data0c|}}}{{{class0|}}}{{{rowclass0|}}}|[[Category:Pages using infobox3cols with header0 or label0 or data0]] | ||
}}{{#if:{{{multidatastyle|}}}|[[Category:Pages using infobox3cols with multidatastyle]] | }}{{#if:{{{multidatastyle|}}}|[[Category:Pages using infobox3cols with multidatastyle]] | ||
Revision as of 17:25, 26 June 2015
Template:Infobox3cols/rowTemplate:Infobox3cols/row
| 50px | This is the template sandbox page for Template:Infobox3cols (diff). See also the companion subpage for test cases. |
| 40px | This template is used on 195,000+ pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. Transclusion count updated automatically (see documentation). |
| 30px | 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
| 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 =
| 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 (2)
- Category:Pages using infobox3cols with header0 or label0 or data0 (0)
- Category:Pages using infobox3cols with multidatastyle (0)
| The above documentation is transcluded from Template:Infobox3cols/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |