Template:Infobox country/imagetable: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content added Content deleted
(Tested with preview on many articles. Lack of a set value here is causing an issue on mobile. Due to the way the mobile website transcludes infoboxes', the right column narrows, causing the arms to shrink (images on mobile shrink to fit their containers).)
m (1 revision imported)
 
(23 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{#if:{{both|{{{image1a|}}}{{{image1b|}}}|{{{image2|}}}}}
{{#if:{{both|{{{image1a|}}}{{{image1b|}}}|{{{image2|}}}}}|
|<table class="maptable" style="width:100%">
<div style="display:table; width:100%;">
<div style="display:table-cell; width:58%; vertical-align:middle; padding-left:5px;">
<tr>
<td style="vertical-align:middle;width:58%;text-align:center;"><div class=center>{{{image1a|}}}</div><div class=center>{{{image1b|}}}</div></td>
{{#if:{{{image1a|}}}|<div style="padding-bottom:3px;">{{{image1a|}}}</div>}}{{#if:{{{image1b|}}}|<div style="padding: 2px 0px 3px;">{{{image1b|}}}</div>}}
<div>{{{caption1|}}}</div>
<td style="vertical-align:middle;width:42%;text-align:center;"><div class=center>{{{image2|}}}</div></td>
</div>
</tr><tr>
<td style="font-size:85%; text-align:center;">{{{caption1|}}}</td>
<div style="display:table-cell; vertical-align:middle; padding: 0px 5px;">
<td style="font-size:85%; text-align:center;">{{{caption2|}}}</td>
<div style="padding-bottom:3px;">{{{image2|}}}</div>
<div>{{{caption2|}}}</div>
</tr>
</div>
</table>
</div>
|{{#if:{{{image1a|}}}{{{image1b|}}}|{{{image1a|}}}{{{image1b|}}}<div class=center style="font-size:85%; text-align:center;">{{{caption1}}}</div>
<!--else:-->|
}}{{#if:{{{image2|}}}|{{{image2|}}}<div class=center style="font-size:85%; text-align:center;">{{{caption2}}}</div>
{{#if:{{{image1a|}}}{{{image1b|}}}|
}}
<div style="display:table; width:100%;">
{{#if:{{{image1a|}}}|<div style="display:table-cell; vertical-align:middle; padding: 0px 5px 3px;">{{{image1a|}}}</div>}}{{#if:{{{image1b|}}}|<div style="display:table-cell; vertical-align:middle; padding: 0px 5px 3px 0px;">{{{image1b|}}}</div>}}
</div>
<div>{{{caption1}}}</div>
}}
{{#if:{{{image2|}}}|
<div style="padding: 0px 5px;">
<div style="padding-bottom:3px;">{{{image2|}}}</div>
<div>{{{caption2}}}</div>
</div>
}}
}}<noinclude>
}}<noinclude>
{{documentation|content=
{{documentation|content=

Latest revision as of 21:02, 25 April 2020