Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Help
Introduction to techRepo
Quick links
Main site
GitHub
SNS
Instagram
LinkedIn
X (Twitter)
YouTube
Search
Search
English
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template
:
Block left/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Information about this page.
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Usage== This template places a block of text in the left of the page, without affecting the text alignment within that block. ;Comparison of {{tl|Block left}} and {{tl|left}} This template retains the current text alignment (usually left), but moves the entire block of text into the left. To change to left text alignment, use {{tl|left}} instead. :;Block left {{block left|{{center|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor.}} Aenean massa.}} :;left: {{left|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}} ===Parameter=== All parameters are optional. * {{parameter|class}} set block additional classes * {{parameter|width}} set the width of the block * {{parameter|offset}} set the distance ("indent") from the left margin * {{parameter|gutter}} set the gap between the normal content and the block * {{parameter|align}} set the internal alignment of the block * {{parameter|style}} add other kinds of style * {{parameter|body}} or {{parameter|1}} content of the block ==== Width ==== Where there is a requirement to fix the width of the block, an optional {{parameter|width}} parameter can be used. When the content is text, prefer text-relative units like ''em'' to absolute units like ''px''.<ref>See [[H:PXWIDTH]] for further details.</ref> {{doc example|content= <pre>{{block left|width=25em|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}}</pre> {{block left|width=25em|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}} }} ==== Align ==== To align the ''content'' of the left-aligned block within the block, an optional {{parameter|align}} parameter may be used: {{doc example|content= <pre>{{block left|align=center|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}}</pre> {{block left|align=center|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}} }} {{rule}} {{reflist}}
Summary:
Please note that all contributions to ARC Technical Repository may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TechRepo:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Template
:
Block left/doc
(section)
Add languages
Add topic