Template:Side caption: Difference between revisions

From Tears of Themis Wiki
(Created page with "<noinclude>{{doc}}Category:Templates</noinclude><includeonly><div style="display:flex"><div style="padding: 0.5em">{{{1|}}}</div> <div style="padding: 0.5em">{{{2|}}}</div></div></includeonly>")
 
No edit summary
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><div style="display:flex"><div style="padding: 0.5em">{{{1|}}}</div>
<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>
<div style="padding: 0.5em">{{{2|}}}</div></div></includeonly>
<div style="padding: 0.5em; {{#switch: {{{center|}}} | right | both = text-align:center;}}">{{{right|{{{2|}}}}}}</div></div></includeonly>

Revision as of 05:31, 14 February 2023

Template-info.png Documentation

Description

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

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

Example

{{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.