Template:NPC Text: Difference between revisions
Jump to navigation
Jump to search
imported>Sekoia m (fixing default title) |
imported>Sekoia (adding type parameter) |
||
Line 1: | Line 1: | ||
<includeonly>{{Hidden|{{{title|NPC Text}}}|{{{text|{{{1}}}}}}|headercss = background: #ccccff;|contentcss = border: #ccccff | <includeonly>{{Hidden|{{{title|NPC Text}}}|{{{text|{{{1}}}}}}|headercss = background: | ||
{{#switch: {{{type|}}} | hero=#ccccff | villain=#ff0000 | #default=000000}};|contentcss = border: solid 1px | |||
{{#switch: {{{type|}}} | hero=#ccccff | villain=#ff0000 | #default=000000}};}}</includeonly><noinclude> | |||
This template is used for adding NCP text to a mission article. | |||
This: | This: | ||
Line 20: | Line 23: | ||
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!}} | ||
[[Category:Templates]]</noinclude> | [[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 16:41, 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:
NPC Text
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:
Example Dialog
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:
Example Dialog
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
- {{NPC Text|type=villain|Person A: This is an example.<br />Person B: That's so cool!}}
NPC Text