Template:Widepic: Difference between revisions
Shakey snake (talk | contribs) (Undo revision 20732 by Shakey snake (Talk)) |
Shakey snake (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class="thumb" style="border: 0; width:{{{ | <includeonly><div class="thumb" style="border: 0; width:{{{3|100%}}}; max-width:{{#expr:{{str sub|{{{2}}}|0|{{#expr:{{str find|{{{2}}}|px}} -1}}}} + 8}}px; margin-left: auto; margin-right:auto;"> | ||
<div class="overflowbugx" style="overflow:auto;">[[Image:{{{1}}}|{{{2}}}|alt={{{alt||}}}|{{{3|}}}]]</div></includeonly><noinclude> | <div class="overflowbugx" style="overflow:auto;">[[Image:{{{1}}}|{{{2}}}|alt={{{alt||}}}|{{{3|}}}]]</div></includeonly><noinclude> | ||
==Usage== | ==Usage== |
Revision as of 00:18, 18 April 2010
Usage
{{Widepic|img url|image width|box width|}}
The box width
option is optional, and if given a value in pixels followed by "px", or a value in percent followed by "%", will set the width of the box to that amount.