Template:Listing/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
m (Protected "Template:Listing/doc" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
mNo edit summary
Line 49: Line 49:
<includeonly>
<includeonly>
<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Templates]]
</includeonly>
</includeonly>

Revision as of 01:05, 15 May 2021

Light bulb.png }}
It contains usage information, categories and other content that is not part of the original template page.

Template:Template rating

This template is for use in a list. It automatically breaks the available screen space into equal parts, meaning, for instance, that it is not necessary to guess how many columns to use and then figure out the dividing point(s), e.g., the halfway point to divide the list into two columns, or the one-third and two-thirds points to divide the list into three columns. The default value for the column width is 30em, to change this value use colwidth=#em|.

Use

This template uses CSS3 multiple column layout and is not supported by all Web browsers.

Examples

Here is an example:

{{Listing|
* Apple
* Pear
* Tomato
* Green Bean
* Corn
}}

which would render as:

    • Apple
    • Pear
    • Tomato
    • Green Bean
    • Corn

An example using colwidth

{{Listing|colwidth=15em|
* Apple
* Pear
* Tomato
* Green Bean
* Corn
}}

which would render as:

    • Apple
    • Pear
    • Tomato
    • Green Bean
    • Corn