Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Outdent/doc: Difference between revisions

Template page
Casiope (talk | contribs)
mNo edit summary
Casiope (talk | contribs)
mNo edit summary
Line 14: Line 14:
=== With indentation wikitext ===
=== With indentation wikitext ===


<div style="border:thin #A2A9B1 solid; padding:8px; margin:4px;">
{|class=wikitable style="width:100%;"
<pre>:::: Previous post, indented with four colons.
! style="width:50%;" | Markup
! Renders as
|-
| <pre>:::: Previous post, indented with four colons.
{{outdent|::::}} New post.</pre>
{{outdent|::::}} New post.</pre>
 
|
Displays as:
 
:::: Previous post, indented with four colons.
:::: Previous post, indented with four colons.
{{outdent|::::}} New post.
{{outdent|::::}} New post.
</div>
|}


=== Positive integer ===
=== Positive integer ===


<div style="border:thin #A2A9B1 solid; padding:8px; margin:4px;">
{|class=wikitable style="width:100%;"
<pre>:::::: Previous post, indented 6 levels.
! style="width:50%;" | Markup
! Renders as
|-
| <pre>:::::: Previous post, indented 6 levels.
{{outdent|6}} New post.</pre>
{{outdent|6}} New post.</pre>
 
|
Displays as:
 
:::::: Previous post, indented 6 levels.
:::::: Previous post, indented 6 levels.
{{outdent|6}} New post.
{{outdent|6}} New post.
</div>
|}


=== With separate indent ===
=== With separate indent ===


To not outdent all the way to the left margin, indent the {{tl|outdent}} template itself using colons:
To not outdent all the way to the left margin, indent the {{tlc|outdent}} template itself using colons:
<div style="border:thin #A2A9B1 solid; padding:8px; margin:4px;">
 
<pre>:::::: Previous post, indented 6 levels.
{|class=wikitable style="width:100%;"
! style="width:50%;" | Markup
! Renders as
|-
| <pre>:::::: Previous post, indented 6 levels.
:: {{outdent|4}} New post.</pre>
:: {{outdent|4}} New post.</pre>
 
|
Displays as:
 
:::::: Previous post, indented 6 levels.
:::::: Previous post, indented 6 levels.
:: {{outdent|4}} New post.
:: {{outdent|4}} New post.
</div>
|}


=== Indent ===
=== Indent ===


<div style="border:thin #A2A9B1 solid; padding:8px; margin:4px;">
{|class=wikitable style="width:100%;"
<pre>
! style="width:50%;" | Markup
:::::: Original conversation.
! Renders as
|-
| <pre>:::::: Original conversation.
:::::: {{outdent|-3}}
:::::: {{outdent|-3}}
::::::::: Afterthought.
::::::::: Afterthought.
::::::: {{outdent|2}}
::::::: {{outdent|2}}
::::::: Continuation of original conversation.</pre>
::::::: Continuation of original conversation.</pre>
 
|
Displays as:
 
:::::: Original conversation.
:::::: Original conversation.
:::::: {{outdent|-3}}
:::::: {{outdent|-3}}
Line 66: Line 70:
::::::: {{outdent|2}}
::::::: {{outdent|2}}
::::::: Continuation of original conversation.
::::::: Continuation of original conversation.
</div>
|}


== CSS and hide ==
== 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]]):
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 in [[Special:MyPage/common.css]]:


<syntaxhighlight lang="css">span.outdent-template { display:none; }</syntaxhighlight>
<syntaxhighlight lang="css">span.outdent-template { display:none; }</syntaxhighlight>

Revision as of 23:26, 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.

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

Markup Renders as
:::: Previous post, indented with four colons.
{{outdent|::::}} New post.
Previous post, indented with four colons.
New post.

Positive integer

Markup Renders as
:::::: Previous post, indented 6 levels.
{{outdent|6}} New post.
Previous post, indented 6 levels.
New post.

With separate indent

To not outdent all the way to the left margin, indent the Template:Tlc template itself using colons:

Markup Renders as
:::::: Previous post, indented 6 levels.
:: {{outdent|4}} New post.
Previous post, indented 6 levels.
New post.

Indent

Markup Renders as
:::::: Original conversation.
:::::: {{outdent|-3}}
::::::::: Afterthought.
::::::: {{outdent|2}}
::::::: Continuation of original conversation.
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 in Special:MyPage/common.css:

span.outdent-template { display:none; }