Template:Infobox3cols/doc

From Holocaustmap

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

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

{{#ifeq:doc|sandbox||

}}

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

<syntaxhighlight lang="wikitext">

</syntaxhighlight>

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.

Example 1
Code Result

<syntaxhighlight lang="wikitext">

header1

</syntaxhighlight>

header1
Example 2
Code Result

<syntaxhighlight lang="wikitext">

label1 data1

</syntaxhighlight>

label1 data1
Example 3
Code Result

<syntaxhighlight lang="wikitext">

data1

</syntaxhighlight>

data1
Example 4
Code Result

<syntaxhighlight lang="wikitext">

label1 data1a data1b data1c

</syntaxhighlight>

label1 data1a data1b data1c
Example 5
Code Result

<syntaxhighlight lang="wikitext">

label1 data1b data1c

</syntaxhighlight>

label1 data1b data1c
Example 6
Code Result

<syntaxhighlight lang="wikitext">

label1 data1c

</syntaxhighlight>

label1 data1c
Example 7
Code Result

<syntaxhighlight lang="wikitext">

</syntaxhighlight>

Tracking categories