Difference between revisions of "Template:MultiColListItem/doc"

From BattleMaster Wiki
Jump to navigation Jump to search
m
m
Line 5: Line 5:
 
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:
  
  {{!}} headers = hide
+
  <nowiki>|</nowiki> headers = hide
  {{!}} format = template
+
  <nowiki>|</nowiki> format = template
  {{!}} template = MultiColListItem
+
  <nowiki>|</nowiki> template = MultiColListItem
  {{!}} introtemplate = MultiColListTop
+
  <nowiki>|</nowiki> introtemplate = MultiColListTop
  {{!}} outrotemplate = MultiColListBottom
+
  <nowiki>|</nowiki> 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:
 
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<nowiki>{{!}}</nowiki>600
+
  <nowiki>|</nowiki> introtemplate = MultiColListTop<nowiki>{{!}}</nowiki>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.
 
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.

Revision as of 22:55, 17 February 2011

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.)