Difference between revisions of "Template:Rextthumb"

From The Wiki Camp 2
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#css:.extimg img{cursor:default}
+
<includeonly>{{#css:.extimg img{cursor:default}.extimg .extimg-container img{width:100%;height:100%}.extimg .thumbinner{padding-right: 4px;word-break:break-word}}<span class="extimg">{{#ifeq:{{{thumb|}}}|true|{{#css:html .thumbinner img {background-color:#fff;border:1px solid #c8ccd1;}}<div class="thumb {{#switch:{{{float}}}|right=tright|left=tleft|#default=tright}}"><div class="thumbinner" style=width:min-content>|}}<div class="extimg-container" style="width:{{{2|auto}}};height:{{{3|auto}}};position:relative">{{{1}}}</div>{{#ifeq:{{{thumb|}}}|true|<div class="thumbcaption">{{{caption|}}}</div></div></div>|}}</span></includeonly><noinclude>
.extimg .thumbinner img {
 
width: 100%;
 
height: 100%;
 
}
 
.extimg .thumbinner {
 
padding-right: 4px;
 
}
 
}}<span class="extimg">{{#ifeq:{{{thumb|}}}|true|{{#css:html .thumbinner img {background-color:#fff;border:1px solid #c8ccd1;}}<div class="thumb {{#switch:{{{float}}}|right=tright|left=tleft|#default=tright}}"><div class="thumbinner" style=width:min-content>|}}<div class="extimg-container" style="width:{{{2|auto}}};height:{{{3|auto}}};position:relative">{{{1}}}</div>{{#ifeq:{{{thumb|}}}|true|<div class="thumbcaption">{{{caption|}}}</div></div></div>|}}</span></includeonly><noinclude>
 
 
This is a template for resizing external images. It takes three arguments; first is the link to the media, second is the width in pixels, the third is the height in pixels. You can also put it in a frame using <code>thumb=true</code>. To add a caption, set <code>caption=</code>; to set the float, use <code>float=</code>.
 
This is a template for resizing external images. It takes three arguments; first is the link to the media, second is the width in pixels, the third is the height in pixels. You can also put it in a frame using <code>thumb=true</code>. To add a caption, set <code>caption=</code>; to set the float, use <code>float=</code>.
  

Latest revision as of 22:49, 7 June 2024

This is a template for resizing external images. It takes three arguments; first is the link to the media, second is the width in pixels, the third is the height in pixels. You can also put it in a frame using thumb=true. To add a caption, set caption=; to set the float, use float=.

Bouncywikilogo.gif
Bouncywikilogo.gif
left floated test test test lon long long caption
Bouncywikilogo.gif
right floated