Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Guild of Archivists
Search
Editing
Template:Block indent/doc
(section)
From Guild of Archivists
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit source
History
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 block-indents the value that is supplied to it. This is similar to block quotation, but it uses the HTML {{tag|div}} element, instead of [[Semantic HTML|semantically abusing]] the {{tag|blockquote}} element. <code><nowiki>{{block indent |1=</nowiki>{{var|The material to be indented here. May include markup, paragraph breaks, etc.}}<nowiki>}}</nowiki></code> The default display differs from the block quotation template {{tl|Quote}} in that it does not: * introduce whitespace margins above or below the indented material (just add a blank line above and/or below manually); nor * indent from the right as well as the left (there is an optional parameter for this); nor * (on mobile) bookend the block with large quotation marks. It also does not support that other template's attribution parameters (since it isn't for quotations). ===Example=== {{tlx|block indent |1{{=}}{{tl|Lorem}}}} produces: {{block indent |1={{Lorem}}}} ===Parameters=== {{para|1}} a.k.a. {{para|text}} The material to be indented. {{strong|It is always safest to explicitly define this with <code>1=</code>, not as an unnamed parameter}}, because any occurrence (e.g. in a URL, template, etc.) of the <code>=</code> character will break the template without it. {{para|left}} a.k.a. {{para|em}} the value (e.g. <kbd>0.1</kbd> or <kbd>7</kbd>) in [[Em (unit)|<code>em</code> units]] by which to indent the material from the left; defaults to <code>3</code> {{para|right}} the value, also in <code>em</code>, by which to indent the material from the right; defaults to <code>0</code> (use <kbd>7</kbd> to match the default left indentation) {{para|style}} arbitrary CSS declarations, e.g. <code>font-size: 95%;</code>. This parameter should not normally be needed. Note: It already includes <code>overflow: hidden;</code> by default, to avoid collision of the div's background with floating elements. {{para|class}} any CSS class names (e.g. as defined at [[MediaWiki:Common.css]]), comma-separated if more than one. This parameter should not normally be needed. === Comparison with {{tl|Quote}} (block quotation) === {| class="wikitable" ! {{PAGENAME}} !! {{tl|Quote}} |- | width="50%"| <code><nowiki>{{lorem}}{{block indent|1={{lorem}}}}{{lorem}}</nowiki></code> | width="50%"| <code><nowiki>{{lorem}}{{quote|1={{lorem}}}}{{lorem}}</nowiki></code> |- | {{lorem}}{{block indent|1={{lorem}}}}{{lorem}} | {{lorem}}{{quote|1={{lorem}}}}{{lorem}} |}
Summary:
Please note that all contributions to Guild of Archivists 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
GoArch:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main Page
Random page
Categories
All pages
Recent changes
Resources
D'ni dictionary
Reference material
Utilities
Community
Forums
Jalak Game Directory
Projects
Apocrypha
Unexplored Branches
All projects
Contribute
Stubs
Wanted
Cleanup
Dead ends
Image requested
Help
Help
Guide
Policies
Wiki tools
Wiki tools
Special pages
Page values
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs