Template:Indent: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
  | 6 = ::::::
  | 6 = ::::::
  |
  |
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{{{PAGENAME}}/doc}}[[Category:Template]]</noinclude>
;Info : Prepend requested '''indent''' level.
 
;Syntax : {{m|indent{{!}}<indent>}}
<indent>  =  '''1'''    ->  :
              '''2'''    ->  ::
              '''3'''    ->  :::
              '''4'''    ->  ::::
              '''5'''    ->  :::::
              '''6'''    ->  ::::::
      else        ->        (no indent, default)         
 
;Example
:<nowiki>{{indent|3}}Level 3 indent.</nowiki><br>{{indent|3}}Level 3 indent.
 
;Used by the templates
:CatWeight, CatWeightInfo, CatWeightTable, and a few others. Can be used in normal text as well, not really that useful there though, since using : or :: etc. is more elegant.
 
[[Category:Template]]</noinclude>

Latest revision as of 16:56, 16 May 2009

Prepend requested indent level.

Syntax

The template can only have 1 parameter:

  1. {{indent|<indent>}} - Set the indent level.
<indent>  =  1    ->  :
             2    ->  ::
             3    ->  :::
             4    ->  ::::
             5    ->  :::::
             6    ->  ::::::

Example

{{indent|3}}Level 3 indent.
Level 3 indent.

Usage

The templates CatWeight, CatWeightInfo, CatWeightTable, and a few others use this template. Can be used in normal text as well, this is not really useful there though, since using : or :: etc. is much more convenient.