• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Template:Annotated image"

From Kancolle Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#ifeq:{{{float}}}|center|<div class="center">}}<div class="noresize thumb {{#switch:{{{float}}} |left= tleft |center | none= tnone |right |#default= tright }}"...")
 
 
(3 intermediate revisions by the same user not shown)
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>
{{documentation}}
+
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}}
 +
 
 +
{{clear}}
 
</noinclude>
 
</noinclude>

Latest revision as of 11:56, 28 August 2022

From Wikipedia.

Example:

{{Annotated image|image = Ship Card Isokaze.png|image-left = -100|image-top = -20|width = 120|height = 150|float = left}}

{{{annotations}}}