Jump to content

Template:Annotated image: Difference between revisions

From KDE UserBase Wiki
Lundin (talk | contribs)
No edit summary
Lundin (talk | contribs)
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="thumb" style="float:{{#if:{{{float|}}}|{{{float}}}|right}}; clear:{{#if:{{{float|}}}|{{{float}}}|right}}; margin-{{#switch:{{{float}}}|left=right|#default=left}}:5px; border:solid #ccc 1px; padding:2px; width:{{#expr:{{{width|{{#expr:{{{image-width|300}}}+4}}}}}+8}}px; {{{outer-css|}}}; ">
<div class="thumb" style="border:solid #ccc 1px;  
<div class="thumbinner image" style="position:relative; overflow:hidden; width:{{{width|{{#expr:{{{image-width|300}}}+4}}}}}px; height:{{{height}}}px; border:solid #ccc 1px; background-color:{{{image-bg-color|white}}};">
padding:2px;  
<div style="{{{image-css|}}};left:{{{image-left|0}}}px; top:{{{image-top|0}}}px; width:{{{image-width|300}}}px; position:absolute;"> {{#if:{{{imagemap|}}}|{{{imagemap}}}|[[Image:{{{image}}}|{{{image-width|300}}}px|alt={{{alt|}}}|{{{caption}}}]]}}</div>
width:{{size}}px; ">
<div style="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%;}}}}">
 
<!--annotation|left|top-->
<div class="thumbinner image"  
{{{annotations}}}
style="position:relative;  
overflow:hidden;  
width:{{{size}}}px;  
height:{{{size}}}px;">
 
    <div style="{{{image-css|}}};
    left:{{{image-left|0}}}px;  
    top:{{{image-top|0}}}px;  
    width:{{{image-width}}}px;  
    position:absolute;">
        [[Image:{{{image}}}]]
    </div>
    {{{annotations}}}
    <div>[[Image:{{{image}}}|frameless]]</div>
 
</div>
</div>
<div style="visibility:hidden">{{#if:{{{imagemap|}}}|{{{imagemap}}}|[[Image:{{{image}}}|{{{image-width|300}}}px|frameless|alt={{{alt|}}}]]}}</div>
<div class="thumbcaption" style="width:{{{width|300}}}px;">{{{caption}}}</div>
</div><div class="thumbcaption" style="width:{{{width|300}}}px;">{{{caption}}}</div>
</div>
</div>

Latest revision as of 14:56, 11 August 2015

       [[Image:{{{image}}}]]
   {{{annotations}}}
[[Image:{{{image}}}|frameless]]
{{{caption}}}