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
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!
{{documentation subpage}} {{div-based-template|class=.wst-block-left|classcount=1}} {{uses TemplateStyles|Template:Block left/styles.css}} ==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}} ==See also== * {{tl|block right}} * {{tl|left}} and {{tl|right}} * {{tl|float left}} and {{tl|float right}} <!-- template categories --> <includeonly> [[Category:Formatting templates]] [[Category:Special effects templates]] </includeonly>
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)
Pages included on this page:
Template:Block left
(
edit
)
Template:Block left/e
(
edit
)
Template:Block left/s
(
edit
)
Template:Block left/styles.css
(
edit
)
Template:Center
(
edit
)
Template:Center/e
(
edit
)
Template:Center/s
(
edit
)
Template:Center/styles.css
(
edit
)
Template:Class notice
(
edit
)
Template:Clear
(
edit
)
Template:Collapsible box/e
(
edit
)
Template:Collapsible box/s
(
edit
)
Template:Collapsible box/styles.css
(
edit
)
Template:Color
(
edit
)
Template:Div-based-template
(
edit
)
Template:Div end
(
edit
)
Template:Doc example
(
edit
)
Template:Doc example/e
(
edit
)
Template:Doc example/s
(
edit
)
Template:Doc example/styles.css
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Left
(
edit
)
Template:Main other
(
edit
)
Template:Mbox
(
edit
)
Template:Ombox
(
edit
)
Template:Optional style
(
edit
)
Template:Parameter
(
edit
)
Template:Reflist
(
edit
)
Template:Reflist/styles.css
(
edit
)
Template:Rule
(
edit
)
Template:Rule/styles.css
(
edit
)
Template:Sandbox other
(
edit
)
Template:Strong
(
edit
)
Template:Template link
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Uses TemplateStyles
(
edit
)
Template:Yesno
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:List
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Optional style
(
edit
)
Module:String
(
edit
)
Module:TNT
(
edit
)
Module:TableTools
(
edit
)
Module:Text
(
edit
)
Module:Text/data
(
edit
)
Module:Uses TemplateStyles
(
edit
)
Module:Uses TemplateStyles/config
(
edit
)
Module:Yesno
(
edit
)
Search
Search
Editing
Template
:
Block left/doc
Add languages
Add topic