Template:ComponentBox: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Thirty7 (historical)
(converting to be akin to BadgeBox)
imported>Sekoia (historical)
(typo)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{2|}}}
<includeonly>{{#if: {{{2|}}}
| {{BadgeBox/{{#if:{{{left|}}}|fixed|auto}}
| {{ComponentBox/{{#if:{{{left|}}}|fixed|auto}}
   |image=[[Image:{{{1}}}]]
   |image=[[Image:{{{1}}}]]
   |badge={{{2}}}
   |component={{{2}}}
   |which={{{which|}}}
   |which={{{which|}}}
   |desc={{#if:{{{3|}}}|{{{3}}}|{{#dpl: title={{{2}}} Badge {{#if:{{{which|}}}|({{{which}}})|}} | allowcachedresults=true | includepage=#Description}}}}
   |desc={{#if:{{{3|}}}|{{{3}}}|{{#lsth:{{{2}}} Component {{#if:{{{which|}}}|({{{which}}})|}}|Description}}}}
   |left={{{left|}}}
   |left={{{left|}}}
   }}
   }}
| {{BadgeBox/{{#if:{{{left|}}}|fixed|auto}}
| {{ComponentBox/{{#if:{{{left|}}}|fixed|auto}}
   |image={{#dpl: title={{{1}}} Badge {{#if:{{{which|}}}|({{{which}}})|}} | allowcachedresults=true | includepage={Image} }}
   |image={{#show:{{{1}}} Component {{#if:{{{which|}}}|({{{which}}})|}}|?Image|format=list|link=none|template=Template:ComponentBox/icon}}
   |badge={{{1}}}
   |component={{{1}}}
   |which={{{which|}}}
   |which={{{which|}}}
   |desc={{#dpl: title={{{1}}} Badge {{#if:{{{which|}}}|({{{which}}})|}} | allowcachedresults=true | includepage=#Description}}
   |desc={{#lsth:{{{1}}} Component {{#if:{{{which|}}}|({{{which}}})|}}|Description}}
   |left={{{left|}}}
   |left={{{left|}}}
   }}
   }}
}}</includeonly><noinclude>{{Documentation}}</noinclude>
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 07:59, 29 June 2012

[edit] [purge] Documentation

Overview

This template is used to generate an Incarnate Component box for displaying the graphic, name, and description for a component.

Usage

There are three ways to use this template.

The first way is to specify the graphic, the component name, and the component description as thus:

{{ComponentBox|Image.png|Component Name|Description}}

The second way is to omit the description. If the description is omitted, the description will automatically be filled in from the component's article using the section titled "Description". (If there is no such section, an error occurs.)

{{ComponentBox|Image.png|Component Name}}

The third way is to omit the graphic and the description. If omitted, they will both be automatically filled in from the component's article using the section titled "Description" and the image displayed through the {{Image}} template. (If either do not exist, an error occurs.)

{{ComponentBox|Component Name}}

Additionally, you can supply the which= option to specify which of a set of disambig pages to refer to; the which= should refer to the parenthetical after the component name.

{{ComponentBox|Component Name|which=Type}}

Examples

Here is an example template call for a component, providing a custom description:

{{ComponentBox|Salvage_StrandofFate.png|Essence of the Incarnate|You could totally fry a giant, city-crushing ant with this lens.}}

This will output:

Salvage StrandofFate.png Essence of the Incarnate

You could totally fry a giant, city-crushing ant with this lens.


Here is an example template call for a component, using the automatic description:

{{ComponentBox|Salvage_StrandofFate.png|Essence of the Incarnate}}

This will output:

Salvage StrandofFate.png Essence of the Incarnate

A shred of power from a living Incarnate.


Here is an example template call for a component, using the automatic description and image:

{{ComponentBox|Essence of the Incarnate}}

This will output:

File:Salvage StrandofFate.png Essence of the Incarnate

Essence of the Incarnate Component


Here is an example template call showing how to suppress the description completely:

{{ComponentBox|Salvage_StrandofFate.png|Essence of the Incarnate|3=&nbsp;}}

This will output:

Salvage StrandofFate.png Essence of the Incarnate