Difference between revisions of "Template:Infobox settlement/columns"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(try width:100% instead of colspan. I think this will work. See Template:Infobox_settlement/testcases#Case_11:_Fort_Worth,_Texas)
imported>Jonesey95
(Undid revision 889892563 by Jonesey95 (talk). worse)
Line 21: Line 21:
 
  |<!-- if more than two images
 
  |<!-- if more than two images
 
-->{{#if:{{{1|}}}
 
-->{{#if:{{{1|}}}
|<div style="display:table-cell;vertical-align:middle; text-align:center; {{#if:{{{2|}}}||width:100%;}}">{{{1|}}}</div>
+
|<div style="display:table-cell;vertical-align:middle; text-align:center;" {{#if:{{{2|}}}||colspan=2}}>{{{1|}}}</div>
 
}}{{#if:{{{2|}}}
 
}}{{#if:{{{2|}}}
|<div style="display:table-cell;vertical-align:middle; text-align:center; {{#if:{{{1|}}}||width:100%;}}">{{{2|}}}</div>
+
|<div style="display:table-cell;vertical-align:middle; text-align:center;" {{#if:{{{1|}}}||colspan=2}}>{{{2|}}}</div>
 
}}</div><div style="display:table-row">{{#if:{{{3|}}}
 
}}</div><div style="display:table-row">{{#if:{{{3|}}}
|<div style="display:table-cell;vertical-align:middle; text-align:center; {{#if:{{{4|}}}||width:100%;}}">{{{3|}}}</div>
+
|<div style="display:table-cell;vertical-align:middle; text-align:center;" {{#if:{{{4|}}}||colspan=2}}>{{{3|}}}</div>
 
}}{{#if:{{{4| }}}
 
}}{{#if:{{{4| }}}
|<div style="display:table-cell;vertical-align:middle; text-align:center; {{#if:{{{3|}}}||width:100%;}}">{{{4|}}}</div>
+
|<div style="display:table-cell;vertical-align:middle; text-align:center;" {{#if:{{{3|}}}||colspan=2}}>{{{4|}}}</div>
 
}}
 
}}
 
  |<!-- if two or fewer images
 
  |<!-- if two or fewer images

Revision as of 17:15, 28 March 2019

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

This is a subtemplate of {{Infobox settlement}} and should not be used directly.

Examples

With 0

1
2
3
4
5
Right

Without 0

Four
1
2
3
4
Three
2
3
4
1
3
4
1
2
4
1
2
3
Two
3
4
2
4
2
3
1
4
1
3
1
2
One
1
2
3
4
None

See also