سانچو:Flatlist/doc: جي ورجائن ۾ تفاوت

کليل ڄاڻ چيڪلي، وڪيپيڊيا مان
ڊاٿل مواد شامل ڪيل مواد
نئون صفحو: {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> ===Usage=== {{tl|Flatlist}} starts a horizontal list, such as: {{flatlist}} ...
 
م Bot: Migrating interwiki links, now provided by Wikidata on d:q5622429
سِٽَ 99: سِٽَ 99:
[[Category:Wikipedia list formatting templates]]
[[Category:Wikipedia list formatting templates]]


[[as:Template:Flat list]]
[[fa:الگو:Flat list]]
[[fr:Modèle:Liste éléments]]
[[es:Plantilla:Lista plana]]
[[hi:साँचा:Flatlist]]
[[id:Templat:Flatlist]]
[[ko:틀:Flatlist]]
[[ko:틀:Flatlist]]
[[ja:Template:Flatlist]]
}}</includeonly>
}}</includeonly>

ورجاءُ بمطابق 23:43, 17 آگسٽ 2013ع


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]]
* [[sheep]]
* [[pig]]
}}
Alternative syntax
{{flatlist}}
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
{{endflatlist}}
Syntax for ordered lists
{{flatlist | class=hnum |
# [[first]]
# [[second]]
# [[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
  • 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

See also