Redigerer
Mal:Outdent/dok
(avsnitt)
Hopp til navigering
Hopp til søk
Advarsel:
Du er ikke innlogget. IP-adressen din vil bli vist offentlig om du redigerer. Hvis du
logger inn
eller
oppretter en konto
vil redigeringene dine tilskrives brukernavnet ditt, og du vil få flere andre fordeler.
Antispamsjekk.
Ikke
fyll inn dette feltet!
== Usage == '''<nowiki>{{ Outdent / outdent / od | optional param1 | optional param2 }} </nowiki>''' :param1: :*If the first 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 null causes an error. A value of zero produces a very long bar. :param2: :*If used, specifies that the string ([[WP:Indentation#Outdenting|outdent]]) is to be placed at the start of the new line's text. (Note: When param2 is used, param1 may not be null.) The template supports up to 20 colons as a parameter, but supports any given integer. Values above 40 may result in the bar appearing over more than one line. The default number of colons is 10. The template also recognizes the named parameter "reverse" - see [[#Indent]] below. ===Examples=== 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. <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> displays as ::::This is the previous post, indented 4 levels {{Outdent|::::}} Start of a new post </div> <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> displays as ::::::This is the previous post, indented 6 levels {{Outdent|6}} Start of a new post </div> <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>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.)''</pre> displays as ::::::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.)'' </div> You can also have the 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 {{Outdent|6|link}} Start of a new post</pre> displays as ::::::This is the previous post, indented 6 levels {{Outdent|6|link}} Start of a new post </div> 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"> <pre>::::::This is the previous post, indented 6 levels ::{{Outdent|4}} Start of a new post</pre> displays as ::::::This is the previous post, indented 6 levels ::{{Outdent|4}} Start of a new post </div> ;More examples <div style="border:thin blue solid; padding:8px; margin:4px"> <nowiki>{{Outdent}}xxx </nowiki>{{Outdent}}xxx<br> </div> <div style="border:thin blue solid; padding:8px; margin:4px"> <nowiki>{{outdent|1}}xxx </nowiki>{{outdent|1}}xxx<br> </div> <div style="border:thin blue solid; padding:8px; margin:4px"> <nowiki>{{od|2}}xxx </nowiki>{{od|2}}xxx </div> <div style="border:thin blue solid; padding:8px; margin:4px"> <nowiki>{{od|6}}xxx </nowiki>{{od|6}}xxx </div> <div style="border:thin blue solid; padding:8px; margin:4px"> :::<nowiki>{{od|1|anything}}xxx</nowiki>{{od|1|anything}}xxx </div> <div style="border:thin blue solid; padding:8px; margin:4px"> :::<nowiki>{{od|6|xxx}}xxx </nowiki>{{od|6|xxx}}xxx </div> ===Indent=== The named parameter "reverse" can be set so: <nowiki>{{</nowiki>Outdent|reverse=''string''}} where string can be any character or string of characters. It will also work with the optional unnamed parameters described previously. Its purpose is to allow for indention. For example: <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>::::::This is the 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 7 levels using a reversed bar of length 7-2=5.</pre> displays as ::::::This is the 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 7 levels using a reversed bar of length 7-2=5. </div> <div style="border:thin blue solid; padding:8px; margin:4px"> <pre> ::::::Original conversation. ::::::{{od|3|reverse=x}} :::::::::Afterthought. :::::::{{od|2}} :::::::Continuation of original conversation.</pre> displays as ::::::Original conversation. ::::::{{od|3|reverse=x}} :::::::::Afterthought. :::::::{{od|2}} :::::::Continuation of original conversation. </div> ===CSS and hide=== 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]]): :<code>span.outdent-template { display: none; }</code>
Redigeringsforklaring:
Merk at alle bidrag til Wikisida.no anses som frigitt under Creative Commons Navngivelse-DelPåSammeVilkår (se
Wikisida.no:Opphavsrett
for detaljer). Om du ikke vil at ditt materiale skal kunne redigeres og distribueres fritt må du ikke lagre det her.
Du lover oss også at du har skrevet teksten selv, eller kopiert den fra en kilde i offentlig eie eller en annen fri ressurs.
Ikke lagre opphavsrettsbeskyttet materiale uten tillatelse!
Avbryt
Redigeringshjelp
(åpnes i et nytt vindu)
Forhåndsvis en side som bruker denne malen
Denne siden er medlem av 1 skjult kategori:
Kategori:Sider hvor ekspansjonsdybden er overskredet
Navigasjonsmeny
Personlige verktøy
Ikke logget inn
Brukerdiskusjon
Bidrag
Opprett konto
Logg inn
Navnerom
Mal
Diskusjon
norsk bokmål
Visninger
Les
Rediger kilde
Vis historikk
Mer
Navigasjon
Forside
Siste endringer
Tilfeldig side
Hjelp til MediaWiki
Verktøy
Lenker hit
Relaterte endringer
Spesialsider
Sideinformasjon