Difference between revisions of "Template:Annotated image 4/sandbox"

From blackwiki
Jump to navigation Jump to search
blackwiki>Seppi333
(fixed problems with testcases 2 and 3 in Special:permalink/822615570 (testcases2 subpage))
blackwiki>Great Brightstar
(Another try of scrolling mode)
Line 1: Line 1:
 
<includeonly><!--Annotated image 4 template code starts below here-->
 
<includeonly><!--Annotated image 4 template code starts below here-->
<div class="thumb noresize {{#switch: {{{align|}}} | left = tleft | center = center| centre = center | right = tright | #default = tright}}" style="{{#ifeq: {{{align|}}}|center|margin: 1em auto;|margin-top:0px; margin-bottom:0px;}} max-width:100%; overflow-x:auto;">
+
<div class="thumb noresize {{#switch: {{{align|}}} | left = tleft | center = center| centre = center | right = tright | #default = tright}}" style="{{#ifeq: {{{align|}}}|center|margin: 1em auto;|margin-top:0px; margin-bottom:0px;}} max-width:100%; overflow:hidden;">
 
<div class="thumbinner" style="width:{{#expr:{{{width|300}}}+2}}px;{{#if:{{{frameless|}}}|border:0px;background-color:#fff}} ">
 
<div class="thumbinner" style="width:{{#expr:{{{width|300}}}+2}}px;{{#if:{{{frameless|}}}|border:0px;background-color:#fff}} ">
 
{{#if:{{{header|}}}|
 
{{#if:{{{header|}}}|
Line 6: Line 6:
 
}}
 
}}
 
<!--Start image wrapper-->
 
<!--Start image wrapper-->
<div style="position:relative; width:{{{width|300}}}px; height:{{{height}}}px; border:solid #ccc 1px; {{#if:{{{frameless|}}}|border:0px;}} background-color:{{{image-bg-color|white}}};overflow:hidden;">
+
<div style="position:relative; width:{{{width|300}}}px; height:{{{height}}}px; border:solid #ccc 1px; {{#if:{{{frameless|}}}|border:0px;}} background-color:{{{image-bg-color|white}}};overflow:auto;">
 
<!--Start annotated image-->
 
<!--Start annotated image-->
 
<div style="overflow:hidden; height:{{{height}}}px; left:{{{image-left|0}}}px; top:{{{image-top|0}}}px; width:{{{image-width|300}}}px; position:absolute"> [[Image:{{{image}}}|{{{image-width|300}}}px|alt={{{alt|}}}|{{#ifeq:{{{nolink|}}}|yes|link=|link={{{link|COMMONS:File:{{{image}}}}}}}}]]
 
<div style="overflow:hidden; height:{{{height}}}px; left:{{{image-left|0}}}px; top:{{{image-top|0}}}px; width:{{{image-width|300}}}px; position:absolute"> [[Image:{{{image}}}|{{{image-width|300}}}px|alt={{{alt|}}}|{{#ifeq:{{{nolink|}}}|yes|link=|link={{{link|COMMONS:File:{{{image}}}}}}}}]]

Revision as of 10:19, 8 February 2018