Difference between revisions of "Template:Annotated image noframe"

From AAPG Wiki
Jump to navigation Jump to search
(try)
(test align box)
Line 3: Line 3:
 
<div style="{{{image-css|}}};left:{{{image-left|0}}}px; top:{{{image-top|0}}}px; width:{{{image-width|300}}}px; position:absolute;">
 
<div style="{{{image-css|}}};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|}}}|link={{{link|}}}]]</div>
 
[[Image:{{{image}}}|{{{image-width|300}}}px|alt={{{alt|}}}|link={{{link|}}}]]</div>
{{#if:{{{box|}}}|<div style="left:0; top:0; width:300px; height:60px; background-color:rgba(255,255,255,0.6);; position:absolute;">|}}
+
{{#if:{{{box|}}}|<div style="left:0; bottom:0; width:300px; height:60px; background-color:rgba(255,255,255,0.6);; position:absolute;">|}}
 
<div style="text-shadow: 0px 1px 3px #555; text-align:{{{annot-text-align|left}}}; background-color:{{{annot-background-color|transparent}}}; {{#if:{{{annot-font-family|}}}|font-family:{{{annot-font-family}}};|}} {{#if:{{{annot-font-size|}}}|font-size:{{{annot-font-size}}}px;|}} {{#if:{{{annot-font-weight|}}}|font-weight:{{{annot-font-weight}}};|}} {{#if:{{{annot-font-style|}}}|font-style:{{{annot-font-style}}};|}} {{#if:{{{annot-color|}}}|color:{{{annot-color}}};|}} {{#if:{{{annot-line-height|}}}|line-height:{{{annot-line-height}}};|{{#if:{{{annot-font-size|}}}|line-height:{{#expr:{{{annot-font-size|}}}+2}}px;  |line-height:110%;}}}}">{{{annotations}}}</div>
 
<div style="text-shadow: 0px 1px 3px #555; text-align:{{{annot-text-align|left}}}; background-color:{{{annot-background-color|transparent}}}; {{#if:{{{annot-font-family|}}}|font-family:{{{annot-font-family}}};|}} {{#if:{{{annot-font-size|}}}|font-size:{{{annot-font-size}}}px;|}} {{#if:{{{annot-font-weight|}}}|font-weight:{{{annot-font-weight}}};|}} {{#if:{{{annot-font-style|}}}|font-style:{{{annot-font-style}}};|}} {{#if:{{{annot-color|}}}|color:{{{annot-color}}};|}} {{#if:{{{annot-line-height|}}}|line-height:{{{annot-line-height}}};|{{#if:{{{annot-font-size|}}}|line-height:{{#expr:{{{annot-font-size|}}}+2}}px;  |line-height:110%;}}}}">{{{annotations}}}</div>
 
{{#if:{{{box|}}}|</div>|}}
 
{{#if:{{{box|}}}|</div>|}}

Revision as of 19:23, 23 January 2014