Template:Outdent/doc: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "{{safesubset:msgnw:commons:outdent/doc}}{{Documentation}}")
 
No edit summary
Line 1: Line 1:
{{safesubset:msgnw:commons:outdent/doc}}{{Documentation}}
For outdenting a reply on a talk page when indention gets too deep.  Indenting on talk pages is done using a colon character (:) to produce tabs; this template produces a connector bar and initial text to indicate an outdent, based on the number of colons used in the previous indent.
=== Usage ===
 
To outdent posts, insert the number of colons that were used for indenting in the previous post, or use an integer value for that number.
 
<div style="border:thin blue solid; padding:8px; margin:4px"><pre>::::This is the previous post, indented 4 levels
{{Outdent|::::}}start of a new post</pre>
 
displays as
 
::::This is the previous post, indented 4 levels
{{Outdent|::::}}start of a new post</div>
 
<div style="border:thin blue solid; padding:8px; margin:4px"><pre>::::::This is the previous post, indented 6 levels
{{Outdent|6}}start of a new post</pre>
 
displays as
 
::::::This is the previous post, indented 6 levels
{{Outdent|6}}start of a new post</pre></div>
 
You can also have the template automatically add a linked tag, by adding any second parameter (its specific value is discarded):
 
<div style="border:thin blue solid; padding:8px; margin:4px"><pre>::::::This is the previous post, indented 6 levels
{{Outdent|6|link}}start of a new post</pre>
 
displays as
 
::::::This is the previous post, indented 6 levels
{{Outdent|6|link}}start of a new post</pre></div>
 
To not outdent all the way to the left margin, the outdent template itself can be indented using one or more colons:
<div style="border:thin blue solid; padding:8px; margin:4px">
<pre>::::::This is the previous post, indented 6 levels
::{{Outdent|4}}start of a new post</pre>
 
displays as
 
::::::This is the previous post, indented 6 levels
:{{Outdent|5}}start of a new post</pre></div>
 
Do not use subst: with this template.
 
This template is contained in the CSS class "outdent-template".  Users who would prefer not to see the template can add the following line to their custom CSS (by default: [[Special:MyPage/monobook.css]]):
 
:<nowiki>span.outdent-template { display: none; }</nowiki>'''
 
=== See also ===
 
{{Documentation|doc|[[commons:Outdent/doc]]}}
checkuser, Administrators
2,635

edits

Navigation menu