Difference between revisions of "Template:Outdent/doc"
From Summertime Saga Wiki
m (→CSS and hide) |
m |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | The template {{tlg|outdent}} is used for outdenting a reply on a talk page when indentation gets too deep. | |
| − | + | == Usage == | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | == | + | : {{tlg|code=yes|nolink=yes|outdent|<var>integer</var>}}. |
| + | Integer examples: | ||
| + | * {{tlg|code=yes|nolink=yes|outdent|5}} | ||
| + | * {{tlg|code=yes|nolink=yes|outdent|-15}} | ||
| + | Indentation examples: | ||
| + | * {{tlg|code=yes|nolink=yes|outdent|:::::}} | ||
| + | * {{tlg|code=yes|nolink=yes|outdent|*::::::}} | ||
| + | * {{tlg|code=yes|nolink=yes|outdent|**:::#}}. | ||
| − | + | == Parameter == | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | ; {{para|1|<var>indent</var>}} : Supports two modes: literal indentation or an integer. In literal indentation mode the value may contain {{code|:}} (indents), <code>*</code> (unnumbered list), and {{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|:}}). Supported range is from −40 to 40. | |
== Examples == | == Examples == | ||
| − | + | === With indentation wikitext === | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | {|class=wikitable style="width:100%;" | |
| + | ! style="width:50%;" | Markup | ||
| + | ! Renders as | ||
| + | |- | ||
| + | | <pre>:::: Previous post, indented with four colons. | ||
| + | {{outdent|::::}} New post.</pre> | ||
| + | | | ||
| + | :::: Previous post, indented with four colons. | ||
| + | {{outdent|::::}} New post. | ||
| + | |} | ||
| − | + | === Positive integer === | |
| − | |||
| − | |||
| − | + | {|class=wikitable style="width:100%;" | |
| − | <pre> | + | ! style="width:50%;" | Markup |
| − | :::::: | + | ! Renders as |
| − | {{outdent}} | + | |- |
| + | | <pre>:::::: Previous post, indented 6 levels. | ||
| + | {{outdent|6}} New post.</pre> | ||
| + | | | ||
| + | :::::: Previous post, indented 6 levels. | ||
| + | {{outdent|6}} New post. | ||
| + | |} | ||
| − | + | === With separate indent === | |
| − | + | To not outdent all the way to the left margin, indent the {{tlg|code=yes|nolink=yes|outdent}} template itself using colons: | |
| − | {{outdent}} | ||
| − | |||
| − | + | {|class=wikitable style="width:100%;" | |
| − | + | ! style="width:50%;" | Markup | |
| − | + | ! Renders as | |
| − | + | |- | |
| − | + | | <pre>:::::: Previous post, indented 6 levels. | |
| − | + | :: {{outdent|4}} New post.</pre> | |
| − | + | | | |
| − | + | :::::: Previous post, indented 6 levels. | |
| − | + | :: {{outdent|4}} New post. | |
| − | + | |} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | <pre>:::::: | ||
| − | :: {{outdent|4}} | ||
| − | |||
| − | |||
| − | |||
| − | :::::: | ||
| − | :: {{outdent|4}} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=== Indent === | === Indent === | ||
| − | + | {|class=wikitable style="width:100%;" | |
| − | + | ! style="width:50%;" | Markup | |
| − | + | ! Renders as | |
| − | : | + | |- |
| − | + | | <pre>:::::: Original conversation. | |
| − | + | :::::: {{outdent|-3}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | <pre> | ||
| − | :::::: Original conversation. | ||
| − | :::::: {{outdent|3 | ||
::::::::: Afterthought. | ::::::::: Afterthought. | ||
::::::: {{outdent|2}} | ::::::: {{outdent|2}} | ||
::::::: Continuation of original conversation.</pre> | ::::::: Continuation of original conversation.</pre> | ||
| − | + | | | |
| − | |||
| − | |||
:::::: Original conversation. | :::::: Original conversation. | ||
| − | :::::: {{outdent|3 | + | :::::: {{outdent|-3}} |
::::::::: Afterthought. | ::::::::: Afterthought. | ||
::::::: {{outdent|2}} | ::::::: {{outdent|2}} | ||
::::::: Continuation of original conversation. | ::::::: Continuation of original conversation. | ||
| − | + | |} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
== CSS and hide == | == CSS and hide == | ||
| − | This template is contained in the CSS class | + | 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> | |
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:Templates documentation]] | [[Category:Templates documentation]] | ||
Latest revision as of 17:13, 21 July 2020
The template {{outdent}} is used for outdenting a reply on a talk page when indentation gets too deep.
Contents
Usage
{{outdent|integer}}.
Integer examples:
{{outdent|5}}{{outdent|-15}}
Indentation examples:
{{outdent|:::::}}{{outdent|*::::::}}{{outdent|**:::#}}.
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.
|
New post.
|
Positive integer
| Markup | Renders as |
|---|---|
:::::: Previous post, indented 6 levels.
{{outdent|6}} New post.
|
New post.
|
With separate indent
To not outdent all the way to the left margin, indent the {{outdent}} template itself using colons:
| Markup | Renders as |
|---|---|
:::::: Previous post, indented 6 levels.
:: {{outdent|4}} New post.
|
|
Indent
| Markup | Renders as |
|---|---|
:::::: Original conversation.
:::::: {{outdent|-3}}
::::::::: Afterthought.
::::::: {{outdent|2}}
::::::: 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; }