Template:Outdent/doc: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
'''Template:Outdent/doc''' — this {{tag|Documentation templates|documentation template}} is used for 'outdenting' a reply on a [[talk page]] when the existing indention gets too deep.  Indenting on talk pages is done using a colon character (<code>:</code>) at the start of a new paragraph to produce the effect of tabs.  This [[Template:Outdent|outdent template]] produces a dog-leg 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.  


===Usage===
To outdent posts, insert the number of colons (after a 'pipe') 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
<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>
{{Outdent|::::}}start of a new post, aligned to the left margin</pre>


displays as  
''displays as:''


::::This is the previous post, indented 4 levels
::::This is the previous post, indented 4 levels
{{Outdent|::::}}start of a new post</div>
{{Outdent|::::}}start of a new post, aligned to the left margin</div>


<div style="border:thin blue solid; padding:8px; margin:4px"><pre>::::::This is the previous post, indented 6 levels
<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>
{{Outdent|6}}start of a new post, aligned to the left margin</pre>


displays as  
''displays as:''


::::::This is the previous post, indented 6 levels
::::::This is the previous post, indented 6 levels
{{Outdent|6}}start of a new post</pre></div>
{{Outdent|6}}start of a new post, aligned to the left margin</div>
 
<br>
You can also have the template automatically add a linked tag, by adding any second parameter (its specific value is discarded):
You can also have this 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
<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>
{{Outdent|6|link}}start of a new post, aligned to the left margin</pre>


displays as  
''displays as:''


::::::This is the previous post, indented 6 levels
::::::This is the previous post, indented 6 levels
{{Outdent|6|link}}start of a new post</pre></div>
{{Outdent|6|link}}start of a new post, aligned to the left margin</div>
 
<br>
To not outdent all the way to the left margin, the outdent template itself can be indented using one or more colons:
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">
<div style="border:thin blue solid; padding:8px; margin:4px"><pre>::::::This is the previous post, indented 6 levels
<pre>::::::This is the previous post, indented 6 levels
::{{Outdent|4}}start of a new post, indented 2 levels</pre>
::{{Outdent|4}}start of a new post</pre>


displays as
''displays as:''


::::::This is the previous post, indented 6 levels
::::::This is the previous post, indented 6 levels
:{{Outdent|5}}start of a new post</pre></div>
::{{Outdent|4}}start of a new post, indented 2 levels</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]]):
Do <u>not</u> use <tt>subst:</tt> with this template.


:<nowiki>span.outdent-template { display: none; }</nowiki>'''
This template is contained in the [[:Category:Cascading Style Sheets|CSS]] class 'outdent-template'.  [[User]]s who would prefer not to see the template can add the following line to their custom CSS (by default: [[Special:MyPage/monobook.css]]):


=== See also ===
:<code><nowiki>span.outdent-template { display: none; }</nowiki></code>


===See also===
{{Documentation|doc|[[commons:Outdent/doc]]}}
{{Documentation|doc|[[commons:Outdent/doc]]}}

Latest revision as of 13:18, 4 June 2021

Template:Outdent/doc — this documentation template is used for 'outdenting' a reply on a talk page when the existing indention gets too deep. Indenting on talk pages is done using a colon character (:) at the start of a new paragraph to produce the effect of tabs. This outdent template produces a dog-leg connector bar and initial text to indicate an outdent, based on the number of colons used in the previous indent.

Usage[edit]

To outdent posts, insert the number of colons (after a 'pipe') that were used for indenting in the previous post, or use an integer value for that number.

::::This is the previous post, indented 4 levels
{{Outdent|::::}}start of a new post, aligned to the left margin

displays as:

This is the previous post, indented 4 levels
┌─────────────┘
start of a new post, aligned to the left margin
::::::This is the previous post, indented 6 levels
{{Outdent|6}}start of a new post, aligned to the left margin

displays as:

This is the previous post, indented 6 levels
┌───────────────────┘
start of a new post, aligned to the left margin


You can also have this template automatically add a linked tag, by adding any second parameter (its specific value is discarded):

::::::This is the previous post, indented 6 levels
{{Outdent|6|link}}start of a new post, aligned to the left margin

displays as:

This is the previous post, indented 6 levels
┌───────────────────┘
(outdent
start of a new post, aligned to the left margin


To not outdent all the way to the left margin, the outdent template itself can be indented using one or more colons:

::::::This is the previous post, indented 6 levels
::{{Outdent|4}}start of a new post, indented 2 levels

displays as:

This is the previous post, indented 6 levels
┌─────────────┘
start of a new post, indented 2 levels


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):

span.outdent-template { display: none; }

See also[edit]


This is the user documentation sub-page for this Template:doc template. This WMF imported template was copied (or imported) from an existing template of the same (or similar) name as this, in accordance with the terms of their respective license(s), at either the English Wikipedia (En.Wp), Wikimedia Meta-Wiki ('Meta'), Wikimedia Commons ('Commons'), or other Wikimedia Foundation (WMF) wiki site; as found at commons:Outdent/doc.