Template:Outdent/doc: Difference between revisions
Appearance
imported>Deadfire Creation |
Tungstenchan (talk | contribs) m Text replacement - "BattleTechWiki" to "BattleIntelligence" |
||
| Line 3: | Line 3: | ||
{{lua|Module:Outdent}} | {{lua|Module:Outdent}} | ||
{{Template shortcut|od|out}} | {{Template shortcut|od|out}} | ||
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[ | <!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[BattleIntelligence:Wikidata]])--> | ||
[[BTW:THREAD|Threading of replies on talk pages]] is done using indentation and lists. This template is used for [[ | [[BTW:THREAD|Threading of replies on talk pages]] is done using indentation and lists. This template is used for [[BattleIntelligence:Indentation#Outdenting|''out''denting]] a reply on a talk page when indentation gets too deep. | ||
== Usage == | == Usage == | ||
| Line 15: | Line 15: | ||
: 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. In integer mode, the value is interpreted as number or indents (<code>:</code>). Default value is <code>10</code>. Supported range is from −40 to 40. A negative integer is the same as positive integer with {{para|reverse|y}}. | : 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. In integer mode, the value is interpreted as number or indents (<code>:</code>). Default value is <code>10</code>. Supported range is from −40 to 40. A negative integer is the same as positive integer with {{para|reverse|y}}. | ||
;{{para|2|y}} | ;{{para|2|y}} | ||
: Set it to add a link to [[ | : Set it to add a link to [[BattleIntelligence:Indentation#Outdenting]]. {{tlx|od|5|y}} produces: | ||
{{od|5|y}} | {{od|5|y}} | ||
;{{para|r|y}} (aliases {{para|reverse|y}}, {{para|indent|y}}, {{para|in|y}}) | ;{{para|r|y}} (aliases {{para|reverse|y}}, {{para|indent|y}}, {{para|in|y}}) | ||
| Line 99: | Line 99: | ||
== See also == | == See also == | ||
* {{tl|Outdent2}} — rather than a bar on the previous line, produces a bracketed arrow on the same line. | * {{tl|Outdent2}} — rather than a bar on the previous line, produces a bracketed arrow on the same line. | ||
* [[ | * [[BattleIntelligence:Indentation|BattleIntelligence:Indentation (BTW:INDENT)]] | ||
* [[ | * [[BattleIntelligence:Talk page guidelines|BattleIntelligence:Talk page guidelines (BTW:TALK)]] | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
Latest revision as of 00:16, 1 May 2025
| This is a documentation subpage for Template:Outdent. It may contain usage information, categories and other content that is not part of the original template page. |
| This template should not be substituted. |
| This template uses Lua: |
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
{{od|integer}} or {{od|indentation wikitext}}. Integer examples: {{od|5}}, {{od|-15}}, {{od|11|r=y}}. Indentation examples: {{od|:::::}}, {{od|*::::::}}, {{od|**:::#}}.
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. In integer mode, the value is interpreted as number or indents (:). Default value is10. Supported range is from −40 to 40. A negative integer is the same as positive integer with|reverse=y. |2=y- Set it to add a link to BattleIntelligence:Indentation#Outdenting.
{{od|5|y}}produces:
(outdent)
|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 {{outdent}} 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.
::::::{{od|-3}}
:::::::::Afterthought.
:::::::{{od|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):
.outdent-template { display: none; }See also
- {{Outdent2}} — rather than a bar on the previous line, produces a bracketed arrow on the same line.
- BattleIntelligence:Indentation (BTW:INDENT)
- BattleIntelligence:Talk page guidelines (BTW:TALK)