Template:Columns-list

From Aether Project Wiki
Jump to navigation Jump to search


[view | edit | history | purge]Documentation

This template is for use in a list in the body of an article, rather than in a navigation template like Template:Navbox. Based on Template:Reflist, but different in that the text to be displayed is manually created rather than a list of references.

Usage

The width of each column may be specified using colwidth and a value in ems.

{{columns-list|colwidth=width|
Text (usually a list)
}}

Here, width specifies the width of the columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays.

If colwidth is not specified, the default width of 20em will be used.

This template uses CSS3 multiple-column layout, which is not supported by all web browsers.

Examples

Here is an example:

{{columns-list|colwidth=20em|
* [[Ambrosium Shard]]
* [[Arkait]]
* [[Baradex]]
* [[Book of Lore]]
* [[Burrus]]
* [[Fallreach]]
* [[Ferratae]]
* [[Frostgard]]
* [[Frosthold]]
* [[Gilded Games]]
* [[Kraisum]]
* [[Krosunda]]
* [[Moon Sect]]
* [[Tallenreach]]
}}

which would render as:


CSS styles can also be added in addition to the colwidth parameter. For example:

{{columns-list|colwidth=15em|style=width: 600px; font-style: italic;|
* All About Lily Chou-Chou
* April Story
* Hana and Alice
* Hōtai Club
* The Kon Ichikawa Story
* Love Letter (1995 film)
* New York, I Love You
* Picnic (1996 film)
* Rainbow Song
* Swallowtail
}}

which would render as:

  • All About Lily Chou-Chou
  • April Story
  • Hana and Alice
  • Hōtai Club
  • The Kon Ichikawa Story
  • Love Letter (1995 film)
  • New York, I Love You
  • Picnic (1996 film)
  • Rainbow Song
  • Swallowtail
[view | edit | history | purge]The above documentation is transcluded from Template:Columns-list/doc.