Difference between revisions of "Template:Lightbox"
From Ogame Wiki - Preview (mw1.22)
[checked revision] | [checked revision] |
(9 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | <div class="thumb t{{{position|left}}}"><div class="thumbinner" style="width: | + | <div class="thumb t{{{position|left}}}"><div class="thumbinner" style="width:{{#expr:{{{size|180}}}+2}}px;"><a href="{{FILEPATH:{{{image}}}}}" class="images" rel="lightbox{{#if:{{{group|}}}|[{{{group}}}]}}" title="{{{title}}}">[[File:{{{image}}}|{{{size|180}}}px|{{#if:{{{title|}}}|{{{title}}}|Picture}}|link=]]</a><div class="thumbcaption">{{{title}}}</div></div></div><noinclude> |
Usage: | Usage: | ||
− | <pre><nowiki>{{Lightbox|image=Imagename|title=Image title|position=[left|right]}}</nowiki></pre> | + | <pre><nowiki>{{Lightbox|image=Imagename|title=Image title|position=[left|right]|size=200|group=Groupname}}</nowiki></pre> |
</noinclude> | </noinclude> |
Latest revision as of 20:24, 4 December 2010
Usage:
{{Lightbox|image=Imagename|title=Image title|position=[left|right]|size=200|group=Groupname}}