Template:Infobox settlement/columns: Difference between revisions

Jump to navigation Jump to search
m (1 revision imported)
en>Frietjes
(no colspan with div)
Line 1: Line 1:
<table style="width:100%; background:none;">
<div style="display:table; width:100%; background:none;">
<tr>{{#if:{{{0|}}}
<div style="display:table-row">{{#if:{{{0|}}}
  |<!-- if 0
  |<!-- if 0
-->{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}
-->{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}
   |<!-- if 0 and (1 or 2 or 3 or 4 or 5)
   |<!-- if 0 and (1 or 2 or 3 or 4 or 5)
--><td><table style="width:100%; background:none;">
--><div style="display:table-cell"><div style="display:table; width:100%; background:none;">
{{#if:{{{1|}}}
{{#if:{{{1|}}}
|<tr><td style="vertical-align:middle; text-align:center;">{{{1|}}}</td></tr>
|<div style="display:table-row"><div style="display:table-cell;vertical-align:middle; text-align:center;">{{{1|}}}</div></div>
}}{{#if:{{{2|}}}
}}{{#if:{{{2|}}}
|<tr><td style="vertical-align:middle; text-align:center;">{{{2|}}}</td></tr>
|<div style="display:table-row"><div style="display:table-cell;vertical-align:middle; text-align:center;">{{{2|}}}</div></div>
}}{{#if:{{{3|}}}
}}{{#if:{{{3|}}}
|<tr><td style="vertical-align:middle; text-align:center;">{{{3|}}}</td></tr>
|<div style="display:table-row"><div style="display:table-cell;vertical-align:middle; text-align:center;">{{{3|}}}</div></div>
}}{{#if:{{{4|}}}
}}{{#if:{{{4|}}}
|<tr><td style="vertical-align:middle; text-align:center;">{{{4|}}}</td></tr>
|<div style="display:table-row"><div style="display:table-cell;vertical-align:middle; text-align:center;">{{{4|}}}</div></div>
}}{{#if:{{{5|}}}
}}{{#if:{{{5|}}}
|<tr><td style="vertical-align:middle; text-align:center;">{{{5|}}}</td></tr>
|<div style="display:table-row"><div style="display:table-cell;vertical-align:middle; text-align:center;">{{{5|}}}</div></div>
}}</table></td>
}}</div></div>
}}<td style="vertical-align:top;text-align:center;">{{{0|}}}</td>
}}<div style="display:table-cell;vertical-align:top;text-align:center;">{{{0|}}}</div>
|<!-- if not 0
|<!-- if not 0
-->{{#ifexpr:({{#if:{{{1|}}}|1|0}}+{{#if:{{{2|}}}|1|0}}+{{#if:{{{3|}}}|1|0}}+{{#if:{{{4|}}}|1|0}}) > 2
-->{{#ifexpr:({{#if:{{{1|}}}|1|0}}+{{#if:{{{2|}}}|1|0}}+{{#if:{{{3|}}}|1|0}}+{{#if:{{{4|}}}|1|0}}) > 2
  |<!-- if more than two images
  |<!-- if more than two images
-->{{#if:{{{1|}}}
-->{{#if:{{{1|}}}
|<td style="vertical-align:middle; text-align:center;" {{#if:{{{2|}}}||colspan=2}}>{{{1|}}}</td>
|<div style="display:table-cell;vertical-align:middle; text-align:center;">{{{1|}}}</div>{{#if:{{{2|}}}||</div></div><div style="display:table; width:100%; background:none;"><div style="display:table-row">}}
}}{{#if:{{{2|}}}
}}{{#if:{{{2|}}}
|<td style="vertical-align:middle; text-align:center;" {{#if:{{{1|}}}||colspan=2}}>{{{2|}}}</td>
|<div style="display:table-cell;vertical-align:middle; text-align:center;">{{{2|}}}</div>{{#if:{{{1|}}}||</div></div><div style="display:table; width:100%; background:none;"><div style="display:table-row">}}
}}</tr><tr>{{#if:{{{3|}}}
}}</div><div style="display:table-row">{{#if:{{{3|}}}
|<td style="vertical-align:middle; text-align:center;" {{#if:{{{4|}}}||colspan=2}}>{{{3|}}}</td>
|{{#if:{{{4|}}}||</div></div><div style="display:table; width:100%; background:none;"><div style="display:table-row">}}<div style="display:table-cell;vertical-align:middle; text-align:center;">{{{3|}}}</div>
}}{{#if:{{{4| }}}
}}{{#if:{{{4| }}}
|<td style="vertical-align:middle; text-align:center;" {{#if:{{{3|}}}||colspan=2}}>{{{4|}}}</td>
|{{#if:{{{3|}}}||</div></div><div style="display:table; width:100%; background:none;"><div style="display:table-row">}}<div style="display:table-cell;vertical-align:middle; text-align:center;">{{{4|}}}</div>
}}
}}
  |<!-- if two or fewer images
  |<!-- if two or fewer images
-->{{#if:{{{1|}}}
-->{{#if:{{{1|}}}
|<td style="vertical-align:middle; text-align:center;">{{{1|}}}</td>
|<div style="display:table-cell;vertical-align:middle; text-align:center;">{{{1|}}}</div>
}}{{#if:{{{2|}}}
}}{{#if:{{{2|}}}
|<td style="vertical-align:middle; text-align:center;">{{{2|}}}</td>
|<div style="display:table-cell;vertical-align:middle; text-align:center;">{{{2|}}}</div>
}}{{#if:{{{3|}}}
}}{{#if:{{{3|}}}
|<td style="vertical-align:middle; text-align:center;">{{{3|}}}</td>
|<div style="display:table-cell;vertical-align:middle; text-align:center;">{{{3|}}}</div>
}}{{#if:{{{4| }}}
}}{{#if:{{{4| }}}
|<td style="vertical-align:middle; text-align:center;">{{{4|}}}</td>
|<div style="display:table-cell;vertical-align:middle; text-align:center;">{{{4|}}}</div>
}}
}}
   }}
   }}
}}</tr></table><noinclude>
}}</div></div><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 17:47, 28 March 2019