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/doc"

From Paragon Wiki Archive
Jump to: navigation, search
(New page: {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> ==Usage== This template is used for adding NCP text to a mission article. This: :<nowik...)
 
m (Moved within heirarchy of categories)
 
(8 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
 
==Usage==
 
==Usage==
This template is used for adding NCP text to a mission article.
+
This template is used for adding NPC text to a mission article.
  
This:
+
Normal usage:
:<nowiki>{{NPC Text|Person A: This is an example.<br />Person B: That's so cool!}}</nowiki>
+
  
Results in this:
+
:<nowiki>{{NPC Text|title=Example dialogue|text=Person A: This is an example.<br />Person B: That's so cool!}}</nowiki>
 
+
{{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:
 
Result:
{{NPC Text|title=Example Dialog|Person A: This is an example.<br />Person B: That's so cool!}}
+
{{NPC Text|title=Example dialogue|text=Person A: This is an example.<br />Person B: That's so cool!}}
  
And you can also call it like this if you want:
+
If omitted, title= defaults to "NPC Text".
 
+
:<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!}}
+
  
 
You can also use the type= flag to specify hero or villain to get different results.
 
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>
+
:<nowiki>{{NPC Text|type=hero|text=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!}}
+
{{NPC Text|type=hero|text=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>
+
:<nowiki>{{NPC Text|type=villain|text=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!}}
+
{{NPC Text|type=villain|text=Person A: This is an example.<br />Person B: That's so cool!}}
  
 
==See also==
 
==See also==
Line 37: Line 26:
 
<includeonly><!--
 
<includeonly><!--
 
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
 
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
[[Category:Templates]]
+
[[Category:Mission Templates]]
 
</includeonly>
 
</includeonly>

Latest revision as of 03:19, 18 February 2010

This is a documentation subpage for Template:NPC Text (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

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