Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template:Infobox TF"

From Paragon Wiki Archive
Jump to: navigation, search
(+merits)
(updating to use {{infobox}} for simpler code)
Line 1: Line 1:
<includeonly>{| class="infobox" style="width: 20em; text-align: left; font-size: 90%; border: 1px solid #aaaaaa;"
+
<includeonly>
|-
+
{{Infobox
| colspan="2" style="text-align:center; font-size: 120%;" | '''{{{name|{{{PAGENAME}}}}}}'''
+
|name        = Infobox TF
|-
+
|above        = {{{name|}}}
{{#if: {{{image|}}} | {{!}} colspan="2" style="text-align: center;" {{!}} {{{image}}} }}
+
 
|-
+
|image        = {{{image|}}}
! Contact
+
 
| {{{contact}}}
+
|header1  =  
|-
+
|label1  = Contact
! Zone
+
|data1    = {{{contact|}}}
| {{{zone}}}
+
|header2  =
|-
+
|label2  = Zone
! Minimum Size
+
|data2    = {{{zone|}}}
| {{{size}}} {{#ifeq:{{{size|}}}|1|player|players}}
+
|header3  =
|-
+
|label3  = Minimum Size
{{#if: {{{x|}}} | ! [[Coordinates]]
+
|data3    = {{#if:{{{size|}}} | {{{size}}} {{#ifeq:{{{size|}}}|1|player|players}} }}
{{!}} {{coords|{{{x}}}|{{{y}}}|{{{z}}}}} }}
+
|header4  =
|-
+
|label4  = [[Coordinates]]
! Level Range
+
|data4    = {{#if: {{{x|}}} | {{coords|{{{x}}}|{{{y}}}|{{{z}}}}} }}
| {{{levels|}}}
+
|header5  =
|-
+
|label5  = Level Range
{{#if: {{{merits|}}} | ! Merits
+
|data5    = {{{levels|}}}
{{!}} {{{merits}}} }}
+
|header6  =
|-
+
|label6  = Merits
{{#if: {{{badge|}}} | ! Badge
+
|data6    = {{{merits|}}}
{{!}} {{{badge}}} }}
+
|header7  =
|-
+
|label7  = Badge
{{#if: {{{enemies|}}} | ! nowrap {{!}} Enemy Groups
+
|data7    = {{{badge|}}}
{{!}} {{{enemies}}} }}
+
|header8  =
|}</includeonly><noinclude>{{Documentation}}</noinclude>
+
|label8  = Enemy Groups
 +
|data8    = {{#if: {{{enemies|}}} | {{nowrap|{{{enemies}}}}} }}
 +
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 19:17, 16 September 2010

[edit] [purge] Documentation


Infobox TF, Infobox SF, and Infobox Trial are used to provide quick and concise tabular information about a Task Force, Strike Force, or Trial.

At present, Infobox SF and Infobox Trial merely redirect to Infobox TF. However, when using for a Strike Force please use {{Infobox SF}} and when using for a Trial please use {{Infobox Trial}} in case any changes ever get made to differentiate the templates.

Usage

For ease of use, the following may be copied and pasted into an article:

{{Infobox TF
|name=
|image=
|contact=
|zone=
|x=
|y=
|z=
|size=
|levels=
|merits=
|shards=
|threads=
|astrals=
|enemies=
|badge=
}}

Parameters

Parameter Explanation
name The name of TF, SF, or trial.
image An image to be used. Must be a full link, for example: [[Image:Example.jpg|100px]]
contact The contact that starts the TF, SF, or trial.
zone The zone the contact appears in.
x, y, z Insert the x, y, and z coordinates at which the contact appears. (If unknown, use question marks to emphasize that the information is needed: "?". If not applicable (for example, if the contact has been removed from the game), omit and the line won't appear.
size The minimum number of players required to start the TF, SF, or trial.
levels Insert the level range for the TF, SF, or trial.
merits Insert the number of merits the TF, SF, or trial rewards.
shards Insert the number of Incarnate Shard Components the TF, SF, or trial rewards. If it does not reward any, leave blank or omit.
threads Insert the number of Incarnate Thread Components the TF, SF, or trial rewards. If it does not reward any, leave blank or omit.
astrals Insert the number of Astral Merits the TF, SF, or trial rewards. If it does not reward any, leave blank or omit.
enemies Insert the Villian/Hero groups featured in missions assigned by this contact, using the appropriate Enemy templates.
badge Insert the badge(s) rewarded by this TF, SF, or trial, with appropriate wikilinking. Separate multiples with <br />.

Examples

Here is a dummy example that shows where each parameter is displayed.

name
image
Contact contact
Zone zone
Minimum Size size players
Coordinates (x, y, z)
Level Range levels
Merits merits
Shards shards
Threads threads
Badge badge
Enemy Groups enemies
v  d  e
{{Infobox TF
|name=name
|image=image
|contact=contact
|zone=zone
|x=x
|y=y
|z=z
|size=size
|levels=levels
|merits=merits
|shards=shards
|enemies=enemies
|badge=badge
}}


Here is a more realistic example from the Katie Hannon Task Force article.

A Tangled Plot
Katie Hannon.jpg
Contact Katie Hannon
Zone Croatoa
Minimum Size 6 players
Coordinates (1095, 108, -1095)
Level Range 30-34
Merits 9
Badge Badge croatoa cabalist.png Cabalist
Enemy Groups Badge croatoa spellbinder.png The Cabal
Badge croatoa cap buster.png Red Caps
v  d  e
{{Infobox TF
|name=A Tangled Plot
|image=[[File:KatieHannon1.jpg|100px]]
|contact=[[Katie Hannon]]
|zone=[[Croatoa]]
|x=1095|y=108|z=-1095
|size=6
|levels=30-34
|merits=9
|enemies={{Enemy The Cabal}}{{Enemy Red Caps}}
|badge=[[File:Badge croatoa cabalist.png|22px]] [[Cabalist Badge|Cabalist]]
}}