Difference between revisions of "Template:Annotated image 4"

From MechWarrior: Living Legends Wiki
Jump to: navigation, search
m
m (CSS formatting changes)
 
Line 3: Line 3:
 
|-<!--Annotated image 4 template code starts below here-->
 
|-<!--Annotated image 4 template code starts below here-->
 
|<div class="thumb {{#switch: {{{align|}}} | left = tleft | center = center| centre = center | right = tright | #default = tright}}" {{#ifeq: {{{align|}}}|center|style="margin: 1em auto;"}}>
 
|<div class="thumb {{#switch: {{{align|}}} | left = tleft | center = center| centre = center | right = tright | #default = tright}}" {{#ifeq: {{{align|}}}|center|style="margin: 1em auto;"}}>
<div class="thumbinner" style="width:{{#expr:{{{width|300}}}+2}}px;{{#if:{{{frameless|}}}|border:0px;background-color:#fff}} ">
+
<div class="thumbinner" style="width:{{#expr:{{{width|300}}}+2}}px;{{#if:{{{frameless|}}}|border:0px;background-color:inherit}} ">
 
{{#if:{{{header|}}}|
 
{{#if:{{{header|}}}|
 
<div style="clear: both; font-weight: bold; font-size: 106.4%; text-align: {{{header_align|center}}}; background-color: {{{header_background|transparent}}};margin-bottom:3px">{{{header}}}</div>
 
<div style="clear: both; font-weight: bold; font-size: 106.4%; text-align: {{{header_align|center}}}; background-color: {{{header_background|transparent}}};margin-bottom:3px">{{{header}}}</div>
 
}}
 
}}
 
<!--Start image wrapper-->
 
<!--Start image wrapper-->
<div style="position:relative; width:{{{width|300}}}px; height:{{{height}}}px; overflow:hidden; border:solid #ccc 1px; {{#if:{{{frameless|}}}|border:0px;}} background-color:{{{image-bg-color|white}}};">
+
<div style="position:relative; width:{{{width|300}}}px; height:{{{height}}}px; overflow:hidden; border:inherit; {{#if:{{{frameless|}}}|border:0px;}} background-color:{{{image-bg-color|white}}};">
 
<!--Start annotated image-->
 
<!--Start annotated image-->
 
<div style="left:{{{image-left|0}}}px; top:{{{image-top|0}}}px; width:{{{image-width|300}}}px; position:absolute"> [[Image:{{{image}}}|{{{image-width|300}}}px|alt={{{alt|}}}|{{#ifeq:{{{nolink|}}}|yes|link=|link={{{link|COMMONS:File:{{{image}}}}}}}}]]
 
<div style="left:{{{image-left|0}}}px; top:{{{image-top|0}}}px; width:{{{image-width|300}}}px; position:absolute"> [[Image:{{{image}}}|{{{image-width|300}}}px|alt={{{alt|}}}|{{#ifeq:{{{nolink|}}}|yes|link=|link={{{link|COMMONS:File:{{{image}}}}}}}}]]
Line 21: Line 21:
 
</div><!-- end thumbinner -->
 
</div><!-- end thumbinner -->
 
</div><!-- end thumb -->
 
</div><!-- end thumb -->
|}<!-- end table wrapper for mobile browsers --></includeonly><noinclude>
+
|}<!-- end table wrapper for mobile browsers --></includeonly>
</noinclude>
 

Latest revision as of 05:39, 29 September 2017