Difference between revisions of "Template:Outdent/doc"

From Summertime Saga Wiki
Jump to: navigation, search
m
m
Line 19: Line 19:
 
=== With indentation wikitext ===
 
=== With indentation wikitext ===
  
<div style="border:1px #A2A9B1 solid; padding:8px; margin:4px;">
+
<div style="border:thin #A2A9B1 solid; padding:8px; margin:4px;">
 
<pre>:::: Previous post, indented with four colons.
 
<pre>:::: Previous post, indented with four colons.
 
{{outdent|::::}} New post.</pre>
 
{{outdent|::::}} New post.</pre>
  
''displays as''
+
Displays as:
  
 
:::: Previous post, indented with four colons.
 
:::: Previous post, indented with four colons.
Line 31: Line 31:
 
=== Positive integer ===
 
=== Positive integer ===
  
<div style="border:1px #A2A9B1 solid; padding:8px; margin:4px;">
+
<div style="border:thin #A2A9B1 solid; padding:8px; margin:4px;">
 
<pre>:::::: Previous post, indented 6 levels.
 
<pre>:::::: Previous post, indented 6 levels.
 
{{outdent|6}} New post.</pre>
 
{{outdent|6}} New post.</pre>
  
''displays as''
+
Displays as:
  
 
:::::: Previous post, indented 6 levels.
 
:::::: Previous post, indented 6 levels.
Line 44: Line 44:
  
 
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 {{tl|outdent}} template itself using colons:
<div style="border:1px #A2A9B1 solid; padding:8px; margin:4px;">
+
<div style="border:thin #A2A9B1 solid; padding:8px; margin:4px;">
 
<pre>:::::: Previous post, indented 6 levels.
 
<pre>:::::: Previous post, indented 6 levels.
 
:: {{outdent|4}} New post.</pre>
 
:: {{outdent|4}} New post.</pre>
  
''displays as''
+
Displays as:
  
 
:::::: Previous post, indented 6 levels.
 
:::::: Previous post, indented 6 levels.
Line 56: Line 56:
 
=== Indent ===
 
=== Indent ===
  
<div style="border:1px #A2A9B1 solid; padding:8px; margin:4px;">
+
<div style="border:thin #A2A9B1 solid; padding:8px; margin:4px;">
 
Using {{para|reverse|y}}:
 
Using {{para|reverse|y}}:
 
<pre>:::::: Previous post, indented 6 levels.
 
<pre>:::::: Previous post, indented 6 levels.
Line 63: Line 63:
 
::::::: Indent to indentation level 7 using a reversed bar of length 7 − 2 = 5.</pre>
 
::::::: Indent to indentation level 7 using a reversed bar of length 7 − 2 = 5.</pre>
  
''displays as''
+
Displays as:
  
 
:::::: Previous post, indented 6 levels.
 
:::::: Previous post, indented 6 levels.
Line 72: Line 72:
  
 
Or with a negative integer:
 
Or with a negative integer:
<div style="border:1px #A2A9B1 solid; padding:8px; margin:4px;">
+
<div style="border:thin #A2A9B1 solid; padding:8px; margin:4px;">
 
<pre>
 
<pre>
 
:::::: Original conversation.
 
:::::: Original conversation.
Line 80: Line 80:
 
::::::: Continuation of original conversation.</pre>
 
::::::: Continuation of original conversation.</pre>
  
''displays as''
+
Displays as:
  
 
:::::: Original conversation.
 
:::::: Original conversation.
Line 91: Line 91:
 
== 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 ([[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 22:53, 10 July 2020

Threading of replies on talk pages is done using indentation and lists. This template is used for outdenting a reply on a talk page when indentation gets too deep.

Usage

Template:Tlc or Template:Tlc. Integer examples: Template:Tlc, Template:Tlc, Template:Tlc. Indentation examples: Template:Tlc, Template:Tlc, Template:Tlc.

Parameters

|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 (:). Magnitude of a negative integer specifies the width of indentation (same as positive integer with |reverse=y). Default value is 10. Supported range is from −40 to 40.
|2=y
Set it to add a link to Wikipedia:Indentation#Outdenting. Template:Tlc produces:
|r=y (aliases |reverse=y, |indent=y, |in=y)
Reverses the outdentation to become indentation and vice versa.

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

Using |reverse=y:

:::::: Previous post, indented 6 levels.
:: {{outdent|4}} Start of a new post indented 2 levels using a bar of length 6 − 2 = 4.
:: {{outdent|5|reverse=yes}}
::::::: Indent to indentation level 7 using a reversed bar of length 7 − 2 = 5.

Displays as:

Previous post, indented 6 levels.
Start of a new post indented 2 levels using a bar of length 6 − 2 = 4.
Indent to indentation level 7 using a reversed bar of length 7 − 2 = 5.

Or with a negative integer:

:::::: 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; }