In Memoriam: Tai'lahr

OpenUru.org, along with the rest of the Mystonline community, is mourning the loss of Tai'lahr on October 16th, 2019.

Rest in Peace, friend.

Difference between revisions of "Template:Infobox"

From OpenUru
Jump to navigation Jump to search
(Make basic layout (WIP))
Line 1: Line 1:
 
<includeonly>{| style="float: right; width: 20em; background-color: #FFEECC; border: 1px dashed #FFCC66; padding: 0.5em; margin-left: 0.5em;"
 
<includeonly>{| style="float: right; width: 20em; background-color: #FFEECC; border: 1px dashed #FFCC66; padding: 0.5em; margin-left: 0.5em;"
{{{1}}}
+
|{{{1}}}
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>
 
[[Category:Ages]]
 
[[Category:Ages]]

Revision as of 13:05, 26 December 2011

This template provides a generalized information box. It can be used to display a title accompanied by an optional image, optional subtitle, and a number of heading/value pairs:

  • tn_image: URL of the thumbnail image to be displayed at the top of the infobox (optional). If used, "image" may also be supplied if larger image is available. It will be linked from the thumbnail.
  • image: URL of larger version of thumbnail image (optional).
  • title: The title of the box (required).
  • subtitle A subtitle for the box (optional) may be used as a heading to the body table.
  • heading1 The name of the first information item (displayed on the left side)(optional).
  • value1 The value or data for the first information item (displayed on the right side)(optional, but is required if "heading1" is defined).
  • ...
  • heading8 The name of the eighth information item (displayed on the left side)(optional).
  • value8 The value or data for the eighth information item (displayed on the right side)(optional, but is required if "heading8" is defined).

Heading and Value pairs are optional, and up to eight pairs may be present in the infobox.

Example

{{{1}}}

{{Infobox|title=Title|subtitle=My subtitle| image=http://assets.openuru.org/wiki/demo/stats_large.png| tn_image=http://assets.openuru.org/wiki/demo/stats_small.png|heading1=First| value1=Value A|heading2=Second|value2=Another value}}

yields the box shown on the right.