Template:Side caption: Difference between revisions

From Tears of Themis Wiki
No edit summary
No edit summary
 
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><div style="display:flex"><div style="padding: 0.5em; {{#switch: {{{center|}}} | left | both = text-align:center;}}">{{{left|{{{1|}}}}}}</div>
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><div style="display:flex"><div style="flex: 0 0 auto; padding: 0.5em; {{#switch: {{{center|}}} | left | both = text-align:center;}}">{{{left|{{{1|}}}}}}</div>
<div style="padding: 0.5em; {{#switch: {{{center|}}} | right | both = text-align:center;}}">{{{right|{{{2|}}}}}}</div></div></includeonly>
<div style="padding: 0.5em; {{#switch: {{{center|}}} | right | both = text-align:center;}}">{{{right|{{{2|}}}}}}</div></div></includeonly>

Latest revision as of 05:48, 14 February 2023

Template-info.png Documentation

Description[edit source]

Simple template for putting two things beside each other via flex. Likely for captioning an image with a text blurb large enough to make a top or bottom caption.

Usage[edit source]

{{Side caption
|                            (left side text)
|                            (right side text)
|center=                     (optional; valid values are "left" "right" or "both")
}}

Example[edit source]

{{Side caption
|[[File:Marius ~Lili Du-Dada~.png|100px]]<br />This is a note
|This is a side caption.
|center=left
}}
Marius ~Lili Du-Dada~.png
This is a note
This is a side caption.