"साँचा:Div col end" के अवतरणों में अंतर

मुक्त ज्ञानकोश विकिपीडिया से
नेविगेशन पर जाएँ खोज पर जाएँ
imported>YiFeiBot
छो (Bot: Migrating 2 langlinks, now provided by Wikidata on d:q5899344)
 
छो (१ अवतरण आयात किया गया)
 
(एक अन्य सदस्य द्वारा किया गया बीच का एक अवतरण नहीं दर्शाया गया)
पंक्ति १: पंक्ति १:
<includeonly></div></includeonly><noinclude>{{Documentation|Template:Div col/doc}}
<includeonly></div></includeonly><noinclude>
 
{{Documentation|Template:Div col/doc}}
</noinclude>
</noinclude>

०६:२०, २० जून २०२२ के समय का अवतरण

साँचा:template otherसाँचा:documentation/start box2 This template is used to make a list into columns, with the option of specifying a smaller font. It has the advantage over other column templates (i.e. साँचा:tl) that it automatically breaks each column to an equal space, so you do not manually have to find the "half way" point on two columns, for instance.

This template can create multiple columns in web browsers which support one of the following CSS properties:

Therefore, the template does not work in browsers such as Internet Explorer and Opera (see Template:Reflist#Browser support for columns).

Usage

cols =
Specifies the number of columns. Defaults to 2.
colwidth =
Can be used instead of cols to set the number of columns based on width instead. colwidth=200px will result in more columns being shown on wider displays, while colwidth=33% will result in three columns.
small =
Specifies small font size (90%) if set to yes.

Examples

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
Produces
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
{{Div col|cols=3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
Produces
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
Produces

साँचा:div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
Produces
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

See also


साँचा:pp-template साँचा:documentation/end box2