Template:Flatlist/doc: Difference between revisions
Tag: Reverted |
Tag: Manual revert |
||
Line 87: | Line 87: | ||
} | } | ||
}} | }} | ||
}} | |||
== Examples == | |||
<syntaxhighlight lang="text"> | |||
{{flatlist| | |||
* [[cat]] | |||
* [[dog]] | |||
* [[horse]] | |||
* [[cow]] | |||
* [[sheep]] | |||
* [[pig]] | |||
}} | |||
</syntaxhighlight> | |||
produces: | |||
{{flatlist| | |||
* [[cat]] | |||
* [[dog]] | |||
* [[horse]] | |||
* [[cow]] | |||
* [[sheep]] | |||
* [[pig]] | |||
}} | |||
=== Alternative syntax === | |||
<syntaxhighlight lang="text"> | |||
{{startflatlist}} | |||
* [[cat]] | |||
* [[dog]] | |||
* [[horse]] | |||
* [[cow]] | |||
* [[sheep]] | |||
* [[pig]] | |||
{{endflatlist}} | |||
</syntaxhighlight> | |||
produces: | |||
{{startflatlist}} | |||
* [[cat]] | |||
* [[dog]] | |||
* [[horse]] | |||
* [[cow]] | |||
* [[sheep]] | |||
* [[pig]] | |||
{{endflatlist}} | |||
=== Syntax for ordered lists === | |||
<syntaxhighlight lang="text"> | |||
{{flatlist| | |||
# [[first]] | |||
# [[second]] | |||
# [[third]] | |||
# [[fourth]] | |||
# [[fifth]] | |||
# [[sixth]] | |||
}} | |||
</syntaxhighlight> | |||
produces: | |||
{{flatlist| | |||
# [[first]] | |||
# [[second]] | |||
# [[third]] | |||
# [[fourth]] | |||
# [[fifth]] | |||
# [[sixth]] | |||
}} | |||
=== Using optional parameters === | |||
<syntaxhighlight lang="text"> | |||
{{flatlist |indent=2 | |||
|style=border:solid 1px silver; background:lightyellow; | |||
|class=nowraplinks | | |||
* [[Alpine skiing at the 1936 Winter Olympics]] | |||
* [[Alpine skiing at the 1948 Winter Olympics]] | |||
* [[Alpine skiing at the 1952 Winter Olympics]] | |||
* [[Alpine skiing at the 1956 Winter Olympics]] | |||
* [[Alpine skiing at the 1960 Winter Olympics]] | |||
* [[Alpine skiing at the 1964 Winter Olympics]] | |||
}} | |||
</syntaxhighlight> | |||
produces: | |||
{{flatlist |indent=2 |style=border:solid 1px silver; background:lightyellow; |class=nowraplinks | | |||
* [[Alpine skiing at the 1936 Winter Olympics]] | |||
* [[Alpine skiing at the 1948 Winter Olympics]] | |||
* [[Alpine skiing at the 1952 Winter Olympics]] | |||
* [[Alpine skiing at the 1956 Winter Olympics]] | |||
* [[Alpine skiing at the 1960 Winter Olympics]] | |||
* [[Alpine skiing at the 1964 Winter Olympics]] | |||
}} | }} | ||