Thanks for using our site!

If you're looking to become an editor, please read the Becoming an Editor section carefully.

Template:Annotated image: Difference between revisions

From ranchstory
Jump to navigationJump to search
imported>Kiwibasket
mNo edit summary
imported>Kiwibasket
mNo edit summary
 
(26 intermediate revisions by the same user not shown)
Line 10: Line 10:
<div style="position:relative; width:{{{width|300}}}px; height:{{{height}}}px; overflow:hidden; border:{{#if:{{{frameless|}}}|0px|solid #ccc 1px}}; background-color:{{{image-bg-color|white}}};">
<div style="position:relative; width:{{{width|300}}}px; height:{{{height}}}px; overflow:hidden; border:{{#if:{{{frameless|}}}|0px|solid #ccc 1px}}; 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"> {{#if:{{{imagemap|}}}|{{{imagemap}}}|[[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"> {{#if:{{{imagemap|}}}|{{{imagemap}}}|[[Image:{{{image}}}|{{{image-width|300}}}px|alt={{{alt|}}}|{{#ifeq:{{{nolink|}}}|yes|link=|link={{{link|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 {{#if:{{{toggle|}}}|class="mw-collapsible" id="mw-customcollapsible-maplabel"}} 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 {{#if:{{{toggle|}}}|class="mw-collapsible" id="mw-customcollapsible-maplabel"}} style="background-color:{{{annot-background-color|transparent}}}; color:{{{annot-color|black}}}">{{{annotations}}}</div>
<div style="background-color:{{{annot-background-color|transparent}}}; color:{{{annot-color|black}}}">{{{annotations}}}</div>
<!--annotations has syntax: {{annotations|fromLeft|fromTop|text}}-->
<!--annotations has syntax: {{annotations|fromLeft|fromTop|text}}-->
</div><!-- end annotations -->
</div><!-- end annotations -->
</div><!-- end image wrapper -->
</div><!-- end image wrapper -->
{{#if:{{{toggle|}}}|<span class="mw-customtoggle-maplabel" style="text-align: right;">[toggle labels]</span>}}
{{#if:{{{toggle|}}}|<span class="mw-customtoggle-maplabel" style="float: right;">[toggle labels]</span>}}
{{#if:{{{caption|}}}|<div class="thumbcaption" style="clear:left">{{#ifeq:{{{icon|}}}|none||<div style="float:left;margin-right:0.5em">[[File:interactive icon.svg|18px|link=|The image above contains clickable links|alt=The image above contains clickable links]]</div>}}{{{caption}}}{{#ifeq:{{{nolink|}}}|yes|&nbsp;[[Image:Desc-20.png|15px|link=COMMONS:File:{{{image}}}]]}}</div>}}
{{#if:{{{caption|}}}|<div class="thumbcaption" style="clear:left">{{#ifeq:{{{icon|}}}|none||<div style="float:left;margin-right:0.5em">[[File:interactive icon.svg|18px|link=|The image above contains clickable links|alt=The image above contains clickable links]]</div>}}{{{caption}}}{{#ifeq:{{{nolink|}}}|yes|&nbsp;[[Image:Desc-20.png|15px|link=COMMONS:File:{{{image}}}]]}}</div>}}
</div><!-- end thumbinner -->
</div><!-- end thumbinner -->

Latest revision as of 20:19, 15 June 2021

For documentation, see w:TemplateAnnotated image 4