User:Grufo/Template:Outdent
Note: This page is a template. It contains no Arch Linux-related information, but should be used as part of other articles. For more information, read Help:Template.
Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.
Feel free to voice your opinion regarding this template.
Outdent a talk page reply
- …Tenth reply
Template:Outdent Eleventh reply…
Usage
|1=outdentation
(optional)- 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 of outdents (:
). Default value is10
. Supported range is from 1 to 10 (any other integer outside this range will be interpreted as 10).
Examples
Without parameters
Input:
Message ::::::: ... :::::::: Eight reply ::::::::: Ninth reply :::::::::: Tenth reply {{outdent}} Eleventh reply : Twelfth reply :: ...
Output:
Message
- ...
- Eight reply
- Ninth reply
- Tenth reply
- Ninth reply
- Eight reply
- ...
Template:Outdent Eleventh reply
- Twelfth reply
- ...
With outdentation specified
Input:
: ... :: Second reply ::: Third reply :::: Fourth reply {{outdent|::::}} Fifth reply : Sixth reply :: ...
Output:
- ...
- Second reply
- Third reply
- Fourth reply
- Third reply
- Second reply
Template:Outdent Fifth reply
- Sixth reply
- ...