Difference between revisions of "Template:MultiColListItem/doc"

From BattleMaster Wiki
Jump to navigation Jump to search
m
m
 
(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 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 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:
  
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:
+
<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. 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==
 
==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 23:37, 17 February 2011

Gtk-dialog-info.svg 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.)