Sjabloon:Col-list: verschil tussen versies

Uit informatiestandaarden
Naar navigatie springen Naar zoeken springen
(Nieuwe pagina aangemaakt met '{{Documentation subpage}} {{hatnote|Not to be confused with Template:Columns-list}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> A t...')
 
 
Regel 1: Regel 1:
{{Documentation subpage}}
+
{{#ifeq:{{{pos|}}}|start|{{{!}} valign="top"
{{hatnote|Not to be confused with [[Template:Columns-list]]}}
+
{{!}}-}}<includeonly>
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
| valign="top" | <{{#ifeq:{{{type|}}}|ul|ul|ol}} {{#ifeq:{{{type|ol}}}|ol|start="{{#if:{{{init|}}}|{{{init}}}|1}}"}}  style="list-style-type:{{{lst|{{#ifeq:{{{type|}}}|ul|square|decimal}}}}}">
A template for making columned lists.
+
{{#if:{{{1|}}} | <li>{{{1}}}</li>
 
+
}}{{#if:{{{2|}}} | <li>{{{2}}}</li>
=== Usage ===
+
}}{{#if:{{{3|}}} | <li>{{{3}}}</li>
<nowiki>{{ col-list | pos=start | init=... | type=... | lst=... | listitem | listitem | listitem |...}}</nowiki><br>
+
}}{{#if:{{{4|}}} | <li>{{{4}}}</li>
<nowiki>{{ col-list | init=... | type=... | lst=... | listitem | listitem | listitem |...}}</nowiki><br>
+
}}{{#if:{{{5|}}} | <li>{{{5}}}</li>
<nowiki>{{ col-list | pos=end | init=... | type=... | lst=... | listitem | listitem | listitem |...}}</nowiki><br>
+
}}{{#if:{{{6|}}} | <li>{{{6}}}</li>
 
+
}}{{#if:{{{7|}}} | <li>{{{7}}}</li>
Use one instance of this template for each column in the list.  The first column should have the value of the 'pos' parameter set to 'start' and the last column should have it set to 'end'.  the initial values for ordered lists need to be set by hand.
+
}}{{#if:{{{8|}}} | <li>{{{8}}}</li>
 
+
}}{{#if:{{{9|}}} | <li>{{{9}}}</li>
Currently the template supports a maximum of 50 entries per column.  It can be easily expanded, however.  Leave a note on the talk page if you require more entries.
+
}}{{#if:{{{10|}}} | <li>{{{10}}}</li>
 
+
}}{{#if:{{{11|}}} | <li>{{{11}}}</li>
=== Parameters ===
+
}}{{#if:{{{12|}}} | <li>{{{12}}}</li>
The template takes the following parameters:
+
}}{{#if:{{{13|}}} | <li>{{{13}}}</li>
*pos: determines whether this is a first, last or middle column.  Use 'start' for the first colmn, 'end' for the last column, and leave it blank for a middle column.
+
}}{{#if:{{{14|}}} | <li>{{{14}}}</li>
*type: 'ol' for an ordered list, 'ul' for an unordered list.  defaults to 'ol'
+
}}{{#if:{{{15|}}} | <li>{{{15}}}</li>
*init: for ordered lists, the initial value for a given column
+
}}{{#if:{{{16|}}} | <li>{{{16}}}</li>
*lst: list style type.  the valid CSS values are currently disc, circle, square, decimal, decimal-leading-zero, lower-roman, upper-roman, lower-greek, lower-latin, upper-latin, armenian, georgian, lower-alpha, upper-alpha, and none (appropriate to the type of list).  defaults to decimal for ordered lists and square for unordered lists
+
}}{{#if:{{{17|}}} | <li>{{{17}}}</li>
 
+
}}{{#if:{{{18|}}} | <li>{{{18}}}</li>
===Example===
+
}}{{#if:{{{19|}}} | <li>{{{19}}}</li>
{|
+
}}{{#if:{{{20|}}} | <li>{{{20}}}</li>
! Code !! Produces
+
}}{{#if:{{{21|}}} | <li>{{{21}}}</li>
|-
+
}}{{#if:{{{22|}}} | <li>{{{22}}}</li>
|<pre>
+
}}{{#if:{{{23|}}} | <li>{{{23}}}</li>
{{col-list|pos=start|A|B|C|D}}
+
}}{{#if:{{{24|}}} | <li>{{{24}}}</li>
{{col-list|init=5|E|G|G|H}}
+
}}{{#if:{{{25|}}} | <li>{{{25}}}</li>
{{col-list|pos=end|init=9|I|J|K|L|M}}
+
}}{{#if:{{{26|}}} | <li>{{{26}}}</li>
</pre>
+
}}{{#if:{{{27|}}} | <li>{{{27}}}</li>
|{{col-list|pos=start|A|B|C|D}}
+
}}{{#if:{{{28|}}} | <li>{{{28}}}</li>
{{col-list|init=5|E|G|G|H}}
+
}}{{#if:{{{29|}}} | <li>{{{29}}}</li>
{{col-list|pos=end|init=9|I|J|K|L|M}}
+
}}{{#if:{{{30|}}} | <li>{{{30}}}</li>
|-
+
}}{{#if:{{{31|}}} | <li>{{{31}}}</li>
|<pre>
+
}}{{#if:{{{32|}}} | <li>{{{32}}}</li>
{{col-list|pos=start|lst=lower-roman|A|B|C|D}}
+
}}{{#if:{{{33|}}} | <li>{{{33}}}</li>
{{col-list|lst=lower-roman|init=5|E|G|G|H}}
+
}}{{#if:{{{34|}}} | <li>{{{34}}}</li>
{{col-list|pos=end|lst=lower-roman|init=9|I|J|K|L|M}}
+
}}{{#if:{{{35|}}} | <li>{{{35}}}</li>
</pre>
+
}}{{#if:{{{36|}}} | <li>{{{36}}}</li>
|{{col-list|pos=start|lst=lower-roman|A|B|C|D}}
+
}}{{#if:{{{37|}}} | <li>{{{37}}}</li>
{{col-list|lst=lower-roman|init=5|E|G|G|H}}
+
}}{{#if:{{{38|}}} | <li>{{{38}}}</li>
{{col-list|pos=end|lst=lower-roman|init=9|I|J|K|L|M}}
+
}}{{#if:{{{39|}}} | <li>{{{39}}}</li>
 
+
}}{{#if:{{{40|}}} | <li>{{{40}}}</li>
|-
+
}}{{#if:{{{41|}}} | <li>{{{41}}}</li>
|<pre>
+
}}{{#if:{{{42|}}} | <li>{{{42}}}</li>
{{col-list|type=ul|pos=start|lst=circle|A|B|C|D}}
+
}}{{#if:{{{43|}}} | <li>{{{43}}}</li>
{{col-list|type=ul|E|G|G|H}}
+
}}{{#if:{{{44|}}} | <li>{{{44}}}</li>
{{col-list|type=ul|pos=end|lst=disc|init=5|I|J|K|L|M}}
+
}}{{#if:{{{45|}}} | <li>{{{45}}}</li>
</pre>
+
}}{{#if:{{{46|}}} | <li>{{{46}}}</li>
|{{col-list|type=ul|pos=start|lst=circle|A|B|C|D}}
+
}}{{#if:{{{47|}}} | <li>{{{47}}}</li>
{{col-list|type=ul|E|G|G|H}}
+
}}{{#if:{{{48|}}} | <li>{{{48}}}</li>
{{col-list|type=ul|pos=end|lst=disc|init=5|I|J|K|L|M}}
+
}}{{#if:{{{49|}}} | <li>{{{49}}}</li>
|}
+
}}{{#if:{{{50|}}} | <li>{{{50}}}</li>
 
+
}}
Different list style types are not supported on Wikipedia for unordered lists.
+
</includeonly></{{#ifeq:{{{type|}}}|ul|ul|ol}}>
 
+
{{#ifeq:{{{pos|}}}|end|{{!}}} }}<noinclude>
=== See also ===
+
{{documentation}}
* {{tl|div col}}
+
</noinclude>
* {{tl|columns}}
 
* [[Template:Columns-list]]
 
* {{tl|Col-begin}} ({{tl|Col-start}}), {{tl|Col-begin-small}} {{lts/|Col-begin}}
 
** {{tl|Col-break}}
 
** {{tl|Col-2}} <small>({{tl|Col-1-of-2}}, {{tl|Col-2-of-2}})</small>
 
** {{tl|Col-3}} <small>({{tl|Col-1-of-3}}, {{tl|Col-2-of-3}}, {{tl|Col-3-of-3}})</small>
 
** {{tl|Col-4}} <small>({{tl|Col-1-of-4}}, {{tl|Col-2-of-4}}, {{tl|Col-3-of-4}}, {{tl|Col-4-of-4}})</small>
 
** {{tl|Col-5}} <small>({{tl|Col-1-of-5}}, {{tl|Col-2-of-5}}, {{tl|Col-3-of-5}}, {{tl|Col-4-of-5}}, {{tl|Col-5-of-5}})</small>
 
** {{tl|Col-break}}
 
* {{tl|Col-end}} ({{tl|End}})
 
* {{tl|Top}}, {{tl|Mid}}, {{tl|Bottom}}
 
* {{tl|Columns-start}}, {{tl|Column}}, {{tl|Columns-end}} {{lts/|Columns-start}}
 
* {{tl|Multicol}}, {{tl|Multicol-break}}, {{tl|Multicol-end}} {{lts/|Multicol}}
 
* {{tl|Div col}}, {{tl|Div col end}} {{lts/|Div col}}
 
 
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Table and column templates]]
 
</includeonly>
 

Huidige versie van 17 jul 2013 om 23:19

[bewerken] [purge] Template documentation

A template for making columned lists.

Usage

{{ col-list | pos=start | init=... | type=... | lst=... | listitem | listitem | listitem |...}}
{{ col-list | init=... | type=... | lst=... | listitem | listitem | listitem |...}}
{{ col-list | pos=end | init=... | type=... | lst=... | listitem | listitem | listitem |...}}

Use one instance of this template for each column in the list. The first column should have the value of the 'pos' parameter set to 'start' and the last column should have it set to 'end'. the initial values for ordered lists need to be set by hand.

Currently the template supports a maximum of 50 entries per column. It can be easily expanded, however. Leave a note on the talk page if you require more entries.

Parameters

The template takes the following parameters:

  • pos: determines whether this is a first, last or middle column. Use 'start' for the first colmn, 'end' for the last column, and leave it blank for a middle column.
  • type: 'ol' for an ordered list, 'ul' for an unordered list. defaults to 'ol'
  • init: for ordered lists, the initial value for a given column
  • lst: list style type. the valid CSS values are currently disc, circle, square, decimal, decimal-leading-zero, lower-roman, upper-roman, lower-greek, lower-latin, upper-latin, armenian, georgian, lower-alpha, upper-alpha, and none (appropriate to the type of list). defaults to decimal for ordered lists and square for unordered lists

Example

Code Produces
{{col-list|pos=start|A|B|C|D}}
{{col-list|init=5|E|G|G|H}}
{{col-list|pos=end|init=9|I|J|K|L|M}}
  1. A
  2. B
  3. C
  4. D


  1. E
  2. G
  3. G
  4. H


  1. I
  2. J
  3. K
  4. L
  5. M
{{col-list|pos=start|lst=lower-roman|A|B|C|D}}
{{col-list|lst=lower-roman|init=5|E|G|G|H}}
{{col-list|pos=end|lst=lower-roman|init=9|I|J|K|L|M}}
  1. A
  2. B
  3. C
  4. D


  1. E
  2. G
  3. G
  4. H


  1. I
  2. J
  3. K
  4. L
  5. M
{{col-list|type=ul|pos=start|lst=circle|A|B|C|D}}
{{col-list|type=ul|E|G|G|H}}
{{col-list|type=ul|pos=end|lst=disc|init=5|I|J|K|L|M}}
  • A
  • B
  • C
  • D


  • E
  • G
  • G
  • H


  • I
  • J
  • K
  • L
  • M

Different list style types are not supported on Wikipedia for unordered lists.

See also