Template:Outdent

From K6ka's Wiki
(Redirected from Template:Od)
Jump to navigation Jump to search

────────────────────────────────────────────────────────────────────────────────────────────────────

Template documentation (View · Edit · History · Purge)

Description[edit source]

For outdenting a reply on a talk page when indention gets too deep. Indenting on talk pages is done using a colon character (:); 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[edit source]

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.
For example:
::::This is the previous post, indented 4 levels
{{Outdent|::::}} Start of a new post
Shows up as:
This is the previous post, indented 4 levels

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

You can also add a second parameter. Inserting anything into the second parameter will cause a link to pop up, indicating that the line is an outdent.
For example:
:::::This is the previous post, indented 5 levels
{{Outdent|::::|Link}} Start of a new post
Shows up as:
This is the previous post, indented 4 levels

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

You may also use the shortcut {{od}} to add the template. E.g. {{od|:::::|Link}}
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.
This template must be transcluded, as shown above. Do not substitute the template (e.g. {{subst:outdent|3|Link}}).

Credits[edit source]

This template's code was stolen (ahem, borrowed) from the template of the same name on Wikipedia, viewable here (authors).

Visit Template:Outdent/doc to edit this text! (How does this work?) (Refresh this text - why?)