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

From Paragon Wiki Archive
Jump to: navigation, search
(adding border to header)
m (tweaking border)
Line 3: Line 3:
 
border: solid 1px
 
border: solid 1px
 
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#ccccff}};|contentcss = border: solid 1px
 
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#ccccff}};|contentcss = border: solid 1px
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#ccccff}};}}</includeonly><noinclude>
+
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#ccccff}}; border-top: 0px;}}</includeonly><noinclude>
 
This template is used for adding NCP text to a mission article.
 
This template is used for adding NCP text to a mission article.
  

Revision as of 17:59, 18 December 2007

This template is used for adding NCP text to a mission article.

This:

{{NPC Text|Person A: This is an example.<br />Person B: That's so cool!}}

Results in this:

You can also specify a title.

{{NPC Text|title=Example Dialog|Person A: This is an example.<br />Person B: That's so cool!}}

Result:

And you can also call it like this if you want:

{{NPC Text|title=Example Dialog|text=Person A: This is an example.<br />Person B: That's so cool!}}

Result:

You can also use the type= flag to specify hero or villain to get different results.

{{NPC Text|type=hero|Person A: This is an example.<br />Person B: That's so cool!}}
{{NPC Text|type=villain|Person A: This is an example.<br />Person B: That's so cool!}}