Difference between revisions of "Template:Annotated image 4"

From MechWarrior: Living Legends Wiki
Jump to: navigation, search
(Annotate those images!)
 
m (CSS formatting changes)
 
(One intermediate revision by the same user not shown)
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}}}}}}}}]]
 
</div> <!-- end image -->
 
</div> <!-- end image -->
 
<!--Start annotations-->
 
<!--Start annotations-->
<div style="text-align:{{{annot-text-align|center}}}; {{ifeq|{{{annot-font-size|}}}||line-height:110%;|font-size:{{{annot-font-size|}}}px; line-height:{{{annot-line-height|110%}}};}}">
+
<div style="text-align:{{{annot-text-align|center}}}; {{#ifeq|{{{annot-font-size|}}}||line-height:110%;|font-size:{{{annot-font-size|}}}px; line-height:{{{annot-line-height|110%}}};}}">
 
<span style="background-color:{{{annot-background-color|transparent}}}; color:{{{annot-color|black}}}">{{{annotations}}}</span>
 
<span style="background-color:{{{annot-background-color|transparent}}}; color:{{{annot-color|black}}}">{{{annotations}}}</span>
 
<!--annotations has syntax: {{annotations|fromLeft|fromTop|text}}-->
 
<!--annotations has syntax: {{annotations|fromLeft|fromTop|text}}-->
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 06:39, 29 September 2017