Wikia

Harry Potter Wiki

Changes: Template:Indent

Edit

Back to page

(Undo revision 113607 by 121.91.214.57 (talk))
 
Line 1: Line 1:
 
<includeonly>{{#if:{{{2|}}}|<br />}}</includeonly>
 
<includeonly>{{#if:{{{2|}}}|<br />}}</includeonly>
<br />{{#switch: {{{1}}}
+
<br />{{#switch: {{{1}}} <!-- revised code from http://en.wikipedia.org/w/index.php?title=User:CBDunkerson/Sandbox6&direction=next&oldid=57445940 with reattached linefeed Thanks CBDunkerson!!! ---->
 
| 1=&nbsp;
 
| 1=&nbsp;
 
| 2=&nbsp;&nbsp;
 
| 2=&nbsp;&nbsp;
Line 40: Line 40:
 
'''{{lts|i}}''' calls indent with a default of three spaces, or passes on an argument if other padding is desirable whist remaining more compact {{i}}(Very useful in tables where edit-jumble is a factor, or on talks to create indented paragraph beginings inside a wiki indented ':', '::', '::*', or a '#' prefixed line).
 
'''{{lts|i}}''' calls indent with a default of three spaces, or passes on an argument if other padding is desirable whist remaining more compact {{i}}(Very useful in tables where edit-jumble is a factor, or on talks to create indented paragraph beginings inside a wiki indented ':', '::', '::*', or a '#' prefixed line).
   
  +
==Example calls==
  +
*<nowiki>{{indent|2}}, {{space|7}}, etc. </nowiki>{{indent|5}}'''space''' and '''indent''' are limited to adding '''30 spaces'''.
  +
*{{tl|I} use is illustrated above immediately preceding the paragraphs beginning '''"{Very useful..."''' and '''"Consequently, this template..."'''.
  +
<br />
   
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]

Latest revision as of 22:48, December 29, 2008




UsageEdit


     {{indent|nn}}, takes a numeric argument 'nn' after the pipe and provides that many consecutive spaces. Indent differs from {{space}} only in that it automatically begins a newline, then spaces over 'nn' spaces.
   Consequently, this template can not be used inline to create alignment between adjacent text lines, or to space out titles, etc. Use {{space}} for such needs.

Related

Template:I (edit talk links history) calls indent with a default of three spaces, or passes on an argument if other padding is desirable whist remaining more compact
   (Very useful in tables where edit-jumble is a factor, or on talks to create indented paragraph beginings inside a wiki indented ':', '::', '::*', or a '#' prefixed line).

Example callsEdit

  • {{indent|2}}, {{space|7}}, etc.


     space and indent are limited to adding 30 spaces.

  • {{tl|I} use is illustrated above immediately preceding the paragraphs beginning "{Very useful..." and "Consequently, this template...".


Around Wikia's network

Random Wiki