Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox3cols/doc

Template page

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

         | {{#invoke:Message box|mbox}}
        }}{{#if: |
         |   {{#ifexist:Template:Infobox3cols
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  | 
                 }}
        }}
    | 
   }}

{{#ifeq:doc|sandbox||{{#invoke:High-use|main|1=|2=|info=|demo=|form=|expiry=|system=}}}} {{#invoke:Lua banner|main}}

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[edit]

{{{{#ifeq:Template|Module|#invoke:infobox3cols||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[edit]

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.

Example 1
Code Result
{{{{#ifeq:Template|Module|#invoke:infobox3cols||Infobox3cols}}
| header1 = header1
| label1 = label1
| data1 = data1
| data1a = data1a
| data1b = data1b
| data1c = data1c
}}

{{#invoke:Infobox3cols|infobox}}{{safesubst:#invoke:Check for unknown parameters|check|unknown=|ignoreblank=y|checkpositional=y

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| extracellstyles| templatestyles| 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:| }}{{#if:| }}{{#ifeq:Template|Template|{{#ifeq:docdocd|Infobox|}}}}

Example 2
Code Result
{{{{#ifeq:Template|Module|#invoke:infobox3cols||Infobox3cols}}
| header1 = 
| label1 = label1
| data1 = data1
| data1a = data1a
| data1b = data1b
| data1c = data1c
}}

{{#invoke:Infobox3cols|infobox}}{{safesubst:#invoke:Check for unknown parameters|check|unknown=|ignoreblank=y|checkpositional=y

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| extracellstyles| templatestyles| 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:| }}{{#if:| }}{{#ifeq:Template|Template|{{#ifeq:docdocd|Infobox|}}}}

Example 3
Code Result
{{{{#ifeq:Template|Module|#invoke:infobox3cols||Infobox3cols}}
| header1 = 
| label1 = 
| data1 = data1
| data1a = data1a
| data1b = data1b
| data1c = data1c
}}

{{#invoke:Infobox3cols|infobox}}{{safesubst:#invoke:Check for unknown parameters|check|unknown=|ignoreblank=y|checkpositional=y

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| extracellstyles| templatestyles| 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:| }}{{#if:| }}{{#ifeq:Template|Template|{{#ifeq:docdocd|Infobox|}}}}

Example 4
Code Result
{{{{#ifeq:Template|Module|#invoke:infobox3cols||Infobox3cols}}
| header1 = 
| label1 = label1
| data1 = 
| data1a = data1a
| data1b = data1b
| data1c = data1c
}}

{{#invoke:Infobox3cols|infobox}}{{safesubst:#invoke:Check for unknown parameters|check|unknown=|ignoreblank=y|checkpositional=y

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| extracellstyles| templatestyles| 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:| }}{{#if:| }}{{#ifeq:Template|Template|{{#ifeq:docdocd|Infobox|}}}}

Example 5
Code Result
{{{{#ifeq:Template|Module|#invoke:infobox3cols||Infobox3cols}}
| header1 = 
| label1 = label1
| data1 = 
| data1a = 
| data1b = data1b
| data1c = data1c
}}

{{#invoke:Infobox3cols|infobox}}{{safesubst:#invoke:Check for unknown parameters|check|unknown=|ignoreblank=y|checkpositional=y

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| extracellstyles| templatestyles| 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:| }}{{#if:| }}{{#ifeq:Template|Template|{{#ifeq:docdocd|Infobox|}}}}

Example 6
Code Result
{{{{#ifeq:Template|Module|#invoke:infobox3cols||Infobox3cols}}
| header1 = 
| label1 = label1
| data1 = 
| data1a = 
| data1b = 
| data1c = data1c
}}

{{#invoke:Infobox3cols|infobox}}{{safesubst:#invoke:Check for unknown parameters|check|unknown=|ignoreblank=y|checkpositional=y

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| extracellstyles| templatestyles| 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:| }}{{#if:| }}{{#ifeq:Template|Template|{{#ifeq:docdocd|Infobox|}}}}

Example 7
Code Result
{{{{#ifeq:Template|Module|#invoke:infobox3cols||Infobox3cols}}
| header1 = 
| label1 = 
| data1 = 
| data1a = data1a
| data1b = data1b
| data1c = data1c
}}

{{#invoke:Infobox3cols|infobox}}{{safesubst:#invoke:Check for unknown parameters|check|unknown=|ignoreblank=y|checkpositional=y

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| extracellstyles| templatestyles| 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:| }}{{#if:| }}{{#ifeq:Template|Template|{{#ifeq:docdocd|Infobox|}}}}

Tracking categories[edit]

  • [[:Category:{{#invoke:string|replace|1=Pages using infobox3cols with undocumented parameters|2=^:?[Cc]ategory:|3=|plain=false}}|{{#if:|{{{name}}}|Category:{{#invoke:string|replace|1=Pages using infobox3cols with undocumented parameters|2=^:?[Cc]ategory:|3=|plain=false}}}}]] (0)
  • [[:Category:{{#invoke:string|replace|1=Pages using infobox3cols with header0 or label0 or data0|2=^:?[Cc]ategory:|3=|plain=false}}|{{#if:|{{{name}}}|Category:{{#invoke:string|replace|1=Pages using infobox3cols with header0 or label0 or data0|2=^:?[Cc]ategory:|3=|plain=false}}}}]] (0)
  • [[:Category:{{#invoke:string|replace|1=Pages using infobox3cols with multidatastyle|2=^:?[Cc]ategory:|3=|plain=false}}|{{#if:|{{{name}}}|Category:{{#invoke:string|replace|1=Pages using infobox3cols with multidatastyle|2=^:?[Cc]ategory:|3=|plain=false}}}}]] (0)



Debug data: