Template:MultiColListItem/doc: Difference between revisions
mNo edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
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 | 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== | ==Usage== | ||
To use this set in your semantic query output, use the following lines in your query: | To use this set in your semantic query output, use the following lines in your query: | ||
<font size="+1"> | |||
<nowiki>|</nowiki> headers = hide | <nowiki>|</nowiki> headers = hide | ||
<nowiki>|</nowiki> format = template | <nowiki>|</nowiki> format = template | ||
Line 10: | Line 11: | ||
<nowiki>|</nowiki> introtemplate = MultiColListTop | <nowiki>|</nowiki> introtemplate = MultiColListTop | ||
<nowiki>|</nowiki> outrotemplate = MultiColListBottom | <nowiki>|</nowiki> outrotemplate = MultiColListBottom | ||
</font> | |||
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: | |||
<font size="+1"> | |||
<nowiki>|</nowiki> introtemplate = MultiColListTop<nowiki>{{!}}</nowiki>600<nowiki>{{!}}</nowiki>3 | |||
<nowiki>|</nowiki> introtemplate = MultiColListTop<nowiki>{{!}}</nowiki>600 | </font> | ||
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. | |||
This will provide a three-column list. | |||
==Notes== | ==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.) | 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.) |
Latest revision as of 21:37, 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 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.)