Template:Flatlist/testcases

{{template test cases notice}}

Without options

= Active =

==old syntax==

{{flatlist}}

{{endflatlist}}

==new syntax==

{{flatlist|

}}

==ordered==

{{flatlist|

  1. cat
  2. dog
  3. horse
  4. cow
  5. sheep
  6. pig

}}

= Sandbox =

==old syntax==

{{flatlist/sandbox}}

{{endflatlist}}

==new syntax==

{{flatlist/sandbox|

}}

==ordered==

{{flatlist/sandbox|

  1. cat
  2. dog
  3. horse
  4. cow
  5. sheep
  6. pig

}}

Test indent

= Active =

{{flatlist|indent=2|

}}

= Sandbox =

{{flatlist/sandbox|indent=2|

}}

Other style properties

= Active =

{{flatlist|style=width:30em; text-align:center;|

}}

= Sandbox =

{{flatlist/sandbox|style=width:30em; text-align:center;|

}}

Mixed

= Active =

{{flatlist|indent=2|style=background-color:pink;|

}}

= Sandbox =

{{flatlist/sandbox|indent=2|style=background-color:pink;|

}}

Use inside a table

=Active=

  • Before flatlist 1 {{flatlist|

    • Flat
    • List
    • One

    }}

    After flatlist 1

  • =Sandbox=

  • Before flatlist 1 {{flatlist/sandbox|

    • Flat
    • List
    • One

    }}

    After flatlist 1

  • With second level of asterisks