Template:Indent: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 10: Line 10:
;Info : Prepend requested '''indent''' level.
;Info : Prepend requested '''indent''' level.


;Syntax : {{m|indent{{!}}<indent>}}
;Syntax : {{m|indent|<indent>}}
  <indent>  =  '''1'''    ->  :
  '''<indent>''' =  '''1'''    ->  :
               '''2'''    ->  ::
               '''2'''    ->  ::
               '''3'''    ->  :::
               '''3'''    ->  :::
Line 20: Line 20:


;Example
;Example
:<nowiki>{{indent|3}}Level 3 indent.</nowiki><br>{{indent|3}}Level 3 indent.
:{{m|indent|3}}Level 3 indent.<br>{{indent|3}}Level 3 indent.


;Used by the templates
;Used by the templates

Revision as of 22:58, 6 May 2009

Info
Prepend requested indent level.
Syntax
{{indent|<indent>}}
<indent>  =  1    ->  :
             2    ->  ::
             3    ->  :::
             4    ->  ::::
             5    ->  :::::
             6    ->  ::::::
      else        ->         (no indent, default)          
Example
{{indent|3}}Level 3 indent.
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.