Difference between revisions of "Thumb"

From Sega Retro

(added align attribute for floating to the left, defaults to right)
(added width: min-content so that long captions wrap)
 
Line 1: Line 1:
<div class="thumb {{#switch: {{{align}}} | left = tleft | right = tright | #default = tright}}"><div class="thumb inner">{{{1|}}}</div><div class="thumbcaption" style="max-width:{{{width|320}}}px !important;">{{{2|}}}</div></div><noinclude>
+
<div class="thumb {{#switch: {{{align}}} | left = tleft | right = tright | #default = tright}}" style="width: min-content;"><div class="thumb inner">{{{1|}}}</div><div class="thumbcaption">{{{2|}}}</div></div><noinclude>
 +
A means of making anything a thumbnail.
  
A means of making anything a thumbnail.
 
 
<pre>{{Thumb|CONTENT|CAPTION}}</pre>
 
<pre>{{Thumb|CONTENT|CAPTION}}</pre>
  
 
{{Thumb|CONTENT|CAPTION}}
 
{{Thumb|CONTENT|CAPTION}}
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 14:49, 19 April 2022

A means of making anything a thumbnail.

{{Thumb|CONTENT|CAPTION}}
CONTENT
CAPTION