PathfinderWiki
Log in

Template:Columnar list ordered/doc

From PathfinderWiki

{{Columnar list ordered}} provides a way to make ordered lists with multiple columns and arbitrary starting values. It is an updated version of {{Multi-column numbered list}} that uses {{Div col}} to create flexible lists with a number of columns that automatically adjusts itself based on the web browser's width and available space on the page.

Usage

{{Columnar list ordered | colwidth = | gap = | rules = | lst = | style = | 1 |
<li>A list item</li>
<li>Another list item</li>
...
}}
colwidth (recommended)
Optimal, but strongly recommended, desired column width as a CSS-compatible unit. Defaults to 25em. For consistent behavior when using multiple lists on a page, specify the colwidth for each list, even if you intend to use the 25em default.
gap (optional)
Optimal desired width for gaps ("gutters") between columns as a CSS-compatible unit. Defaults to 1em.
rules (optional)
Whether to draw vertical lines ("rules") between columns. Enable this setting by providing any value to this parameter—even "rules = no" or "rules = false" will enable rules.
lst (optional)
Short for "list-style-type", the CSS style that sets the ordered list type. Defaults to decimal, resulting in a numbered list.
style (optional)
Passes any CSS styles to {{Div col}}. See {{Div col}} for useful examples.
1 (a number)
The required first parameter should be the list's starting number. For instance, if the list should start with "1.", enter 1. If it should start with "20.", enter 20. This allows multiple lists on a page to provide continuous numbers.
2 (list items)
List items demarcated by HTML list item elements (<li>). Wiki markup lists, such as lines beginning with * or #, will not work.

Examples

Simple example

{{Columnar list ordered | colwidth = 10em | 1 |
<li>Blood algae swarm (4)</li>
<li>Crowntop kings (4)</li>
<li>Dagio the Great</li>
<li>Domovoi (3)</li>
<li>Fair-Minded Efarni</li>
<li>Fantionette</li>
<li>Gishvit (4)</li>
<li>Grassling (2)</li>
<li>Guardian scroll</li>
}}

results in:

    1. Blood algae swarm (4)
    2. Crowntop kings (4)
    3. Dagio the Great
    4. Domovoi (3)
    5. Fair-Minded Efarni
    6. Fantionette
    7. Gishvit (4)
    8. Grassling (2)
    9. Guardian scroll

Complex example

{{Columnar list ordered | colwidth = 10em | gap = 2em | rules = yes | lst = lower-roman | style = color: Red; | 20 |
<li>Blood algae swarm (4)</li>
<li>Crowntop kings (4)</li>
<li>Dagio the Great</li>
<li>Domovoi (3)</li>
<li>Fair-Minded Efarni</li>
<li>Fantionette</li>
<li>Gishvit (4)</li>
<li>Grassling (2)</li>
<li>Guardian scroll</li>
<li>Halfling killer</li>
<li>Imistos Gulbend</li>
<li>Nibs</li>
<li>Oaca</li>
<li>Rat swarm (4)</li>
<li>Surly servants (4)</li>
<li>Viecar</li>
<li>Wyssilka the Child Blade</li>
<li>Wyssilka the Fantabulous</li>
}}

results in:

    1. Blood algae swarm (4)
    2. Crowntop kings (4)
    3. Dagio the Great
    4. Domovoi (3)
    5. Fair-Minded Efarni
    6. Fantionette
    7. Gishvit (4)
    8. Grassling (2)
    9. Guardian scroll
    10. Halfling killer
    11. Imistos Gulbend
    12. Nibs
    13. Oaca
    14. Rat swarm (4)
    15. Surly servants (4)
    16. Viecar
    17. Wyssilka the Child Blade
    18. Wyssilka the Fantabulous