Difference between revisions of "Template:Flatlist/testcases"
Jump to navigation
Jump to search
imported>Droll (tests) |
imported>Evad37 m (→Use inside a table: flatlist/sandbox) |
||
| (9 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{template test cases notice}} | {{template test cases notice}} | ||
| − | + | == Without options == | |
| − | + | === Active === | |
| − | |||
| − | === | + | ====old syntax==== |
| − | + | {{flatlist}} | |
| + | *[[cat]] | ||
| + | *[[dog]] | ||
| + | *[[horse]] | ||
| + | *[[cow]] | ||
| + | *[[sheep]] | ||
| + | *[[pig]] | ||
| + | {{endflatlist}} | ||
| + | ====new syntax==== | ||
| + | {{flatlist| | ||
| + | *[[cat]] | ||
| + | *[[dog]] | ||
| + | *[[horse]] | ||
| + | *[[cow]] | ||
| + | *[[sheep]] | ||
| + | *[[pig]] | ||
| + | }} | ||
| + | |||
| + | ====ordered==== | ||
| + | {{flatlist| | ||
| + | #[[cat]] | ||
| + | #[[dog]] | ||
| + | #[[horse]] | ||
| + | #[[cow]] | ||
| + | #[[sheep]] | ||
| + | #[[pig]] | ||
| + | }} | ||
| + | |||
| + | === Sandbox === | ||
| + | |||
| + | ====old syntax==== | ||
{{flatlist/sandbox}} | {{flatlist/sandbox}} | ||
*[[cat]] | *[[cat]] | ||
| Line 14: | Line 43: | ||
*[[sheep]] | *[[sheep]] | ||
*[[pig]] | *[[pig]] | ||
| − | {{endflatlist | + | {{endflatlist}} |
| + | |||
| + | ====new syntax==== | ||
{{flatlist/sandbox| | {{flatlist/sandbox| | ||
*[[cat]] | *[[cat]] | ||
| Line 24: | Line 55: | ||
}} | }} | ||
| − | + | ====ordered==== | |
| + | {{flatlist/sandbox| | ||
| + | #[[cat]] | ||
| + | #[[dog]] | ||
| + | #[[horse]] | ||
| + | #[[cow]] | ||
| + | #[[sheep]] | ||
| + | #[[pig]] | ||
| + | }} | ||
| + | |||
| + | == Test indent == | ||
| − | + | === Active === | |
| − | {{flatlist | + | {{flatlist|indent=2| |
*[[cat]] | *[[cat]] | ||
*[[dog]] | *[[dog]] | ||
| Line 34: | Line 75: | ||
*[[sheep]] | *[[sheep]] | ||
*[[pig]] | *[[pig]] | ||
| − | + | }} | |
| − | {{flatlist| | + | |
| + | === Sandbox === | ||
| + | {{flatlist/sandbox|indent=2| | ||
*[[cat]] | *[[cat]] | ||
*[[dog]] | *[[dog]] | ||
| Line 43: | Line 86: | ||
*[[pig]] | *[[pig]] | ||
}} | }} | ||
| − | |||
| − | == | + | == Other style properties == |
| − | |||
| − | |||
| − | |||
| − | === | + | === Active === |
| − | + | {{flatlist|style=width:30em; text-align:center;| | |
| − | {{flatlist | ||
*[[cat]] | *[[cat]] | ||
*[[dog]] | *[[dog]] | ||
| Line 59: | Line 97: | ||
*[[sheep]] | *[[sheep]] | ||
*[[pig]] | *[[pig]] | ||
| − | + | }} | |
| − | {{flatlist/sandbox| | + | |
| + | === Sandbox === | ||
| + | {{flatlist/sandbox|style=width:30em; text-align:center;| | ||
*[[cat]] | *[[cat]] | ||
*[[dog]] | *[[dog]] | ||
| Line 69: | Line 109: | ||
}} | }} | ||
| + | == Mixed == | ||
| − | + | === Active === | |
| − | {{flatlist | + | {{flatlist|indent=2|style=background-color:pink;| |
*[[cat]] | *[[cat]] | ||
*[[dog]] | *[[dog]] | ||
| Line 78: | Line 119: | ||
*[[sheep]] | *[[sheep]] | ||
*[[pig]] | *[[pig]] | ||
| − | + | }} | |
| − | {{flatlist/sandbox|style= | + | |
| + | === Sandbox === | ||
| + | {{flatlist/sandbox|indent=2|style=background-color:pink;| | ||
*[[cat]] | *[[cat]] | ||
*[[dog]] | *[[dog]] | ||
| Line 87: | Line 130: | ||
*[[pig]] | *[[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
| This is the template test cases page for the sandbox of Template:Flatlist. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
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
|
Sandbox
|