Template:Infobox

From Twinsuniverse
Revision as of 00:30, 8 June 2014 by J McKalling (Talk | contribs)

Jump to: navigation, search
Infobox
Purpose

Infobox [list all]

Single tag

No [list all]

Multi-line

Yes [list all]

Protected

No [list all]

Game related

No [list all]

Categorization
Categories

none [list all]

Variables
Names

Multiple: [list all]

  • infobox_messages  (active)
  • maintenance_message  (active)
  • row  (free for reuse)
Subpages

This template provides a generic infobox structure, and is used to implement new kinds of infoboxes for pages. It provides an {{Infobox/row}} for rendering a title heading, an optional {{articleimage}}, and an unlimited amount of rows for custom (data) headings.

Using this template directly on an article page is not recommended, as it would require a lot of repetitive wikicode. This template only provides a basic structure with base functionality, and does not automate headings or categorize pages on its own. Implement this generic infobox in a specific kind of infobox, to reuse the same headings and categorization mechanics across the different articles it will be used on.

Parameters

  • infoboxname: The name of the template implementing this infobox, for the documentation link (case sensitive, defaults to no doclink)
  • title: The title to use in the title heading of the infobox (optional, defaults to {{PAGENAME}})
  • float: Whether the infobox should float to the right (any non-empty value will do, defaults to no float)
  • theme: One of the /themes names for auto-styling the infobox (optional, defaults to stylesheet definitions)
  • class: An optional custom class to add to the infobox (lowercase, CSS classname syntax, defaults to no extra class)
  • image: The filename of the image to use as the infobox's article image (case sensitive, defaults to a default image)
  • imagecaption: The text to show in the tooltip when the article image is hovered (case sensitive, defaults to 'Image for article: {{PAGENAME}}')
  • noimage: Whether the article image should be disabled altogether for the infobox implementation (any value will disable the image, defaults to enabled)
  • header#, label#, data# and class# from the /row subpage (for unlimited amount of rows, all default to hide row)
  • nocat: Whether or not to suppress categorization by the {{articleimage}} template (defaults to false, which means auto categorization).


Syntax

Copy and paste the following for quick use:

{{infobox
 |infoboxname=Infobox Something
 |title=
 |theme=
 |float=yes
 |image=

 |header1=
 |label1=
 |data1=
 |class1=

 |header2=
 |label2=
 |data2=
 |class2=
}}

Example

... this template is still under documentation