Difference between revisions of "Template:Infobox/Columns"

From blackwiki
Jump to navigation Jump to search
imported>MusikBot II
m (Protected "Template:Infobox/Columns": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
imported>Muboshgu
(this becomes too small in the infobox per MOS:ACCESS)
 
Line 1: Line 1:
{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}|<table class="{{{clase|plainlist}}}" style="{{{style|width:100%; text-align:left; background-color:transparent; border:0; margin:0; padding:0;font-size:92%;}}}">{{#if:{{{title|}}}|<tr><th colspan="{{#if:{{{4|}}}|4|{{#if:{{{3|}}}|3|{{#if:{{{2|}}}|2|1}}}}}}" style="{{{titlestyle|text-align:center;}}}">{{{title|}}}</th></tr>}}
+
{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}|<table class="{{{clase|plainlist}}}" style="{{{style|width:100%; text-align:left; background-color:transparent; border:0; margin:0; padding:0;}}}">{{#if:{{{title|}}}|<tr><th colspan="{{#if:{{{4|}}}|4|{{#if:{{{3|}}}|3|{{#if:{{{2|}}}|2|1}}}}}}" style="{{{titlestyle|text-align:center;}}}">{{{title|}}}</th></tr>}}
 
<tr>
 
<tr>
 
<td style="{{{style1|}}};{{#if:{{{4|}}}|width:25%;|{{#if:{{{3|}}}|width:33.33%;|width:50%;}}}}">{{{1|}}}</td>
 
<td style="{{{style1|}}};{{#if:{{{4|}}}|width:25%;|{{#if:{{{3|}}}|width:33.33%;|width:50%;}}}}">{{{1|}}}</td>

Latest revision as of 18:28, 27 July 2020

Template documentation[view] [edit] [history] [purge]

The following template allows you to include two, three or four columns of the same width separated by a vertical line.

Usage

Title of the record
First column Second column
First column Second columnThird column
First column Second columnThird columnFourth column
{{Infobox
  |title = Title of the record
  ...
  |data...={{Infobox/Columns|First column|Second column}}
  |data...={{Infobox/Columns|First column|Second column|Third column}}
  |data...={{Infobox/Columns|First column|Second column|Third column|Fourth column}}
}}