Difference between revisions of "Template:Infobox"

From The Infosphere, the Futurama Wiki
Jump to navigation Jump to search
m (hide it, no need to mess with the formatting)
m (Getting these babies nailed.)
Line 6: Line 6:
Image
Image
-->{{#ifeq:{{{noimage|no}}}|yes||{{#if:{{{image|}}}|
-->{{#ifeq:{{{noimage|no}}}|yes||{{#if:{{{image|}}}|
<tr class="alternate-ignore"><td colspan="2" class="infoboxCentre"><div id="image1">{{{image}}}{{#if:{{{caption|}}}|<br />{{{caption}}}|}}</div>{{#if:{{{image2|}}}|<div id="image2" style="display:none;">{{{image2}}}{{#if:{{{caption|}}}|<br />{{#if:{{{caption2|}}}|{{{caption2}}}|{{{caption}}}}}|}}</div><div class="CoverToggle" style="font-weight:normal;"></div>|}}</td></tr>
<tr class="alternate-ignore"><td colspan="2" class="infoboxCentre"><div id="image1">{{{image}}}{{#if:{{{caption|}}}|<br /><span class="image-caption">{{{caption}}}</span>|}}</div>{{#if:{{{image2|}}}|<div id="image2" style="display:none;">{{{image2}}}{{#if:{{{caption|}}}|<br /><span class="image-caption">{{#if:{{{caption2|}}}|{{{caption2}}}|{{{caption}}}}}</span>|}}</div><div class="CoverToggle" style="font-weight:normal;"></div>|}}</td></tr>
|{{#ifeq:{{ns:}}|{{NAMESPACE}}|<div id="NoImageIndicatorPixel" style="display:none;">[[File:NoImageIndicatorPixel.png]]</div>|}}}}}}<!--
|{{#ifeq:{{ns:}}|{{NAMESPACE}}|<div id="NoImageIndicatorPixel" style="display:none;">[[File:NoImageIndicatorPixel.png]]</div>|}}}}}}<!--
Row 1
Row 1

Revision as of 19:40, 18 July 2010

Documentation for {{infobox}}

Use

For creating infoboxes in a quick and standardised way.

Usage

{{infobox
|top        = Before title
|title      = Title
|noimage    = yes/no (default: no) if yes, the infobox won't check for images.
|image      = Image
|caption    = Image text
|image2     = Alternate Image (optional, for cover art)
|caption2   = Alternate Image text (optional, for cover art, defaults to caption)
|headerN    = Nth header
|labelN     = Nth label
|dataN      = Nth data
|dataclassN = Add a CSS class to Nth data.
}}

Example

Hi!
An infobox!
Infosphere.jpg
Pretty!
Label?Yes
A header!
Data alone! :O
Good dayBite me
HelloHi
{{infobox
|top = Hi!
|title = An infobox!
|image = [[Image:Infosphere.jpg|225px]]
|caption = Pretty!
|label1 = Label?
|data1 = Yes
|header2 = A header!
|data3 = Data alone! :O
|label4 = Good day
|data4 = Bite me
|label5 = Hello
|data5 = Hi
}}