Template:Outdent/doc

From The Sims Wiki, a collaborative database for The Sims series
This is an old revision of this page, as edited by K6ka (talk | contribs) at 18:11, 23 February 2019 (2 revisions imported: Import from https://sims.wikia.com). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Jump to navigation Jump to search
Description
For outdenting a reply on a talk page when indention gets too deep. Indenting on talk pages is done using a colon character (:) (Source mode editor) or via the "Indent" button (Rich Text Editor); 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.
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
This template's code was stolen (ahem, borrowed) from the template of the same name on Wikipedia, viewable here (authors).