Template:NPC Text/doc: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia (historical)
m (+note about {{character}})
imported>Sekoia (historical)
(removing examples that use positional parameters; noting default for title=)
Line 4: Line 4:
This template is used for adding NCP text to a mission article.
This template is used for adding NCP text to a mission article.


If you use the {{tl|character}} template in your text, be sure to use the text= parameter. If you don't, nothing will show up due to parsing issues.
Normal usage:
 
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>
:<nowiki>{{NPC Text|title=Example Dialog|text=Person A: This is an example.<br />Person B: That's so cool!}}</nowiki>
Line 25: Line 10:
Result:
Result:
{{NPC Text|title=Example Dialog|text=Person A: This is an example.<br />Person B: That's so cool!}}
{{NPC Text|title=Example Dialog|text=Person A: This is an example.<br />Person B: That's so cool!}}
If omitted, title= defaults to "NPC Text".


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==

Revision as of 02:11, 16 July 2008

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 NCP text to a mission article.

Normal usage:

{{NPC Text|title=Example Dialog|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