Difference between revisions of "Template:Outdent/doc"
From Summertime Saga Wiki
m |
m |
||
Line 1: | Line 1: | ||
− | Threading of replies on talk pages is done using indentation and lists. | + | Threading of replies on talk pages is done using indentation and lists. The template {{tl|outdent}} is used for outdenting a reply on a talk page when indentation gets too deep. |
== Usage == | == Usage == | ||
− | {{tlc|outdent|<var>integer | + | {{tlc|outdent|<var>integer</var>}}. Integer examples: {{tlc|outdent|5}}, {{tlc|outdent|-15}}. Indentation examples: {{tlc|outdent|:::::}}, {{tlc|outdent|*::::::}}, {{tlc|outdent|**:::#}}. |
− | == | + | == Parameter == |
; {{para|1|<var>indent</var>}} | ; {{para|1|<var>indent</var>}} | ||
− | : Supports two modes: literal indentation or an integer. In literal indentation mode the value may contain <code>:</code> (indents), <code>*</code> (unnumbered list), and <code>#</code> (numbered list). It is recommended to copy the colons, asterisks, and hashes from the start of the previous message. An integer value is interpreted as number or indents (<code>:</code>) | + | : Supports two modes: literal indentation or an integer. In literal indentation mode the value may contain <code>:</code> (indents), <code>*</code> (unnumbered list), and <code>#</code> (numbered list). It is recommended to copy the colons, asterisks, and hashes from the start of the previous message. An integer value is interpreted as number or indents (<code>:</code>). Supported range is from −40 to 40. |
− | |||
− | |||
− | |||
− | |||
− | |||
== Examples == | == Examples == | ||
Line 56: | Line 51: | ||
=== Indent === | === Indent === | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<div style="border:thin #A2A9B1 solid; padding:8px; margin:4px;"> | <div style="border:thin #A2A9B1 solid; padding:8px; margin:4px;"> | ||
<pre> | <pre> |
Revision as of 23:51, 10 July 2020
Threading of replies on talk pages is done using indentation and lists. The template Template:Tl is used for outdenting a reply on a talk page when indentation gets too deep.
Contents
Usage
Template:Tlc. Integer examples: Template:Tlc, Template:Tlc. Indentation examples: Template:Tlc, Template:Tlc, Template:Tlc.
Parameter
|1=indent
- Supports two modes: literal indentation or an integer. In literal indentation mode the value may contain
:
(indents),*
(unnumbered list), and#
(numbered list). It is recommended to copy the colons, asterisks, and hashes from the start of the previous message. An integer value is interpreted as number or indents (:
). Supported range is from −40 to 40.
Examples
With indentation wikitext
:::: Previous post, indented with four colons. {{outdent|::::}} New post.
Displays as:
- Previous post, indented with four colons.
New post.
Positive integer
:::::: Previous post, indented 6 levels. {{outdent|6}} New post.
Displays as:
- Previous post, indented 6 levels.
New post.
With separate indent
To not outdent all the way to the left margin, indent the Template:Tl template itself using colons:
:::::: Previous post, indented 6 levels. :: {{outdent|4}} New post.
Displays as:
- Previous post, indented 6 levels.
- New post.
Indent
:::::: Original conversation. :::::: {{outdent|-3}} ::::::::: Afterthought. ::::::: {{outdent|2}} ::::::: Continuation of original conversation.
Displays as:
- Original conversation.
- Afterthought.
- Continuation of original conversation.
CSS and hide
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; }