Template:Main page box/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

This is a documentation subpage for Template:Main page box.
It contains usage information, categories and other content or metadata that is not part of the original template.
This template uses TemplateStyles:

Usage

This template is intended to provide the uniform style for content boxes on Main Page(s).

It can be used in 2 ways:

  1. If parameter content is set, the template outputs a styled box with the content, set with content=. A title line can be set with parameter title.
  2. If parameter content is not set, the template has no content output, but loads the style sheet from /styles.css, that can be used in another template in which this template is transcluded. Simply call {{Main page box}}. To use the styles, the "classes" from the style sheet have to be added to the div's or tables in the page. E.g. class="MainPageBox MainPageBox-content" and class="MainPageBox-title".

Syntax

  1. {{Main page box
    |title=The title
    |content=Any content, text, etc.
    }}
  2. {{Main page box}}

Parameters

  • none
  • content
  • title
  • link
  • title-align
  • title-class
  • content-class

Examples

  • {{Main page box
    |title=The title
    |content=Any content, text, etc.
    }}
    rendered:
The title

Any content, text, etc.