Template:MultiColListItem

From BattleMaster Wiki
Jump to navigation Jump to search
Template-info.svg Template Documentation
This documentation is transcluded from Template:MultiColListItem/doc.

ExamplesSandbox

Intro

This template is not intended to be used by itself. It is part of a set of three templates that are used to create free-flowing, multi-column lists for use with dynamic lists created by the Semantic Wiki. The three templates in this set are Template:MultiColListTop, Template:MultiColListItem, and Template:MultiColListBottom.

Usage

To use this set in your semantic query output, use the following lines in your query:

| headers = hide
| format = template
| template = MultiColListItem
| introtemplate = MultiColListTop
| outrotemplate = MultiColListBottom

This will provide a 400 pixel wide, two-column list. You can control the width and number of columns by adding parameters to the the introtemplate line, like this:

| introtemplate = MultiColListTop{{!}}600{{!}}3

This will provide a three-column list, 600 pixels wide. Depending on the material you are listing, you can control both the width and number of columns to create a decent-looking list.

Notes

The list will appear in a floating box, and text will wrap around it. Make sure you test your page to prevent some wacky layouts. You can encapsulate the list inside a table to prevent the odd wrapping. (I'm no expert at HTML/CSS, so I don't know enough about it to fix that.)