Template:MultiColListItem/doc: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{DocSubpage}}</noinclude> | |||
==Intro== | ==Intro== | ||
This template is not intended to be used by itself. It is part of a set of three templates that are sued to create free-flowing, multi-column list for use with dynamic lists and the [[Semantic Wiki]]. The three templates in this set are [[Template:MultiColListTop]], [[Template:MultiColListItem]], and [[Template:MultiColListBottom]]. | This template is not intended to be used by itself. It is part of a set of three templates that are sued to create free-flowing, multi-column list for use with dynamic lists and the [[Semantic Wiki]]. The three templates in this set are [[Template:MultiColListTop]], [[Template:MultiColListItem]], and [[Template:MultiColListBottom]]. |
Revision as of 20:56, 17 February 2011
Page Information |
This is a documentation subpage for the MultiColListItem template. It contains usage information, categories and other content that is not part of the original template page. |
Intro
This template is not intended to be used by itself. It is part of a set of three templates that are sued to create free-flowing, multi-column list for use with dynamic lists and 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 two-column list. You can control the number of columns by adding a parameter to the the introtemplate line, like this:
| introtemplate = MultiColListTop{{!}}600
This will provide a three-column list. For a four column list, use 800, and for a single-column list, use 200. I don't recommend using anything over 800, as you may get too wide for the display.
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.)