Bureaucrats, checkuser, Interface administrators, interwiki, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), staff, Suppressors, Administrators
83,693
edits
Zhuyifei1999 (talk | contribs) m (Zhuyifei1999 moved page Template:Outdent/Doc to Template:Outdent/doc: Better name) |
Hoof Hearted (talk | contribs) (clarity) |
||
| Line 1: | Line 1: | ||
'''Template:Outdent/doc''' — this {{tag|Documentation templates|documentation template}} is used for 'outdenting' a reply on a [[talk page]] when the existing indention gets too deep. Indenting on talk pages is done using a colon character (<code>:</code>) at the start of a new paragraph to produce the effect of tabs. This template produces a dog-leg 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 (after a 'pipe') that were used for indenting in the previous post, or use an integer value for that number. | |||
<div style="border:thin blue solid; padding:8px; margin:4px"><pre>::::This is the previous post, indented 4 levels | <div style="border:thin blue solid; padding:8px; margin:4px"><pre>::::This is the previous post, indented 4 levels | ||
{{Outdent|::::}}start of a new post</pre> | {{Outdent|::::}}start of a new post, aligned to the left margin</pre> | ||
displays as | ''displays as:'' | ||
::::This is the previous post, indented 4 levels | ::::This is the previous post, indented 4 levels | ||
{{Outdent|::::}}start of a new post</div> | {{Outdent|::::}}start of a new post, aligned to the left margin</div> | ||
<div style="border:thin blue solid; padding:8px; margin:4px"><pre>::::::This is the previous post, indented 6 levels | <div style="border:thin blue solid; padding:8px; margin:4px"><pre>::::::This is the previous post, indented 6 levels | ||
{{Outdent|6}}start of a new post</pre> | {{Outdent|6}}start of a new post, aligned to the left margin</pre> | ||
displays as | ''displays as:'' | ||
::::::This is the previous post, indented 6 levels | ::::::This is the previous post, indented 6 levels | ||
{{Outdent|6}}start of a new post</ | {{Outdent|6}}start of a new post, aligned to the left margin</div> | ||
<br> | |||
You can also have | You can also have this template automatically add a linked tag, by adding any second parameter (its specific value is discarded): | ||
<div style="border:thin blue solid; padding:8px; margin:4px"><pre>::::::This is the previous post, indented 6 levels | <div style="border:thin blue solid; padding:8px; margin:4px"><pre>::::::This is the previous post, indented 6 levels | ||
{{Outdent|6|link}}start of a new post</pre> | {{Outdent|6|link}}start of a new post, aligned to the left margin</pre> | ||
displays as | ''displays as:'' | ||
::::::This is the previous post, indented 6 levels | ::::::This is the previous post, indented 6 levels | ||
{{Outdent|6|link}}start of a new post</ | {{Outdent|6|link}}start of a new post, aligned to the left margin</div> | ||
<br> | |||
To not outdent all the way to the left margin, the outdent template itself can be indented using one or more colons: | To not outdent all the way to the left margin, the outdent template itself can be indented using one or more colons: | ||
<div style="border:thin blue solid; padding:8px; margin:4px"> | <div style="border:thin blue solid; padding:8px; margin:4px"><pre>::::::This is the previous post, indented 6 levels | ||
<pre>::::::This is the previous post, indented 6 levels | ::{{Outdent|4}}start of a new post, indented 2 levels</pre> | ||
::{{Outdent|4}}start of a new post</pre> | |||
displays as | ''displays as:'' | ||
::::::This is the previous post, indented 6 levels | ::::::This is the previous post, indented 6 levels | ||
:{{Outdent| | ::{{Outdent|4}}start of a new post, indented 2 levels</div> | ||
Do <u>not</u> use <tt>subst:</tt> with this template. | |||
: | This template is contained in the [[:Category:Cascading Style Sheets|CSS]] class 'outdent-template'. [[User]]s who would prefer not to see the template can add the following line to their custom CSS (by default: [[Special:MyPage/monobook.css]]): | ||
:<code><nowiki>span.outdent-template { display: none; }</nowiki></code> | |||
===See also=== | |||
{{Documentation|doc|[[commons:Outdent/doc]]}} | {{Documentation|doc|[[commons:Outdent/doc]]}} | ||
edits