Difference between revisions of "Template:Flatlist/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Droll
(test)
imported>Evad37
m (→‎Use inside a table: flatlist/sandbox)
 
(7 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
=== Active ===
 
=== Active ===
  
;old syntax
+
====old syntax====
 
{{flatlist}}
 
{{flatlist}}
 
*[[cat]]
 
*[[cat]]
Line 13: Line 13:
 
{{endflatlist}}
 
{{endflatlist}}
  
;new syntax
+
====new syntax====
 
{{flatlist|
 
{{flatlist|
 
*[[cat]]
 
*[[cat]]
Line 21: Line 21:
 
*[[sheep]]
 
*[[sheep]]
 
*[[pig]]
 
*[[pig]]
 +
}}
 +
 +
====ordered====
 +
{{flatlist|
 +
#[[cat]]
 +
#[[dog]]
 +
#[[horse]]
 +
#[[cow]]
 +
#[[sheep]]
 +
#[[pig]]
 
}}
 
}}
  
 
=== Sandbox ===
 
=== Sandbox ===
  
;old syntax
+
====old syntax====
 
{{flatlist/sandbox}}
 
{{flatlist/sandbox}}
 
*[[cat]]
 
*[[cat]]
Line 35: Line 45:
 
{{endflatlist}}
 
{{endflatlist}}
  
;new syntax
+
====new syntax====
 
{{flatlist/sandbox|
 
{{flatlist/sandbox|
 
*[[cat]]
 
*[[cat]]
Line 45: Line 55:
 
}}
 
}}
  
== Test indent ==
+
====ordered====
;indent=2
+
{{flatlist/sandbox|
 +
#[[cat]]
 +
#[[dog]]
 +
#[[horse]]
 +
#[[cow]]
 +
#[[sheep]]
 +
#[[pig]]
 +
}}
 +
 
 +
== Test indent ==
  
 
=== Active ===
 
=== Active ===
{{flatlist|indent=2|1=
+
{{flatlist|indent=2|
 
*[[cat]]
 
*[[cat]]
 
*[[dog]]
 
*[[dog]]
Line 59: Line 78:
  
 
=== Sandbox ===
 
=== Sandbox ===
{{flatlist/sandbox|indent=2|1=
+
{{flatlist/sandbox|indent=2|
 
*[[cat]]
 
*[[cat]]
 
*[[dog]]
 
*[[dog]]
Line 68: Line 87:
 
}}
 
}}
  
== Other style properties ==
+
== Other style properties ==
style=width:30em; text-align:center;
 
  
 
=== Active ===
 
=== Active ===
{{flatlist|style=width:30em; text-align:center;|1=
+
{{flatlist|style=width:30em; text-align:center;|
 
*[[cat]]
 
*[[cat]]
 
*[[dog]]
 
*[[dog]]
Line 82: Line 100:
  
 
=== Sandbox ===
 
=== Sandbox ===
{{flatlist/sandbox|style=width:30em; text-align:center;|1=
+
{{flatlist/sandbox|style=width:30em; text-align:center;|
 
*[[cat]]
 
*[[cat]]
 
*[[dog]]
 
*[[dog]]
Line 90: Line 108:
 
*[[pig]]
 
*[[pig]]
 
}}
 
}}
 +
 +
== Mixed ==
 +
 +
=== Active ===
 +
{{flatlist|indent=2|style=background-color:pink;|
 +
*[[cat]]
 +
*[[dog]]
 +
*[[horse]]
 +
*[[cow]]
 +
*[[sheep]]
 +
*[[pig]]
 +
}}
 +
 +
=== Sandbox ===
 +
{{flatlist/sandbox|indent=2|style=background-color:pink;|
 +
*[[cat]]
 +
*[[dog]]
 +
*[[horse]]
 +
*[[cow]]
 +
*[[sheep]]
 +
*[[pig]]
 +
}}
 +
 +
==Use inside a table==
 +
===Active===
 +
<div><table class=wikitable><td><li>Before flatlist 1 {{flatlist|
 +
*Flat
 +
*List
 +
*One
 +
}}
 +
After flatlist 1</table></div>
 +
 +
===Sandbox===
 +
<div><table class=wikitable><td><li>Before flatlist 1 {{flatlist/sandbox|
 +
*Flat
 +
*List
 +
*One
 +
}}
 +
After flatlist 1</table></div>

Latest revision as of 00:23, 15 August 2016

Without options

Active

old syntax

new syntax

ordered

Sandbox

old syntax

new syntax

ordered

Test indent

Active

Sandbox

Other style properties

Active

Sandbox

Mixed

Active

Sandbox

Use inside a table

Active

  • Before flatlist 1
    • Flat
    • List
    • One
    After flatlist 1
  • Sandbox

  • Before flatlist 1
    • Flat
    • List
    • One
    After flatlist 1