Template:Infobox country/imagetable: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content added Content deleted
(Undid revision 788245651 by Rob984 (talk) Hasn't fixed the problem. I think it needs to be a fixed width, but that would require more extensive change to the code (so the whole column is part of an IF))
(update from sandbox per discussion on talk page)
Line 1: Line 1:
{{#if:{{both|{{{image1a|}}}{{{image1b|}}}|{{{image2|}}}}}
{{#if:{{both|{{{image1a|}}}{{{image1b|}}}|{{{image2|}}}}}
|<div style="display:inline-block;vertical-align:middle;width:58%;text-align:center;">
|<table class="maptable" style="width:100%">
<div class=center>{{{image1a|}}}</div><div class=center>{{{image1b|}}}</div>
<tr>
<td style="vertical-align:middle;width:58%;text-align:center;"><div class=center>{{{image1a|}}}</div><div class=center>{{{image1b|}}}</div></td>
<div style="font-size:85%; text-align:center; margin-top:2px;">{{{caption1|}}}</div>
</div><!--
<td style="vertical-align:middle;width:auto;text-align:center;"><div class=center>{{{image2|}}}</div></td>
--><div style="display:inline-block;vertical-align:middle;width:40%;text-align:center;">
</tr><tr>
<td style="font-size:85%; text-align:center;">{{{caption1|}}}</td>
<div class=center>{{{image2|}}}</div>
<td style="font-size:85%; text-align:center;">{{{caption2|}}}</td>
<div style="font-size:85%; text-align:center; margin-top:2px;">{{{caption2|}}}</div>
</tr>
</div>
|{{#if:{{{image1a|}}}{{{image1b|}}}|{{{image1a|}}}{{{image1b|}}}<div class=center style="font-size:85%; text-align:center; margin-top:2px;">{{{caption1}}}</div>
</table>
|{{#if:{{{image1a|}}}{{{image1b|}}}|{{{image1a|}}}{{{image1b|}}}<div class=center style="font-size:85%; text-align:center;">{{{caption1}}}</div>
}}{{#if:{{{image2|}}}|{{{image2|}}}<div class=center style="font-size:85%; text-align:center; margin-top:2px;">{{{caption2}}}</div>
}}{{#if:{{{image2|}}}|{{{image2|}}}<div class=center style="font-size:85%; text-align:center;">{{{caption2}}}</div>
}}
}}
}}<noinclude>
}}<noinclude>

Revision as of 09:36, 30 June 2017