Template:ComponentBox/doc: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Eabrace
m (Created page with "{{documentation subpage}}__NOTOC__ ==Overview== This template is used to generate an Incarnate Component box for displaying the graphic, name, and description for a component. ==...")
 
m (Updated icons for Essence of the Incarnate.)
 
(One intermediate revision by one other user not shown)
Line 23: Line 23:
==Examples==
==Examples==
Here is an example template call for a component, providing a custom description:
Here is an example template call for a component, providing a custom description:
:<nowiki>{{ComponentBox|Salvage Lens.png|Essence of the Incarnate|You could totally fry a giant, city-crushing ant with this lens.}}</nowiki>
:<nowiki>{{ComponentBox|Salvage_StrandofFate.png|Essence of the Incarnate|You could totally fry a giant, city-crushing ant with this lens.}}</nowiki>


This will output:
This will output:
{{ComponentBox|Salvage Lens.png|Essence of the Incarnate|You could totally fry a giant, city-crushing ant with this lens.}}
{{ComponentBox|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:
Here is an example template call for a component, using the automatic description:
: <nowiki>{{ComponentBox|Salvage Lens.png|Essence of the Incarnate}}</nowiki>
: <nowiki>{{ComponentBox|Salvage_StrandofFate.png|Essence of the Incarnate}}</nowiki>


This will output:
This will output:
{{ComponentBox|Salvage Lens.png|Essence of the Incarnate}}
{{ComponentBox|Salvage_StrandofFate.png|Essence of the Incarnate}}




Line 44: Line 44:


Here is an example template call showing how to suppress the description completely:
Here is an example template call showing how to suppress the description completely:
: <nowiki>{{ComponentBox|Salvage Lens.png|Essence of the Incarnate|3=&amp;nbsp;}}</nowiki>
: <nowiki>{{ComponentBox|Salvage_StrandofFate.png|Essence of the Incarnate|3=&amp;nbsp;}}</nowiki>


This will output:
This will output:
{{ComponentBox|Salvage Lens.png|Essence of the Incarnate|3=&nbsp;}}
{{ComponentBox|Salvage_StrandofFate.png|Essence of the Incarnate|3=&nbsp;}}


<includeonly>
<includeonly>
[[Category:Salvage Templates|{{PAGENAME}}]]
[[Category:Salvage Templates|{{PAGENAME}}]]
[[Category:SMW Query Templates]]
</includeonly>
</includeonly>

Latest revision as of 17:38, 30 January 2021

This is a documentation subpage for Template:ComponentBox (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

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