Difference between revisions of "Template:Outdent/doc"
Dinoguy1000 (talk | contribs) |
Dinoguy1000 (talk | contribs) (these are fixed now) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
For outdenting a reply on a talk page when indention gets too deep. | 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 | + | Indenting on talk pages is done using a colon character (:) to produce "tabs"; this template produces a connector bar, with the length of the bar specified by the number of colons used in the template. The left margin is sent to the position of the template. "<nowiki>::{{od}}</nowiki>" produces: |
::{{od}} | ::{{od}} | ||
− | |||
− | |||
− | |||
==Usage== | ==Usage== | ||
− | '''<nowiki>{{ Outdent / outdent / od | optional | + | '''<nowiki>{{ Outdent / outdent / od | optional param }} </nowiki>''' |
− | + | :*If the parameter is not used, the left margin is reset to the position of the template, and the default value of 10 is used for the length of the bar. | |
− | :*If the | ||
:*If used, its value specifies the length of the connector bar to be used. The value may be specified as a string of tab characters, or as an integer. | :*If used, its value specifies the length of the connector bar to be used. The value may be specified as a string of tab characters, or as an integer. | ||
− | :*A value of | + | :*A value of zero causes the template to use the default value of 10. |
− | |||
− | |||
− | The template supports | + | The template supports any number of colons or any integer as a parameter. Values above 40 result in the template using the default value of 10. |
The default number of colons is 10. | The default number of colons is 10. | ||
− | |||
− | |||
===Examples=== | ===Examples=== | ||
Line 58: | Line 50: | ||
::::::This is the previous post, indented 6 levels | ::::::This is the previous post, indented 6 levels | ||
{{Outdent}} Start of a new post. ''(Note that the bar is longer — it is using the default value of 10.)'' | {{Outdent}} Start of a new post. ''(Note that the bar is longer — it is using the default value of 10.)'' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
Line 95: | Line 75: | ||
<div style="border:thin blue solid; padding:8px; margin:4px"> | <div style="border:thin blue solid; padding:8px; margin:4px"> | ||
<nowiki>{{od|6}}xxx </nowiki>{{od|6}}xxx | <nowiki>{{od|6}}xxx </nowiki>{{od|6}}xxx | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
Line 141: | Line 81: | ||
:<code>span.outdent-template { display: none; }</code> | :<code>span.outdent-template { display: none; }</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Other formats== | ==Other formats== | ||
Line 171: | Line 94: | ||
==See also== | ==See also== | ||
− | * [[WP:INDENT]] | + | * [[wikipedia:WP:INDENT]] |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
Latest revision as of 13:06, 25 June 2016
This is a documentation subpage for Template:Outdent. It contains usage information, categories and other content that is not part of the original template page. |
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, with the length of the bar specified by the number of colons used in the template. The left margin is sent to the position of the template. "::{{od}}" produces:
- Script error: No such module "outdent".
Usage[edit]
{{ Outdent / outdent / od | optional param }}
- If the parameter is not used, the left margin is reset to the position of the template, and the default value of 10 is used for the length of the bar.
- If used, its value specifies the length of the connector bar to be used. The value may be specified as a string of tab characters, or as an integer.
- A value of zero causes the template to use the default value of 10.
The template supports any number of colons or any integer as a parameter. Values above 40 result in the template using the default value of 10.
The default number of colons is 10.
Examples[edit]
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
Script error: No such module "outdent". 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
Script error: No such module "outdent". Start of a new post
Alternatively: ::::::This is the previous post, indented 6 levels {{Outdent}} Start of a new post. ''(Note that the bar is longer — it is using the default value of 10.)''
displays as
- This is the previous post, indented 6 levels
Script error: No such module "outdent". Start of a new post. (Note that the bar is longer — it is using the default value of 10.)
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|4}} Start of a new post
displays as
- This is the previous post, indented 6 levels
- Script error: No such module "outdent". Start of a new post
- More examples
{{Outdent}}xxx Script error: No such module "outdent".xxx
{{outdent|1}}xxx Script error: No such module "outdent".xxx
{{od|2}}xxx Script error: No such module "outdent".xxx
{{od|6}}xxx Script error: No such module "outdent".xxx
CSS and hide[edit]
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):
span.outdent-template { display: none; }
Other formats[edit]
"::{{od}}xxx" produces:
- Script error: No such module "outdent".xxx
"::{{od|10|xxx}}xxx" produces:
- Script error: No such module "outdent".xxx
- {{Outdent2}} and {{od2}} — Rather than a bar on the previous line, produces a bracketed arrow on the same line. "::{{od2}}xxx" produces:
- {{Undent}} — Rather than a bar on the previous line and "outdent", produces (undent). "::{{undent}}xxx" produces:
See also[edit]