الگو:Flat list
از ویکیپدیا، دانشنامهٔ آزاد
[ویرایش] [تاریخچه] [پاکسازی میانگیر]
توضیحات الگو
محتویات |
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 |
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[گوسفند]]
* [[pig]]
}}
- Alternative syntax
{{flatlist}}
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[گوسفند]]
* [[pig]]
{{endflatlist}}
- Syntax for ordered lists
{{flatlist | class=hnum |
# [[first]]
# [[ثانیه]]
# [[third]]
# [[fourth]]
# [[fifth]]
# [[sixth]]
}}
Parameters [ویرایش]
- class – adds a CSS class to the containing div.
- style – adds CSS style options. Complex styles should not be used in articles (per wp:deviations) but may be acceptable on user, project, and talk pages.
-
- 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}}
- {{multi-column numbered list}}
- {{nowrap begin}}/{{nowrap end}}
- {{pagelist}}
- WP:HLIST
| توضیحات بالا از الگو:Flat list/توضیحات به این صفحه آورده شدهاند. (ویرایش | تاریخچه) برای آزمایش این الگو به صفحهٔ تمرین (ایجاد | آینه) و نسخهٔ آزمایشی (ایجاد) بروید. لطفاً ردهها و میانویکیها را به زیرصفحهٔ /توضیحات بیفزایید. زیرصفحههای این الگو. |