Template:NPC Text: Difference between revisions

From City of Heroes: Rebirth Wiki
Jump to navigation Jump to search
imported>Sekoia
m (trying another border color for default)
imported>Sekoia
m (adding a bit of padding)
Line 2: Line 2:
{{#switch: {{{type|}}} | hero=#CCFFFF | villain=#FFCCCC | #default=#ccccff}};
{{#switch: {{{type|}}} | hero=#CCFFFF | villain=#FFCCCC | #default=#ccccff}};
border: solid 1px
border: solid 1px
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#222299}};|contentcss = 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>
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 19:35, 19 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 
style="font-weight:normal;background-color:transparent;text-align:left;padding: 5px; border: solid 1px
  1. 222299; border-top: 0px;"|

Person A: This is an example.
Person B: That's so cool!


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 
style="font-weight:normal;background-color:transparent;text-align:left;padding: 5px; border: solid 1px
  1. 222299; border-top: 0px;"|

Person A: This is an example.
Person B: That's so cool!


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 
style="font-weight:normal;background-color:transparent;text-align:left;padding: 5px; border: solid 1px
  1. 222299; border-top: 0px;"|

Person A: This is an example.
Person B: That's so cool!

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 
style="font-weight:normal;background-color:transparent;text-align:left;padding: 5px; border: solid 1px
  1. 0000CC; border-top: 0px;"|

Person A: This is an example.
Person B: That's so cool!


{{NPC Text|type=villain|Person A: This is an example.<br />Person B: That's so cool!}}
NPC Text 
style="font-weight:normal;background-color:transparent;text-align:left;padding: 5px; border: solid 1px
  1. CC0000; border-top: 0px;"|

Person A: This is an example.
Person B: That's so cool!