Difference between revisions of "Template:Image label"
Jump to navigation
Jump to search
LiTTleDRAgo (talk | contribs) (~) |
LiTTleDRAgo (talk | contribs) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#if: |
+ | {{#if:{{{image|}}}{{{fullimage|}}} |
− | |<div style="width: |
+ | |<div style="width:{{{width|400}}}px;float:{{{float|none}}};margin:{{{margin|none}}};padding:{{{padding|none}}}; |
+ | border:{{{border|none}}};clear:{{{float|none}}};background-color:{{{background-color|#ffffff}}};position:relative;"> |
||
− | <div style="background-color: {{{svg-background-color|}}};">{{#if:{{{fullimage|}}} |
||
− | + | <div style="background-color:{{{svg-background-color|}}};">{{#if:{{{fullimage|}}} |
|
− | |[[File:{{{image |
+ | |{{{fullimage}}}|[[File:{{{image}}}{{#if:{{{thumb|}}}|{{!}}thumb}}|{{{width|400}}}px{{#ifeq:{{{link|File:}}}|File:||{{!}}link={{{link|}}}}}|alt={{{alt|}}}|{{{caption|}}}]]}}</div>}}{{#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>}}{{#ifeq:{{{1}}}|end | </div><br style="clear:both"/>}} |
− | |{{#if: {{{fullimage|}}} |
||
− | |<div style="width: {{{width|400}}}px; float: {{{float|none}}}; margin: {{{margin|none}}}; padding: {{{padding|none}}}; border: {{{border|none}}}; clear: {{{float|none}}}; background-color: {{{background-color|#ffffff}}}; position: relative;"> |
||
− | <div style="background-color: {{{svg-background-color|}}};">{{#if:{{{fullimage|}}} |
||
− | |{{{fullimage}}} |
||
− | |[[File:{{{image|Example.png}}}{{#if:{{{thumb|}}}|{{!}}thumb}}|{{{width|400}}}px{{#ifeq:{{{link|File:}}}|File:||{{!}}link={{{link|}}}}}|alt={{{alt|}}}|{{{caption|}}}]]}}</div><noinclude></div></noinclude> |
||
− | |{{#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> |
||
− | |{{#if: {{{end|}}} | </div> }}}}}}}} |
||
− | |||
− | <noinclude> |
||
− | '''Example''' |
||
− | |||
− | <nowiki>{{Image label|image=CtG vol 1 00012.jpeg|width=400|float=left|margin=0.4em 0pt 1.3em 1.3em|link=|alt=}} |
||
− | {{Image label|x=100|y=530|text= |
||
− | <span style="color:white; align:center; text-shadow: -1px -1px 0px rgba(255,255,255,0.3), 1px 1px 0px rgba(0,0,0,0.8);;"> |
||
− | “…......Really? <br>Then why do you looks strangely happy recently?”</span>}} |
||
− | {{Image label|end=1}}</nowiki> |
||
− | |||
− | '''Result''' |
||
− | |||
− | {{Image label|image=CtG vol 1 00012.jpeg|width=400|float=left|margin=0.4em 0pt 1.3em 1.3em|link=|alt=}} |
||
− | {{Image label|x=100|y=530|text= |
||
− | <span style="color:white; align:center; text-shadow: -1px -1px 0px rgba(255,255,255,0.3), 1px 1px 0px rgba(0,0,0,0.8);;"> |
||
− | “…......Really? <br>Then why do you looks strangely happy recently?”</span>}} |
||
− | {{Image label|end=1}} |
||
− | </noinclude> |