Template:List box   

From Appropedia
Jump to: navigation, search
{{{1}}}

[edit] Usage

For placing a list or any other text in a separate section to the right. No border is used (but an optional border argument could be added later when the appropriate parser are enabled).

specify width and the text to be used. Each argument should start on a separate line so that line breaks are allowed.[verification needed]

Specify:

  • width (in "em" or approximate character-widths) as the first argument,
  • the text to display as the second argument.

Example:

{{list box
|'''Tasks'''
* pick best articles
* put them in portal
* have a drink
}}

creates this box to the right:

Tasks
  • pick best articles
  • put them in portal
  • have a drink


Based on {{text box}}.

Note that the template may extend into the following section. To prevent this, you can add {{break clear}} to the bottom of the current section, which puts all content below the previous content regardless of floating/wrapping.

[edit] Coding notes

This version attempted to use width as a parameter, but width parameter seemed to break the style code. In {{notice}} it works - but with named parameters (not sure if that's why it works, but want to keep it simple here, and avoid named parameters.)

[edit] See also

  • {{text box}} - For placing highlighted excerpts in an article.
Personal tools