Difference between revisions of "Template:Image label"

From Baka-Tsuki
Jump to navigation Jump to search
Line 3: Line 3:
 
<div style="background-color: {{{svg-background-color|}}};">{{#if:{{{fullimage|}}}
 
<div style="background-color: {{{svg-background-color|}}};">{{#if:{{{fullimage|}}}
 
|{{{fullimage}}}
 
|{{{fullimage}}}
|[[File:{{{image|Example.png}}}{{#if:{{{thumb|}}}|{{!}}thumb}}|{{{width|400}}}px{{#ifeq:{{{link|File:}}}|File:||{{!}}link={{{link|}}}}}|alt={{{alt|}}}|{{{caption|}}}]]}}</div>
+
|[[File:{{{image}}}{{#if:{{{thumb|}}}|{{!}}thumb}}|{{{width|400}}}px{{#ifeq:{{{link|File:}}}|File:||{{!}}link={{{link|}}}}}|alt={{{alt|}}}|{{{caption|}}}]]}}</div>}}
|{{#if: {{{text|}}}
+
{{#if:{{{text|}}}
|<div style="font-size: smaller; line-height: 10px;"><div style="position:absolute;text-align:{{{text-align|center}}};left:{{#expr:{{{x|0}}}*{{{scale|1}}}-6}}px;top:{{#expr:{{{y|0}}}*{{{scale|1}}}-8}}px">{{{text}}}</div></div>
+
|<div style="font-size: smaller; line-height: 10px;"><div style="position:absolute;text-align:{{{text-align|center}}};left:{{#expr:{{{x|0}}}*{{{scale|1}}}-6}}px;top:{{#expr:{{{y|0}}}*{{{scale|1}}}-8}}px">{{{text}}}</div></div>}}
|{{#ifeq:{{{1}}}|end | </div> <br style="clear:both"/>}}}}}}
+
{{#ifeq:{{{1}}}|end | </div><br style="clear:both"/>-}}

Revision as of 01:29, 11 February 2015