Predloga:Outdent/peskovnik
To je stran za peskovnik predloge za Predloga:Outdent (razl). Glej tudi podstran za testniprimeri. |
Ta predloga ne sme biti substituirana. |
Predloga se uporablja na številnih straneh, zato bo vsaka njena sprememba takoj zelo opazna. Prosimo, da vse spremembe, ki jih želite uvesti, pred uvedbo preizkusite na podstraneh predloge (/peskovnik in /testniprimeri) ali na svojih lastnih podstraneh. Pred spreminjanjem te predloge se o želenih spremembah rajši pogovorite na pogovorni strani. |
Uporablja Lua: |
Threading of replies on talk pages is done using indentation and lists. This template is used for outdenting a reply on a talk page when indentation gets too deep.
Usage
uredi{{od|integer}}
or {{od|indentation wikitext}}
. Integer examples: {{od|5}}
, {{od|-15}}
, {{od|11|r=y}}
. Indentation examples: {{od|:::::}}
, {{od|*::::::}}
, {{od|**:::#}}
.
Parameters
uredi|1=indent
- 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 or indents (:
). Magnitude of a negative integer specifies the width of indentation (same as positive integer with|reverse=y
). Default value is10
. Supported range is from −40 to 40. |2=y
- Set it to add a link to Wikipedia:Indentation#Outdenting.
{{od|5|y}}
produces:
(outdent)
|r=y
(aliases|reverse=y
,|indent=y
,|in=y
)- Reverses the outdentation to become indentation and vice versa.
Examples
urediWith indentation wikitext
uredi::::Previous post, indented with four colons. {{Outdent|::::}} New post.
displays as
- Previous post, indented with four colons.
New post.
Positive integer
uredi::::::Previous post, indented 6 levels. {{Outdent|6}} New post.
displays as
- Previous post, indented 6 levels.
New post.
With separate indent
urediTo not outdent all the way to the left margin, indent the {{outdent}} template itself using colons:
::::::Previous post, indented 6 levels. ::{{Outdent|4}} New post.
displays as
- Previous post, indented 6 levels.
- New post.
Indent
urediUsing |reverse=y
:
::::::Previous post, indented 6 levels. ::{{Outdent|4}} Start of a new post indented 2 levels using a bar of length 6−2=4. ::{{Outdent|5|reverse=yes}} :::::::Indent to indentation level 7 using a reversed bar of length 7−2=5.
displays as
- Previous post, indented 6 levels.
- Start of a new post indented 2 levels using a bar of length 6−2=4.
- Indent to indentation level 7 using a reversed bar of length 7−2=5.
Or with a negative integer:
::::::Original conversation. ::::::{{od|-3}} :::::::::Afterthought. :::::::{{od|2}} :::::::Continuation of original conversation.
displays as
- Original conversation.
- Afterthought.
- Continuation of original conversation.
CSS and hide
urediThis 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):
.outdent-template { display: none; }
See also
uredi- {{Outdent2}} — rather than a bar on the previous line, produces a bracketed arrow on the same line.
- Wikipedia:Indentation (WP:INDENT)
- Wikipedia:Talk page guidelines (WP:TALK)