Line 7: |
Line 7: |
| <div class="thumbinner" style="overflow:hidden;width:{{#expr:{{{width|{{{image-width|300}}}}}}+2}}px;"> | | <div class="thumbinner" style="overflow:hidden;width:{{#expr:{{{width|{{{image-width|300}}}}}}+2}}px;"> |
| <div class="thumbimage" style="{{#if:{{{height|}}}|height:{{#expr:{{{height}}}+2}}px;}} overflow:hidden; position:relative; background-color:{{{image-bg-color|white}}};"> | | <div class="thumbimage" style="{{#if:{{{height|}}}|height:{{#expr:{{{height}}}+2}}px;}} overflow:hidden; position:relative; background-color:{{{image-bg-color|white}}};"> |
− | <div style="{{{image-css|}}};left:{{{image-left|0}}}px; top:{{{image-top|0}}}px; width:{{{image-width|300}}}px; position:absolute;"> {{#if:{{{imagemap|}}}|{{{imagemap}}}|[[File:{{{image}}}|{{{image-width|300}}}px|alt={{{alt|}}}|{{{caption}}}]]}}</div> | + | <div style="{{{image-css|}}};left:{{{image-left|0}}}px; top:{{{image-top|0}}}px; width:{{{image-width|300}}}px; position:absolute;"> {{#if:{{{imagemap|}}}|{{{imagemap}}}|[[File:{{{image}}}|{{{image-width|300}}}px|alt={{{alt|}}}|{{{caption|}}}]]}}</div> |
| <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%;}}}}"> | | <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-->{{{annotations}}} | | <!--annotation|left|top-->{{{annotations}}} |
Line 13: |
Line 13: |
| <div style="visibility:hidden">{{#if:{{{imagemap|}}}|{{{imagemap}}}|[[Image:{{{image}}}|{{{image-width|300}}}px|frameless|alt={{{alt|}}}]]}}</div> | | <div style="visibility:hidden">{{#if:{{{imagemap|}}}|{{{imagemap}}}|[[Image:{{{image}}}|{{{image-width|300}}}px|frameless|alt={{{alt|}}}]]}}</div> |
| </div> | | </div> |
− | <div class="thumbcaption">{{#if:{{{image|}}}|{{magnify icon|link=File:{{{image}}}}}}}{{{caption}}}</div> | + | <div class="thumbcaption">{{#if:{{{image|}}}|{{magnify icon|link=File:{{{image}}}}}}}{{{caption|}}}</div> |
| </div></div>{{#ifeq:{{{float}}}|center|</div>}}</includeonly>{{#if:{{{image- style|}}}|[[Category:Pages screwed up by automated editing]]}}<noinclude> | | </div></div>{{#ifeq:{{{float}}}|center|</div>}}</includeonly>{{#if:{{{image- style|}}}|[[Category:Pages screwed up by automated editing]]}}<noinclude> |
| From [[wikipedia:Template:Annotated image|Wikipedia]]. | | From [[wikipedia:Template:Annotated image|Wikipedia]]. |
| + | |
| + | Example: |
| + | |
| + | <pre> |
| + | {{Annotated image|image = Ship Card Isokaze.png|image-left = -100|image-top = -20|width = 120|height = 150|float = left}} |
| + | </pre> |
| + | |
| + | {{Annotated image|image = Ship Card Isokaze.png|image-left = -100|image-top = -20|width = 120|height = 150|float = left}} |
| </noinclude> | | </noinclude> |