Template:Outdent/doc

From RationalWiki
Jump to navigation Jump to search

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. (Copied from Wikipedia April 2010)

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

To indent, the reverse parameter can be specified as any string:

This is the previous post
{{Outdent|6|reverse=yes}}
::::::This is the second post, indented 6 levels

displays as

This is the previous post ────────────────────────────────────────────────────────────────────────────────────────────────────

This is the second post, indented 6 levels

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/vector.css, or formerly Special:MyPage/monobook.css):

span.outdent-template { display: none; }