en>WOSlinker (text) |
JonTillman (talk | contribs) m (1 revision imported) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
== Usage == | ===Usage=== | ||
{{tl| | {{tl|Flatlist}} starts a horizontal list, such as: | ||
{{flatlist}} | |||
*[[Cookbook:Appetizers|Appetizers]] | |||
*[[Cookbook:Beverages|Beverages]] | |||
*[[Cookbook:Bread Recipes|Bread]] | |||
*[[Cookbook:Breakfast Recipes|Breakfast]] | |||
*[[Cookbook:Confections|Confections]] | |||
*[[Cookbook:Dessert|Desserts]] | |||
*[[Cookbook:Meat Recipes|Meats]] | |||
*[[Cookbook:Pasta Recipes|Pasta]] | |||
*[[Cookbook:Rice Recipes|Rice]] | |||
*[[Cookbook:Salad Recipes|Salads]] | |||
{{endflatlist}} | |||
The bottom margin is inherited from the current container. Normally this will be 0.5em. This template can be used with or without {{tl|endflatlist}}. | |||
{{ | For navigation boxes using {{tl|navbox}}, one can set {{para|listclass|hlist}}, and achieve the same styling without using this template. | ||
}} | |||
===Examples=== | |||
<pre><nowiki> | |||
== | {{flatlist | | ||
*[[Cookbook:Appetizers|Appetizers]] | |||
*[[Cookbook:Beverages|Beverages]] | |||
{ | *[[Cookbook:Bread Recipes|Bread]] | ||
*[[Cookbook:Breakfast Recipes|Breakfast]] | |||
*[[Cookbook:Confections|Confections]] | |||
*[[Cookbook:Dessert|Desserts]] | |||
*[[Cookbook:Meat Recipes|Meats]] | |||
*[[Cookbook:Pasta Recipes|Pasta]] | |||
*[[Cookbook:Rice Recipes|Rice]] | |||
*[[Cookbook:Salad Recipes|Salads]] | |||
}} | }} | ||
</nowiki></pre> | |||
{{flatlist | | |||
*[[Cookbook:Appetizers|Appetizers]] | |||
{{flatlist| | *[[Cookbook:Beverages|Beverages]] | ||
* [[ | *[[Cookbook:Bread Recipes|Bread]] | ||
* [[ | *[[Cookbook:Breakfast Recipes|Breakfast]] | ||
* [[ | *[[Cookbook:Confections|Confections]] | ||
* [[ | *[[Cookbook:Dessert|Desserts]] | ||
* [[ | *[[Cookbook:Meat Recipes|Meats]] | ||
* [[ | *[[Cookbook:Pasta Recipes|Pasta]] | ||
*[[Cookbook:Rice Recipes|Rice]] | |||
*[[Cookbook:Salad Recipes|Salads]] | |||
}} | }} | ||
;Alternative syntax: | |||
<pre><nowiki> | |||
{{flatlist | {{flatlist}} | ||
* [[ | *[[Cookbook:Appetizers|Appetizers]] | ||
* [[ | *[[Cookbook:Beverages|Beverages]] | ||
* [[ | *[[Cookbook:Bread Recipes|Bread]] | ||
* [[ | *[[Cookbook:Breakfast Recipes|Breakfast]] | ||
* [[ | *[[Cookbook:Confections|Confections]] | ||
* [[ | *[[Cookbook:Dessert|Desserts]] | ||
*[[Cookbook:Meat Recipes|Meats]] | |||
*[[Cookbook:Pasta Recipes|Pasta]] | |||
*[[Cookbook:Rice Recipes|Rice]] | |||
*[[Cookbook:Salad Recipes|Salads]] | |||
* [[ | |||
* [[ | |||
* [[ | |||
* [[ | |||
{{endflatlist}} | {{endflatlist}} | ||
</ | </nowiki></pre> | ||
{{ | {{flatlist}} | ||
* [[ | *[[Cookbook:Appetizers|Appetizers]] | ||
* [[ | *[[Cookbook:Beverages|Beverages]] | ||
* [[ | *[[Cookbook:Bread Recipes|Bread]] | ||
* [[ | *[[Cookbook:Breakfast Recipes|Breakfast]] | ||
* [[ | *[[Cookbook:Confections|Confections]] | ||
* [[ | *[[Cookbook:Dessert|Desserts]] | ||
*[[Cookbook:Meat Recipes|Meats]] | |||
*[[Cookbook:Pasta Recipes|Pasta]] | |||
*[[Cookbook:Rice Recipes|Rice]] | |||
*[[Cookbook:Salad Recipes|Salads]] | |||
{{endflatlist}} | {{endflatlist}} | ||
;Syntax for ordered lists: | |||
< | <pre><nowiki> | ||
{{flatlist| | {{flatlist | class=hnum | | ||
# [[ | #[[Cookbook:Appetizers|Appetizers]] | ||
# [[ | #[[Cookbook:Beverages|Beverages]] | ||
# [[ | #[[Cookbook:Bread Recipes|Bread]] | ||
# [[ | #[[Cookbook:Breakfast Recipes|Breakfast]] | ||
# [[ | #[[Cookbook:Confections|Confections]] | ||
# [[ | #[[Cookbook:Dessert|Desserts]] | ||
#[[Cookbook:Meat Recipes|Meats]] | |||
#[[Cookbook:Pasta Recipes|Pasta]] | |||
#[[Cookbook:Rice Recipes|Rice]] | |||
#[[Cookbook:Salad Recipes|Salads]] | |||
# [[ | |||
# [[ | |||
# [[ | |||
# [[ | |||
}} | }} | ||
</nowiki></pre> | |||
{{flatlist | class=hnum | | |||
#[[Cookbook:Appetizers|Appetizers]] | |||
{{flatlist | | #[[Cookbook:Beverages|Beverages]] | ||
| | #[[Cookbook:Bread Recipes|Bread]] | ||
| | #[[Cookbook:Breakfast Recipes|Breakfast]] | ||
#[[Cookbook:Confections|Confections]] | |||
#[[Cookbook:Dessert|Desserts]] | |||
#[[Cookbook:Meat Recipes|Meats]] | |||
#[[Cookbook:Pasta Recipes|Pasta]] | |||
#[[Cookbook:Rice Recipes|Rice]] | |||
#[[Cookbook:Salad Recipes|Salads]] | |||
}} | }} | ||
===Parameters=== | |||
* '''class''' – adds a CSS class to the containing div. | |||
* '''style''' – adds CSS style options. | |||
::Example: {{para|<var>style</var>|<var>border:solid 1px silver; background:lightyellow</var>}} | |||
* '''indent''' – indents the list by a number of standard indents (one indent being 1.6em), particularly handy for inclusion in an indented discussion thread. | |||
::Example: {{para|<var>indent</var>|<var>2</var>}} | |||
== | |||
{{ | |||
< | |||
< | |||
< | |||
< | |||
== See also == | ===See also=== | ||
* {{tl|endflatlist}} | * {{tl|endflatlist}} | ||
* {{tl| | * {{tl|plainlist}} | ||
* | * {{tl|unbulleted list}} | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | |||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | |||
[[ka:თარგი:Flatlist]] | |||
[[Category:List formatting templates|{{PAGENAME}}]] | |||
<!-- | |||
[[ | |||
[[Category:List formatting | |||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 18:17, 25 October 2022
| This is a documentation subpage for Template:Flatlist. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
{{Flatlist}} starts a horizontal list, such as:
The bottom margin is inherited from the current container. Normally this will be 0.5em. This template can be used with or without {{endflatlist}}.
For navigation boxes using {{navbox}}, one can set |listclass=hlist, and achieve the same styling without using this template.
Examples
{{flatlist |
*[[Cookbook:Appetizers|Appetizers]]
*[[Cookbook:Beverages|Beverages]]
*[[Cookbook:Bread Recipes|Bread]]
*[[Cookbook:Breakfast Recipes|Breakfast]]
*[[Cookbook:Confections|Confections]]
*[[Cookbook:Dessert|Desserts]]
*[[Cookbook:Meat Recipes|Meats]]
*[[Cookbook:Pasta Recipes|Pasta]]
*[[Cookbook:Rice Recipes|Rice]]
*[[Cookbook:Salad Recipes|Salads]]
}}
- Alternative syntax
{{flatlist}}
*[[Cookbook:Appetizers|Appetizers]]
*[[Cookbook:Beverages|Beverages]]
*[[Cookbook:Bread Recipes|Bread]]
*[[Cookbook:Breakfast Recipes|Breakfast]]
*[[Cookbook:Confections|Confections]]
*[[Cookbook:Dessert|Desserts]]
*[[Cookbook:Meat Recipes|Meats]]
*[[Cookbook:Pasta Recipes|Pasta]]
*[[Cookbook:Rice Recipes|Rice]]
*[[Cookbook:Salad Recipes|Salads]]
{{endflatlist}}
- Syntax for ordered lists
{{flatlist | class=hnum |
#[[Cookbook:Appetizers|Appetizers]]
#[[Cookbook:Beverages|Beverages]]
#[[Cookbook:Bread Recipes|Bread]]
#[[Cookbook:Breakfast Recipes|Breakfast]]
#[[Cookbook:Confections|Confections]]
#[[Cookbook:Dessert|Desserts]]
#[[Cookbook:Meat Recipes|Meats]]
#[[Cookbook:Pasta Recipes|Pasta]]
#[[Cookbook:Rice Recipes|Rice]]
#[[Cookbook:Salad Recipes|Salads]]
}}
Parameters
- class – adds a CSS class to the containing div.
- style – adds CSS style options.
- Example:
|style=border:solid 1px silver; background:lightyellow
- Example:
- indent – indents the list by a number of standard indents (one indent being 1.6em), particularly handy for inclusion in an indented discussion thread.
- Example:
|indent=2
- Example:
See also
- {{endflatlist}}
- {{plainlist}}
- {{unbulleted list}}