Difference between revisions of "ScreenThumb4"
From Sega Retro
(added trim) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="thumb {{#switch: {{{align}}} | left = tleft | right = tright | #default = tright}}" style="display: grid; gap: 0.25em; grid-template-rows: auto auto auto; grid-template-columns: auto auto; width: min-content;"> | <includeonly><div class="thumb {{#switch: {{{align}}} | left = tleft | right = tright | #default = tright}}" style="display: grid; gap: 0.25em; grid-template-rows: auto auto auto; grid-template-columns: auto auto; width: min-content;"> | ||
− | {{Bobscreen | {{trim|{{{1|}}} }} | width={{{width|}}} | height={{{height|}}} | forcewidescreen={{{forcewidescreen|}}}}} | + | {{Bobscreen | {{trim|{{{1|}}} }} | width={{{width|}}} | height={{{height|}}} | forcewidescreen={{{forcewidescreen|}}}|link={{{link|File:{{{1|}}}}}}}} |
− | {{Bobscreen | {{trim|{{{2|}}} }} | width={{{width|}}} | height={{{height|}}} | forcewidescreen={{{forcewidescreen|}}}}} | + | {{Bobscreen | {{trim|{{{2|}}} }} | width={{{width|}}} | height={{{height|}}} | forcewidescreen={{{forcewidescreen|}}}|link={{{link2|File:{{{2|}}}}}}}} |
− | {{Bobscreen | {{trim|{{{3|}}} }} | width={{{width|}}} | height={{{height|}}} | forcewidescreen={{{forcewidescreen|}}}}} | + | {{Bobscreen | {{trim|{{{3|}}} }} | width={{{width|}}} | height={{{height|}}} | forcewidescreen={{{forcewidescreen|}}}|link={{{link3|File:{{{3|}}}}}}}} |
− | {{Bobscreen | {{trim|{{{4|}}} }} | width={{{width|}}} | height={{{height|}}} | forcewidescreen={{{forcewidescreen|}}}}} | + | {{Bobscreen | {{trim|{{{4|}}} }} | width={{{width|}}} | height={{{height|}}} | forcewidescreen={{{forcewidescreen|}}}|link={{{link4|File:{{{4|}}}}}}}} |
<div class="thumbcaption" style="grid-column: span 2;>{{{5|}}}</div></div></includeonly><noinclude> | <div class="thumbcaption" style="grid-column: span 2;>{{{5|}}}</div></div></includeonly><noinclude> | ||
{{ScreenThumb4 | width=160 | {{ScreenThumb4 | width=160 | ||
Line 10: | Line 10: | ||
| Adventures of Batman and Robin MD, Villains, The Mad Hatter.png | | Adventures of Batman and Robin MD, Villains, The Mad Hatter.png | ||
| Adventures of Batman and Robin MD, Villains, Mr. Freeze.png | | Adventures of Batman and Robin MD, Villains, Mr. Freeze.png | ||
− | | Batman's rogues gallery}} | + | | Batman's rogues gallery |
+ | | link=The Adventures of Batman & Robin (Mega Drive)}} | ||
Formats four thumbnails in a grid with a caption. | Formats four thumbnails in a grid with a caption. | ||
Line 34: | Line 35: | ||
| height= | | height= | ||
| forcewidescreen= | | forcewidescreen= | ||
+ | | link= | ||
+ | | link2= | ||
+ | | link3= | ||
+ | | link4= | ||
</pre> | </pre> | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 21:58, 14 June 2024
Formats four thumbnails in a grid with a caption.
Uses Bobscreen thumbnails, so the aspect ratio is corrected.
Usage
{{ScreenThumb4 | width=160 | Adventures of Batman and Robin MD, Villains, The Joker.png | Adventures of Batman and Robin MD, Villains, Two-Face.png | Adventures of Batman and Robin MD, Villains, The Mad Hatter.png | Adventures of Batman and Robin MD, Villains, Mr. Freeze.png | Batman's rogues gallery}}
The positional arguments are the images and the caption.
The optional named arguments are:
| align= | width= | height= | forcewidescreen= | link= | link2= | link3= | link4=