Template:Outdent/doc: Difference between revisions

From MC Public Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision: outdent template)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{doc/start}}
{{Documentation subpage}}
Used on talk pages, when 8 replies have been made (<code><nowiki>::::::::</nowiki></code>), add another line with the text <code><nowiki>{{outdent|::::::::}}</nowiki></code>.
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{doc/end}}<noinclude>
{{Template shortcut|od}}
[[fr:Modèle:Retour/doc]]
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.
</noinclude>
=== 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
</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
</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|4}} Start of a new post
</div>
 
The template supports up to 20 colons as a parameter, but supports any given integer. Values above 40 may show a separated line though.
 
The default number of colons is 10. 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 ([[Special:MyPage/common.css]]):
 
:<code>span.outdent-template { display: none; }</code>
 
=== See also ===
* [[WP:INDENT]]
* {{tl|Outdent2}}
* {{tl|Undent}}
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Talk namespace templates]]
 
</includeonly>

Latest revision as of 18:59, 9 August 2013

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.

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

displays as

This is the previous post, indented 4 levels

──────────────────────────────────────────────────────────────────────────────────────────────────── Start of a new post

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

displays as

This is the previous post, indented 6 levels

──────────────────────────────────────────────────────────────────────────────────────────────────── Start of a new post

You can also have the 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

displays as

This is the previous post, indented 6 levels

────────────────────────────────────────────────────────────────────────────────────────────────────(outdent) Start of a new post

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

displays as

This is the previous post, indented 6 levels
──────────────────────────────────────────────────────────────────────────────────────────────────── Start of a new post

The template supports up to 20 colons as a parameter, but supports any given integer. Values above 40 may show a separated line though.

The default number of colons is 10. 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 (Special:MyPage/common.css):

span.outdent-template { display: none; }

See also