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 NPC"

From Paragon Wiki Archive
Jump to: navigation, search
(updating to use {{infobox}} for simpler code)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%" cellspacing="2"
+
{{Infobox
|-
+
|name        = Infobox NPC
! style="background: {{{box_color|#DEDEE2}}}; font-size: 120%;" align="center" colspan="2" | {{{name}}}
+
|above        = {{{name|}}}
|-
+
|abovestyle  = background: {{{box_color|#DEDEE2}}};
  
{{#if: {{{image|}}} |
+
|image       = {{{image|}}}
{{!}} align="center" colspan="2" {{!}} {{{image}}} {{#if: {{{caption|}}} | <br>{{{caption}}}}} }}
+
|caption     = {{{caption|}}}
|-
+
! style="background: {{{box_color|#DEDEE2}}}; font-size: 120%;" align="center" colspan="2" | Details
+
|-
+
  
{{#if: {{{sd|}}} |
+
|headerstyle  = background: {{{box_color|#DEDEE2}}};
! Real Name
+
|labelstyle  =
{{!}} {{{sd}}}
+
|datastyle    =
}}
+
|-
+
  
{{#if: {{{gender|}}} |
+
|header1  = Details
! Gender
+
|label1  =
{{!}} {{{gender}}}
+
|data1    =
}}
+
|header2  =
|-
+
|label2  = Real Name
 +
|data2    = {{{sd|}}}
 +
|header3  =
 +
|label3  = Gender
 +
|data3    = {{{gender|}}}
 +
|header4  =
 +
|label4  = Archetype
 +
|data4    = {{{archetype|}}}
 +
|header5  =
 +
|label5  = Affiliation
 +
|data5    = {{{affiliation|}}}
 +
|header6  =
 +
|label6  = Age
 +
|data6    = {{{age|}}}
 +
|header7  =
 +
|label7  = Romantic Associations
 +
|data7    = {{{romantic|}}}
 +
|header8  =
 +
|label8  = Known Family
 +
|data8    = {{{family|}}}
 +
|header9  =
 +
|label9  = Primary Powers
 +
|data9    = {{{pp|}}}
 +
|header10 =
 +
|label10  = Secondary Powers
 +
|data10  = {{{sp|}}}
 +
|header11 =
 +
|label11  = Zone Locations
 +
|data11  = {{{loc|}}}
 +
|header12 =
 +
|label12  =
 +
|data12  =
 +
|header13 =
 +
|label13  =
 +
|data13  =
 +
|header14 =
 +
|label14  =
 +
|data14  =
 +
|header15 =
 +
|label15  =
 +
|data15  =
 +
|header16 =
 +
|label16  =
 +
|data16  =
 +
|header17 =
 +
|label17  =
 +
|data17  =
 +
|header18 =
 +
|label18  =
 +
|data18  =
 +
|header19 =
 +
|label19  =
 +
|data19  =
 +
|header20 =
 +
|label20  =
 +
|data20  =
  
{{#if: {{{affiliation|}}} |
+
|belowstyle =
! Affiliation
+
|below =
{{!}} {{{affiliation}}}
+
}}<noinclude>{{documentation}}</noinclude>
}}
+
|-
+
 
+
{{#if: {{{age|}}} |
+
! Age
+
{{!}} {{{age}}}
+
}}
+
|-
+
 
+
{{#if: {{{romantic|}}} |
+
! Romantic Associations
+
{{!}} {{{romantic}}}
+
}}
+
|-
+
 
+
{{#if: {{{family|}}} |
+
! Known Family
+
{{!}} {{{family}}}
+
}}
+
|-
+
 
+
{{#if: {{{pp|}}} |
+
! Primary Powers
+
{{!}} {{{pp}}}
+
}}
+
|-
+
 
+
{{#if: {{{sp|}}} |
+
! Secondary Powers
+
{{!}} {{{sp}}}
+
}}
+
|-
+
 
+
{{#if: {{{loc|}}} |
+
! Zone Locations
+
{{!}} {{{loc}}}
+
}}
+
|}<noinclude>
+
 
+
== Usage ==
+
{| style="background: transparent;"
+
|<pre>{{Infobox NPC
+
| box_color  = Hexadecimal colour (EG: #FFFFFF, Default: #DEDEE2)
+
| name      = Name of the character
+
| image      = Image of the character
+
| caption    = Image caption
+
| sd        = Real Name
+
| gender    = Gender of the character (if not obvious)
+
| archetype  = Species of the character
+
| affiliation= Affiliation of the character
+
| age        = Age of the character
+
| romantic  = Romantic Associations
+
| family    = Known Family
+
| pp        = Primary Powers
+
| sp        = Secondary Powers
+
| loc        = Zone Location(s) if applicable
+
 
+
}}</pre>
+
|}
+
 
+
==Box Colors==
+
*Default Box color = #DEDEE2
+
*Hero Crew box color = tan (all members of Moya's Crew should have 'tan' in the 'box_color)
+
*Archvillain box color = red (all archvillains should have 'red' in the 'box_color)
+
 
+
</noinclude>
+

Latest revision as of 20:02, 16 September 2010

Details
v  d  e
[edit] [purge] Documentation

Usage

{{Infobox NPC
| box_color  = Hexadecimal colour (EG: #FFFFFF, Default: #DEDEE2)
| name       = Character name
| image      = Character image
| caption    = Caption
| sd         = Real name
| gender     = Gender (if not obvious)
| archetype  = Archetype (if applicable), 'Civilian' if not super
| affiliation= Affiliation of the character
| age        = Age
| romantic   = Romantic associations
| family     = Known family
| pp         = Primary powers
| sp         = Secondary powers
| loc        = Zone location(s) (if applicable)
}}

Examples

Character name
Character image
Caption
Details
Real Name Real name
Gender Gender (if not obvious)
Archetype Archetype (if applicable), 'Civilian' if not super
Affiliation Affiliation of the character
Age Age
Romantic Associations Romantic associations
Known Family Known family
Primary Powers Primary powers
Secondary Powers Secondary powers
Zone Locations Zone location(s) (if applicable)
v  d  e
{{Infobox NPC
| box_color  = #DEDEE2
| name       = Character name
| image      = Character image
| caption    = Caption
| sd         = Real name
| gender     = Gender (if not obvious)
| archetype  = Archetype (if applicable), 'Civilian' if not super
| affiliation= Affiliation of the character
| age        = Age
| romantic   = Romantic associations
| family     = Known family
| pp         = Primary powers
| sp         = Secondary powers
| loc        = Zone location(s) (if applicable)
}}