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 right/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}} {{uses TemplateStyles|Template:Block right/styles.css}} ==Usage== This template places a block of text in the right of the page, without affecting the text alignment within that block. ;Comparison of <nowiki>{{Block right}}</nowiki> and <nowiki>{{right}}</nowiki> This template retains the current text alignment (usually left), but moves the entire block of text into the right. To change to right text alignment, use {{tl|right}} instead. :;Block right {{block right|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}} :;Right: {{right|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}} ===Parameters=== All parameters are optional. * {{parameter|width}} set the width of the block * {{parameter|offset}} set the distance ("indent") from the right margin * {{parameter|gutter}} set the gap between the normal content and the block * {{parameter|align}} set the internal alignment of the block * {{parameter|collapse}} remove gaps between paragraphs inside the block * {{parameter|style}} add other kinds of style ==== Width ==== Where there is a requirement to fix the width of the block, an optional {{parameter|width}} parameter can be used. Avoid ''px'' units and prefer a text-relative unit such as ''em'' when the content is textual<ref>See [[H:PXWIDTH]] for further details.</ref>. {{doc example|content= <pre>{{block right|width=25em|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}}</pre> {{block right|width=25em|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}} }} ==== Offset ==== To offset the entire block back from the right margin, an optional {{parameter|offset}} parameter may be used: {{doc example|content= <pre>{{block right|offset=4em|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}}</pre> {{block right|offset=4em|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}} }} ==== Gutter ==== To specify the gap between normal content and the right-floated content, use the {{parameter|gutter}} parameter: {{doc example|content= <pre> {{block right | width=50% | gutter=10em | align=center | [[File:Traffic-signs-manual-chapter-3-diagram 622-2 (2008).svg]] }} {{lorem ipsum}} </pre> {{block right | width=50% | gutter=10em | align=center |[[File:Traffic-signs-manual-chapter-3-diagram 622-2 (2008).svg]] }} {{lorem ipsum}} {{-}} }} ==== Align ==== To align the ''content'' of the right-aligned block within the block, an optional {{parameter|align}} parameter may be used: {{doc example|content= <pre>{{block right|align=center|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}}</pre> {{block right|align=center|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}} }} ==== Collapse ==== To remove vertical spacing between paragraphs inside the block (for example, when you want a centered line, and the right-aligned line<ref>Common in some signature blocks</ref>), the {{parameter|collapse}} parameter may be used: {{doc example|content= <pre> {{lorem ipsum}} {{block right|collapse=y|width=20em| {{center|Centered text goes here}} Left-aligned text goes here {{right|Right-aligned text goes here}} }}</pre> {{lorem ipsum}} {{block right|collapse=y|width=20em| {{center|Centered text goes here}} Left-aligned text goes here {{right|Right-aligned text goes here}} }} }} {{rule}} {{reflist}} <!-- template categories and interwiki links --> <includeonly> [[Category:Formatting 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:-
(
edit
)
Template:Block right
(
edit
)
Template:Block right/e
(
edit
)
Template:Block right/s
(
edit
)
Template:Block right/styles.css
(
edit
)
Template:Center
(
edit
)
Template:Center/e
(
edit
)
Template:Center/s
(
edit
)
Template:Center/styles.css
(
edit
)
Template:Clear
(
edit
)
Template:Collapsible box/e
(
edit
)
Template:Collapsible box/s
(
edit
)
Template:Collapsible box/styles.css
(
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:Lorem ipsum
(
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:Right
(
edit
)
Template:Right/e
(
edit
)
Template:Right/s
(
edit
)
Template:Right/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:Error
(
edit
)
Module:Greek
(
edit
)
Module:Lang
(
edit
)
Module:List
(
edit
)
Module:Lorem ipsum
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Namespace other
(
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:Wikt
(
edit
)
Module:Yesno
(
edit
)
Search
Search
Editing
Template
:
Block right/doc
Add languages
Add topic