Difference between revisions of "ScreenThumb3"

From Sega Retro

(Created page with "<includeonly><div class="thumb {{#switch: {{{align}}} | left = tleft | right = tright | #default = tright}}" style="align-items: center; display: flex; flex-direction: column;...")
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly><div class="thumb {{#switch: {{{align}}} | left = tleft | right = tright | #default = tright}}" style="align-items: center; display: flex; flex-direction: column; gap: 0.25em; width: min-content;">
 
<includeonly><div class="thumb {{#switch: {{{align}}} | left = tleft | right = tright | #default = tright}}" style="align-items: center; display: flex; flex-direction: column; gap: 0.25em; width: min-content;">
{{Bobscreen | {{{1|}}} | width={{#if: {{{width|160}}} | {{#expr: {{{width|160}}} * 2}} | }} | height={{#if: {{{height|120}}} | {{#expr:{{{height|120}}} * 2}} | }} | forcewidescreen={{{forcewidescreen|}}}}}
+
{{Bobscreen | {{trim|{{{1|}}} }} | width={{#if: {{{width|}}} | {{#expr: {{{width|160}}} * 2}} | }} | height={{#if: {{{height|}}} | {{#expr:{{{height|120}}} * 2}} | }} | forcewidescreen={{{forcewidescreen|}}}|link={{{link|File:{{{1|}}}}}}}}
<div style="display: flex; gap: 0.25em;">{{Bobscreen | {{{2|}}} | width={{{width|160}}} | height={{{height|120}}} | forcewidescreen={{{forcewidescreen|}}}}}
+
<div style="display: flex; gap: 0.25em;">{{Bobscreen | {{trim|{{{2|}}} }} | width={{{width|160}}} | height={{{height|120}}} | forcewidescreen={{{forcewidescreen|}}}|link={{{link2|File:{{{2|}}}}}}}}
{{Bobscreen | {{{3|}}} | width={{{width|160}}} | height={{{height|120}}} | forcewidescreen={{{forcewidescreen|}}}}}</div>
+
{{Bobscreen | {{trim|{{{3|}}} }} | width={{{width|160}}} | height={{{height|120}}} | forcewidescreen={{{forcewidescreen|}}}|link={{{link3|File:{{{3|}}}}}}}}</div>
 
<div class="thumbcaption" style="align-self: start;">{{{4|}}}</div></div></includeonly><noinclude>
 
<div class="thumbcaption" style="align-self: start;">{{{4|}}}</div></div></includeonly><noinclude>
{{ScreenThumb3 | width=120 | Star Wars Chess, Chessboard.png | Star Wars Chess, 2D Chessboard.png | Star Wars Chess, Options.png | Chessboards and options}}
+
{{ScreenThumb3 | width=120
 +
| Star Wars Chess, Chessboard.png
 +
| Star Wars Chess, 2D Chessboard.png
 +
| Star Wars Chess, Options.png
 +
| Chessboards and options
 +
| link3=Star Wars Chess}}
  
 
Formats three thumbnails in a grid with a caption.
 
Formats three thumbnails in a grid with a caption.
Line 27: Line 32:
 
| height=
 
| height=
 
| forcewidescreen=
 
| forcewidescreen=
 +
| link=
 +
| link2=
 +
| link3=
 
</pre>
 
</pre>
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 21:56, 14 June 2024

Star Wars Chess, Chessboard.png

Star Wars Chess, 2D Chessboard.png

Star Wars Chess, Options.png

Chessboards and options

Formats three thumbnails in a grid with a caption.

Uses Bobscreen thumbnails, so the aspect ratio is corrected.

Usage

{{ScreenThumb3 | width=120
| Star Wars Chess, Chessboard.png
| Star Wars Chess, 2D Chessboard.png
| Star Wars Chess, Options.png
| Chessboards and options}}

The positional arguments are the images and the caption.

The optional named arguments are:

| align=
| width=
| height=
| forcewidescreen=
| link=
| link2=
| link3=