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
(splitting off documentation)
(updating to use {{infobox}} for simpler code)
 
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: {{{archetype|}}} |
+
|belowstyle =
! Archetype
+
|below =
{{!}} {{{archetype}}}
+
}}<noinclude>{{documentation}}</noinclude>
}}
+
|-
+
 
+
{{#if: {{{affiliation|}}} |
+
! Affiliation
+
{{!}} {{{affiliation}}}
+
}}
+
|-
+
 
+
{{#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>{{documentation}}</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)
}}