Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
- The following documentation is located at Teamplaid:Block indent/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions
This template block-indents the value that is supplied to it. This is similar to block quotation, but it uses the HTML <div>...</div> element, instead of [w:en:Semantic HTML|semantically abusing]] the <blockquote>...</blockquote> element, which is only for [w:en:block quotation]]s. It is also preferred over semantically abusing a colon at the start of the line, which should be used only for [w:en:MOS:DEFLIST|description lists]].
{{Block indent |1=The material to be indented here. May include markup, paragraph breaks, etc.}}
The default display differs from the block quotation template {{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
- affect the font size of its contents; nor
- (on mobile) bookend the block with large quotation marks.
- support that other template's attribution parameters (since it isn't for quotations).
- support plain blank-line paragraph breaks inside it.
Both templates support paragraph breaks using <p>...</p> around second and subsequent paragraphs, as well as other HTML markup, and it is always safest to explicitly format with HTML rather than rely on MediaWiki's parser to do the right thing, as its behavior may be altered at any time by the developers.
{{Block indent |1={{Lorem ipsum}}}}
produces:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|1= a.k.a. |text= The material to be indented. {{{1}}}, because any occurrence (e.g. in a URL, template, etc.) of the = character will break the template without it.
|left= a.k.a. |em= the value (e.g. 0.1 or 7) in [w:en:Em (typography)|em units]] by which to indent the material from the left; defaults to 3
|right= the value, also in em, by which to indent the material from the right; defaults to 0 (use 7 to match the default left indentation)
|style= arbitrary CSS declarations, e.g. font-size: 95%;. This parameter should not normally be needed. Note: It already includes overflow: hidden; by default, to avoid collision of the div's background with floating elements.
|class= any CSS class names (e.g. as defined at [w:en:MediaWiki:Common.css]]), comma-separated if more than one. This parameter should not normally be needed.
| {{Block indent}}
|
{{Quote}}
|
{{Lorem ipsum}}{{Block indent|1={{Lorem ipsum}}<p>{{Lorem ipsum}}</p>}}{{Lorem ipsum}}
|
{{Lorem ipsum}}{{Quote|1={{Lorem ipsum}}<p>{{Lorem ipsum}}</p>}}{{Lorem ipsum}}
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
Crìochan teicnigeach - Technical limitations
[deasaich]
Teamplaid:Block bug documentation
Faic cuideachd - Also see
- {{Indent}}, which indents a single line, after a newline, using a mixture of en- and em-dash sized spaces.
- {{Spaces}}, which indents a single line (or content inline in one) uses non-breaking spaces.
- {{In5}}, which indents a single line (or content inline in one), skipping up to fifty equal en-sized spaces.
- {{Quote}}, the block quotation template
- {{Hanging indent}}, the block hanging indent template
|
|---|
| Template | Example output | Use
|
|---|
{{Strong}} | Important! | To indicate <strong> importance, seriousness, or urgency instead of just simple typographical boldfacing
| {{Strongbad}} | "Never use ..." | Same as {{Strong}} but in red
| {{Stronggood}} | "Only use ..." | Same as {{Strong}} but in green
| {{Em}} | "An emphatic phrase" | To indicate <Em> stress emphasis (not just purely typographical italicization like for book titles or foreign terms)
| {{Var}} | strPrefix | To indicate text is a variable name. Use for any variable names except those including "I" (uppercase i) and/or "l" (lowercase L); for these, {{Varserif}} should be used to ensure a noticeable distinction
| {{Varserif}} | strIllustratePrefix | (see {{Var}} above)
| {{Tld}} | {{DEFAULTSORT:Y, X}} | To display wikicode variables and magic words as they would appear in code
| {{Para}} | |year=2008 | To display template parameters with or without values
| {{param}} | {{{title|alt}}}
| To display parameters as used in code (i.e. with triple braces), especially to indicate relationships between them. May be combined with {{Para}} above
| {{Tlx}} etc. | {{Template|1|2|...|10}} | To display a template call (with or without parameters and values) as code
| {{Tag}} | "The <img>...</img> tags ..." | To render HTML elements ("tags") in prose
| {{Code}}/{{Codett}} | "Ensure the alt= parameter ..." | To indicate text is source code. To nest other templates within {{Code}}, use <Code>...</Code>. {{Codett}} differs only in styling: someMethod becomes someMethod
| {{subst:codenowiki}} | {{Small|small text}} | To wrap example code in <code><nowiki>...</nowiki></code>
| {{subst:kbdnowiki}} | {{big|big text}} | To wrap example code in <kbd><nowiki>...</nowiki></kbd>
| {{Syntaxhighlight}} | [this is a block template] | ( or {{Sxhl}} ) Wrapper for <syntaxhighlight>...</syntaxhighlight>, but will wrap overflowing text
| {{Deprecated code}} | "Do not use <blink>." | ( or {{Deprecated code}} ) To indicate deprecated source code in template documentation, articles on HTML specs, etc. The {{Dc2}} variant uses strike-through (<blink>) while {{Dcr}} uses red (<blink>).
| {{Pre}} | [this is a block template] | For larger blocks of source code and other Pre-formatted text
| {{Quote}} | [this is a block template] | For block quotations (only – never for non-quotations)
| {{Block indent}} | [this is a block template] | For indented blocks of material; visually identical to {{Quote}} but without quote markup
| {{Kbd}} | user input | To indicate user input
| {{Key press}} | Ctrl+x | To indicate specific-keystroke input, including combinations
| {{Key top}} | Left shift | Similar; includes more symbols, but does not directly support combinations
| {{PlayStation key press}} | □ | To indicate PlayStation-style gamepad key presses
| {{Button}} | Don't save | To indicate a button in a user interface
| {{Samp}} | example output | To indicate sample or example output
|
|