Difference between pages "Template:Image label" and "Template:Image label/sandbox"
(Difference between pages)
Jump to navigation
Jump to search
imported>Frietjes (adding Category:Pages using image label with a wide image and Category:Pages using image label with a tall image after finding a few pages where the image label was off the page (will tweak if this gives too many false positives)) |
imported>OwenBlacker (Added variable `background`, for which any non-null value will at a 50% white background to the text div with 2px of horizontal padding, to improve accessibility) |
||
Line 4: | Line 4: | ||
{{#if:{{{background|}}}|background-color: rgba(255, 255, 255, 0.5); padding: 0 2px;}} | {{#if:{{{background|}}}|background-color: rgba(255, 255, 255, 0.5); padding: 0 2px;}} | ||
left:{{#expr:{{{x|0}}}*{{#if:{{{scale|}}}|{{{scale}}}|400}}-6}}px; | left:{{#expr:{{{x|0}}}*{{#if:{{{scale|}}}|{{{scale}}}|400}}-6}}px; | ||
− | top:{{#expr:{{{y|0}}}*{{#if:{{{scale|}}}|{{{scale}}}|400}}-8}}px"> | + | top:{{#expr:{{{y|0}}}*{{#if:{{{scale|}}}|{{{scale}}}|400}}-8}}px;">{{{text}}}</div></includeonly><noinclude> |
{{Documentation|Template:Image label begin/doc}}</noinclude> | {{Documentation|Template:Image label begin/doc}}</noinclude> |