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
m (adding a bit of padding)
(moved documentation to subpage, using {{Documentation}})
Line 3: Line 3:
 
border: solid 1px
 
border: solid 1px
 
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#222299}};|contentcss = padding: 5px; border: solid 1px
 
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#222299}};|contentcss = padding: 5px; border: solid 1px
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#222299}}; border-top: 0px;}}</includeonly><noinclude>
+
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#222299}}; border-top: 0px;}}</includeonly><noinclude>{{Documentation}}</noinclude>
This template is used for adding NCP text to a mission article.
+
 
+
This:
+
:<nowiki>{{NPC Text|Person A: This is an example.<br />Person B: That's so cool!}}</nowiki>
+
 
+
Results in this:
+
 
+
{{NPC Text|Person A: This is an example.<br />Person B: That's so cool!}}
+
 
+
You can also specify a title.
+
:<nowiki>{{NPC Text|title=Example Dialog|Person A: This is an example.<br />Person B: That's so cool!}}</nowiki>
+
 
+
Result:
+
{{NPC Text|title=Example Dialog|Person A: This is an example.<br />Person B: That's so cool!}}
+
 
+
And you can also call it like this if you want:
+
 
+
:<nowiki>{{NPC Text|title=Example Dialog|text=Person A: This is an example.<br />Person B: That's so cool!}}</nowiki>
+
 
+
Result:
+
{{NPC Text|title=Example Dialog|text=Person A: This is an example.<br />Person B: That's so cool!}}
+
[[Category:Templates]]
+
 
+
You can also use the type= flag to specify hero or villain to get different results.
+
 
+
:<nowiki>{{NPC Text|type=hero|Person A: This is an example.<br />Person B: That's so cool!}}</nowiki>
+
{{NPC Text|type=hero|Person A: This is an example.<br />Person B: That's so cool!}}
+
 
+
:<nowiki>{{NPC Text|type=villain|Person A: This is an example.<br />Person B: That's so cool!}}</nowiki>
+
{{NPC Text|type=villain|Person A: This is an example.<br />Person B: That's so cool!}}
+
</noinclude>
+

Revision as of 06:58, 27 February 2008

[edit] [purge] Documentation

Usage

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

Normal usage:

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

Result:

If omitted, title= defaults to "NPC Text".

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

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

See also