|
Thanks for using our site! |
Template:Annotated image: Difference between revisions
From ranchstory
Jump to navigationJump to search
imported>Kiwibasket No edit summary |
imported>Kiwibasket mNo edit summary |
||
| (47 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly><!--The table wrapper below allows AI4-templated images to be viewed in mobile browsers--> | ||
|left= tleft | {| role="presentation" cellpadding="0" style="border-spacing:0; {{#switch: {{{align|}}} | none = | left = clear:left; float:left; | center | centre = margin-left: auto; margin-right: auto; border: none; | right | #default = clear:right; float:right; }}" | ||
|center | | |-<!--Annotated image 4 template code starts below here--> | ||
|right | |<div class="thumb {{#switch: {{{align|}}} | none=tnone | left = tleft | center | centre = center | right | #default = tright}}" {{#switch: {{{align|}}}|centre|center=style="margin: 1em auto;|margin-top:0px; margin-bottom:0px;"}}> | ||
|#default= tright | <div class="thumbinner" style="width:{{#expr:{{{width|300}}}+2}}px;{{#if:{{{frameless|}}}|border:0px;background-color:#fff}} "> | ||
}}" | {{#if:{{{header|}}}| | ||
<div class="thumbinner" style=" | <div style="clear: both; font-weight: bold; font-size: 106.4%; text-align: {{{header_align|center}}}; background-color: {{{header_background|transparent}}};margin-bottom:3px;">{{{header}}}</div> | ||
<div | }} | ||
<div style=" | <!--Start image wrapper--> | ||
< | <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--> | ||
{{{ | <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 style=" | <!--Start annotations--> | ||
<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 style="background-color:{{{annot-background-color|transparent}}}; color:{{{annot-color|black}}}">{{{annotations}}}</div> | |||
</div>< | <!--annotations has syntax: {{annotations|fromLeft|fromTop|text}}--> | ||
</div><!-- end annotations --> | |||
</div><!-- end image wrapper --> | |||
{{#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| [[Image:Desc-20.png|15px|link=COMMONS:File:{{{image}}}]]}}</div>}} | |||
</div><!-- end thumbinner --> | |||
</div><!-- end thumb --> | |||
|}<!-- end table wrapper for mobile browsers --></includeonly><noinclude> | |||
For documentation, see [https://en.wikipedia.org/wiki/Template:Annotated_image_4 w:TemplateAnnotated image 4] | |||
</noinclude> | |||
Latest revision as of 20:19, 15 June 2021
For documentation, see w:TemplateAnnotated image 4