Templat:Infobox settlement/columns: Perbedaan antara revisi
Tampilan
Konten dihapus Konten ditambahkan
k Cleanup. |
RaFaDa20631 (bicara | kontrib) update |
||
Baris 1: | Baris 1: | ||
<templatestyles src="Infobox settlement/columns/styles.css"/> |
|||
<table style="width:100%; background:none;"> |
|||
<div class="ib-settlement-cols"> |
|||
<tr>{{#if:{{{0|}}} |
|||
<div class="ib-settlement-cols-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) |
||
--><div class="ib-settlement-cols-cellt"> |
|||
--><td><table style="width:100%; background:none;"> |
|||
{{#if:{{{1|}}} |
{{#if:{{{1|}}}|<div>{{{1}}}</div>}} |
||
{{#if:{{{2|}}}|<div>{{{2}}}</div>}} |
|||
|<tr><td style="vertical-align:middle; text-align:center;">{{{1|}}}</td></tr> |
|||
{{#if:{{{3|}}}|<div>{{{3}}}</div>}} |
|||
{{#if:{{{4|}}}|<div>{{{4}}}</div>}} |
|||
|<tr><td style="vertical-align:middle; text-align:center;">{{{2|}}}</td></tr> |
|||
{{#if:{{{5|}}}|<div>{{{5}}}</div>}} |
|||
</div> |
|||
|<tr><td style="vertical-align:middle; text-align:center;">{{{3|}}}</td></tr> |
|||
}}<div class="ib-settlement-cols-cellt">{{{0}}}</div> |
|||
}}{{#if:{{{4|}}} |
|||
|<tr><td style="vertical-align:middle; text-align:center;">{{{4|}}}</td></tr> |
|||
}}{{#if:{{{5|}}} |
|||
|<tr><td style="vertical-align:middle; text-align:center;">{{{5|}}}</td></tr> |
|||
}}</table></td> |
|||
}}<td style="vertical-align:top;text-align:center;">{{{0|}}}</td> |
|||
|<!-- 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|}}} |
||
|<div class="ib-settlement-cols-cell">{{{1}}}</div>{{#if:{{{2|}}}||</div></div><div class="ib-settlement-cols"><!-- TODO: The "3" element case currently produces two div-tables, which is non-optimal, but someone else should figure out how to fix it; 4 and 2 cases output as one "table". --><div class="ib-settlement-cols-row">}} |
|||
|<td style="vertical-align:middle; text-align:center;" {{#if:{{{2|}}}||colspan=2}}>{{{1|}}}</td> |
|||
}}{{#if:{{{2|}}} |
}}{{#if:{{{2|}}} |
||
|<div class="ib-settlement-cols-cell">{{{2}}}</div>{{#if:{{{1|}}}||</div></div><div class="ib-settlement-cols"><div class="ib-settlement-cols-row">}} |
|||
|<td style="vertical-align:middle; text-align:center;" {{#if:{{{1|}}}||colspan=2}}>{{{2|}}}</td> |
|||
}}</ |
}}</div><div class="ib-settlement-cols-row">{{#if:{{{3|}}} |
||
|{{#if:{{{4|}}}||</div></div><div class="ib-settlement-cols"><div class="ib-settlement-cols-row">}}<div class="ib-settlement-cols-cell">{{{3}}}</div> |
|||
|<td style="vertical-align:middle; text-align:center;" {{#if:{{{4|}}}||colspan=2}}>{{{3|}}}</td> |
|||
}}{{#if:{{{4| |
}}{{#if:{{{4|}}} |
||
|{{#if:{{{3|}}}||</div></div><div class="ib-settlement-cols"><div class="ib-settlement-cols-row">}}<div class="ib-settlement-cols-cell">{{{4}}}</div> |
|||
|<td style="vertical-align:middle; text-align:center;" {{#if:{{{3|}}}||colspan=2}}>{{{4|}}}</td> |
|||
}} |
}} |
||
|<!-- if two or fewer images |
|<!-- if two or fewer images |
||
-->{{#if:{{{1|}}} |
-->{{#if:{{{1|}}}|<div class="ib-settlement-cols-cell">{{{1}}}</div>}}<!-- |
||
-->{{#if:{{{2|}}}|<div class="ib-settlement-cols-cell">{{{2}}}</div>}}<!-- |
|||
|<td style="vertical-align:middle; text-align:center;">{{{1|}}}</td> |
|||
-->{{#if:{{{3|}}}|<div class="ib-settlement-cols-cell">{{{3}}}</div>}}<!-- |
|||
}}{{#if:{{{2|}}} |
|||
|< |
-->{{#if:{{{4|}}}|<div class="ib-settlement-cols-cell">{{{4}}}</div>}} |
||
}}{{#if:{{{3|}}} |
|||
|<td style="vertical-align:middle; text-align:center;">{{{3|}}}</td> |
|||
}}{{#if:{{{4| }}} |
|||
|<td style="vertical-align:middle; text-align:center;">{{{4|}}}</td> |
|||
}} |
|||
}} |
}} |
||
}}</ |
}}</div></div><noinclude> |
||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
</noinclude> |
Revisi terkini sejak 7 Januari 2022 03.43
Ini adalah subtemplat {{Infobox settlement}} dan tidak boleh digunakan langsung
Contoh
[sunting sumber]Dengan 0
[sunting sumber]
1
2
3
4
5
Kanan |
Tanpa 0
[sunting sumber]
1 2 3 4 |
2 3 4 |
1 3 4 |
1 2 4 |
1 2 3 |
3 4 |
2 4 |
2 3 |
1 4 |
1 3 |
1 2 |
1 |
2 |
3 |
4 |
|