Template:Outdent/doc: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>K6ka
(Created page with ";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 "...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
;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.


==Description==
;Usage
: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==
: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.
: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.


Line 39: Line 40:
:'''This template <u>must</u> be transcluded, as shown above. Do not substitute the template (e.g. <code><nowiki>{{subst:outdent|3|Link}}</nowiki></code>).'''
:'''This template <u>must</u> be transcluded, as shown above. Do not substitute the template (e.g. <code><nowiki>{{subst:outdent|3|Link}}</nowiki></code>).'''


==Credits==
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
:This template's code was stolen (ahem, borrowed) from the template of the same name on Wikipedia, viewable [[wikipedia:Template:Outdent|here]] ([http://en.wikipedia.org/w/index.php?title=Template:Outdent&action=history authors]).

<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 18:11, 23 February 2019

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