Template:Outdent: Difference between revisions
m lost the docs somehow |
Looks better without, please do not change without broad consensus, since this affects the entire site |
||
Line 1: | Line 1: | ||
<span class="outdent-template" style="font-family:DejaVu Sans, sans-serif;"><span style="color:#808080">┌{{#switch:{{{1|}}}|1|:|{{padleft:┘|{{#expr: ceil(1*(3.33)) }}|─}} |
<span class="outdent-template" style="font-family:DejaVu Sans, sans-serif;">[[Wikipedia:Indentation#Outdenting|<span style="color:#808080">┌{{#switch:{{{1|}}}|1|:|{{padleft:┘|{{#expr: ceil(1*(3.33)) }}|─}} |
||
|2|::={{padleft:┘|{{#expr: ceil(2*(3.33)) }}|─}} |
|2|::={{padleft:┘|{{#expr: ceil(2*(3.33)) }}|─}} |
||
|3|:::={{padleft:┘|{{#expr: ceil(3*(3.33)) }}|─}} |
|3|:::={{padleft:┘|{{#expr: ceil(3*(3.33)) }}|─}} |
||
Line 20: | Line 20: | ||
|20|::::::::::::::::::::={{padleft:┘|{{#expr: ceil(20*(3.33)) }}|─}} |
|20|::::::::::::::::::::={{padleft:┘|{{#expr: ceil(20*(3.33)) }}|─}} |
||
|{{padleft:┘|{{#expr: ceil(10*(3.33)) }}|─}} |
|{{padleft:┘|{{#expr: ceil(10*(3.33)) }}|─}} |
||
}}</span><br/> |
}}</span>]]<br/></span><noinclude>{{Documentation}}</noinclude> |
Revision as of 18:10, 26 December 2009
┌─────────────────────────────────┘
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, or use an integer value for that number.
::::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
::::::This is the previous post, indented 6 levels {{Outdent|6}}start of a new post
displays as
- This is the previous post, indented 6 levels
start of a new post
You can also have the template automatically add a linked tag, by adding any second parameter (its specific value is discarded):
::::::This is the previous post, indented 6 levels {{Outdent|6|link}}start of a new post
displays as
- This is the previous post, indented 6 levels
start of a new post
the outdent template may also be indented using colons, like any other text.
Do not use subst: with this template.
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 (by default: Special:MyPage/monobook.css):
- span.outdent-template { display: none; }
TemplateData
TemplateData for Outdent
For outdenting a reply on a talk page when indention gets too deep.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Depth | 1 | Either a string of colons or an integer count, representing the indent of the previous post.
| String | required |
Add link? | 2 | Whether to add a link that explains the outdent. | Boolean | optional |
See also