Difference between revisions of "Template:Leftblock/doc"

From blackwiki
Jump to navigation Jump to search
imported>RexxS
m (typo)
imported>WOSlinker
(add cat)
 
Line 24: Line 24:
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
+
[[Category:Positioning templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 18:06, 14 December 2020

This template creates a block-level element (<div>...</div>) that forces left-alignment on the text within it. It is useful for left-aligning long captions and similar elements that are styled with centred text by default.

Usage

  • {{Leftblock|This text is left-aligned.}}
This text is centred.
This text is left-aligned.
This text is centred.

In an infobox

200px
Lorem ipsum dolor sit amet, eos tota meis forensibus in, quo cu nisl sumo alterum, vel novum putent mollis eu. Qui eu verear prompta, agam facilis eos ex, cu sed oblique scaevola mediocrem.
  • | caption = {{Leftblock|Lorem ipsum dolor sit amet, eos tota meis forensibus in, quo cu nisl sumo alterum, vel novum putent mollis eu. Qui eu verear prompta, agam facilis eos ex, cu sed oblique scaevola mediocrem.}}

See also