Difference between revisions of "Template:Infobox settlement/columns"
From Ava Zinn Wiki
[checked revision] | [checked revision] |
Aeverinezinn (talk | contribs) (Created page with "<table style="width:100%; background:none"> <tr>{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}} |<td> <table style="width:100%; background:none"> {{#if:{{{1|}}} |<tr><td style="vertica...") |
Aeverinezinn (talk | contribs) |
||
Line 1: | Line 1: | ||
− | <table style="width:100%; background:none"> | + | <table style="width:100%; background:none;"> |
− | <tr>{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}} | + | <tr>{{#if:{{{0|}}} |
− | |<td> | + | |<!-- if 0 |
− | <table style="width:100%; background:none"> | + | -->{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}} |
+ | |<!-- if 0 and (1 or 2 or 3 or 4 or 5) | ||
+ | --><td><table style="width:100%; background:none;"> | ||
{{#if:{{{1|}}} | {{#if:{{{1|}}} | ||
− | |<tr><td style="vertical-align:middle | + | |<tr><td style="vertical-align:middle; text-align:center;">{{{1|}}}</td></tr> |
}}{{#if:{{{2|}}} | }}{{#if:{{{2|}}} | ||
− | |<tr><td style="vertical-align:middle | + | |<tr><td style="vertical-align:middle; text-align:center;">{{{2|}}}</td></tr> |
}}{{#if:{{{3|}}} | }}{{#if:{{{3|}}} | ||
− | |<tr><td style="vertical-align:middle | + | |<tr><td style="vertical-align:middle; text-align:center;">{{{3|}}}</td></tr> |
}}{{#if:{{{4|}}} | }}{{#if:{{{4|}}} | ||
− | |<tr><td style="vertical-align:middle" align="center">{{{4|}}}</td></tr> | + | |<tr><td style="vertical-align:middle; text-align:center;">{{{4|}}}</td></tr> |
− | }}</td> | + | }}{{#if:{{{5|}}} |
− | }}<td | + | |<tr><td style="vertical-align:middle; text-align:center;">{{{5|}}}</td></tr> |
− | </tr></table><noinclude> | + | }}</table></td> |
+ | }}<td style="vertical-align:top;text-align:center;">{{{0|}}}</td> | ||
+ | |<!-- if not 0 | ||
+ | -->{{#ifexpr:({{#if:{{{1|}}}|1|0}}+{{#if:{{{2|}}}|1|0}}+{{#if:{{{3|}}}|1|0}}+{{#if:{{{4|}}}|1|0}}) > 2 | ||
+ | |<!-- if more than two images | ||
+ | -->{{#if:{{{1|}}} | ||
+ | |<td style="vertical-align:middle; text-align:center;" {{#if:{{{2|}}}||colspan=2}}>{{{1|}}}</td> | ||
+ | }}{{#if:{{{2|}}} | ||
+ | |<td style="vertical-align:middle; text-align:center;" {{#if:{{{1|}}}||colspan=2}}>{{{2|}}}</td> | ||
+ | }}</tr><tr>{{#if:{{{3|}}} | ||
+ | |<td style="vertical-align:middle; text-align:center;" {{#if:{{{4|}}}||colspan=2}}>{{{3|}}}</td> | ||
+ | }}{{#if:{{{4| }}} | ||
+ | |<td style="vertical-align:middle; text-align:center;" {{#if:{{{3|}}}||colspan=2}}>{{{4|}}}</td> | ||
+ | }} | ||
+ | |<!-- if two or fewer images | ||
+ | -->{{#if:{{{1|}}} | ||
+ | |<td style="vertical-align:middle; text-align:center;">{{{1|}}}</td> | ||
+ | }}{{#if:{{{2|}}} | ||
+ | |<td style="vertical-align:middle; text-align:center;">{{{2|}}}</td> | ||
+ | }}{{#if:{{{3|}}} | ||
+ | |<td style="vertical-align:middle; text-align:center;">{{{3|}}}</td> | ||
+ | }}{{#if:{{{4| }}} | ||
+ | |<td style="vertical-align:middle; text-align:center;">{{{4|}}}</td> | ||
+ | }} | ||
+ | }} | ||
+ | }}</tr></table><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 07:14, 29 December 2018
This is a subtemplate of {{Infobox settlement}} and should not be used directly.
Contents
Examples[edit]
With 0[edit]
|
Without 0[edit]
- Four
|
- Three
|
|
|
|
- Two
|
|
|
|
|
|
- One
|
|
|
|
- None
See also[edit]
The above documentation is transcluded from Template:Infobox settlement/columns/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |