Template:Outdent: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Trappingnoobs
Fixed example
>JulienDethurens
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div style="height:1em; padding: 0 0.5em; width: {{switch|{{{1|::::}}}
<div style="height:1em; padding: 0 1em; width: {{switch|{{{1|::::}}}
|:=2
|:=2
|::=4
|::=4
Line 9: Line 9:
|::::::::=16
|::::::::=16
|:::::::::=18
|:::::::::=18
|::::::::::=20}}em"><div style="border-bottom: 1px solid gray; border-right: 2px solid gray; height: 0.5em; margin-top: -1px;"></div><div style="border-top: 1px solid gray; border-left: 2px solid gray; height: 0.5em; margin-bottom: -1px;"></div></div>
|::::::::::=20}}em"><div style="border-bottom: 1px solid gray; border-right: 2px solid gray; height: 0.5em; margin: 0px -1px;"></div><div style="border-top: 1px solid gray; border-left: 2px solid gray; height: 0.5em; margin: 0px -1px;"></div></div><noinclude>{{documentation}}</noinclude>
<noinclude>
Hi. --User1
:Hi -- User2
:Hio! ~User3
::Why didn't you say "Hi?" -- User1
:::I felt like saying "Hio!" ~User3
::::Why are you two getting worked up over this? --User2
{{Outdent|::::}}Alright. --User1</noinclude>

Latest revision as of 20:56, 9 April 2012

[purge] Template documentation
For outdenting a reply on a talk page when indention gets too deep. Indenting on talk pages is done using a colon character (:) to produce tabs; this template produces a connector bar and initial text to indicate an outdent, based on the number of colons used in the previous indent.

Usage

To outdent posts, insert the number of colons that were used for indenting in the previous post.

::::This is the previous post, indented 4 levels
{{Outdent|::::}}
Start of a new post

displays as

This is the previous post, indented 4 levels

Start of a new post

To not outdent all the way to the left margin, the outdent template itself can be indented using one or more colons:

::::::This is the previous post, indented 6 levels
::{{Outdent|::::}}
::Start of a new post

displays as

This is the previous post, indented 6 levels
Start of a new post

This template supports up to 10 colons as a parameter.

The default number of colons is 4.