Template:NPC Text: Difference between revisions
Jump to navigation
Jump to search
Plutocracy (talk | contribs) No edit summary |
Plutocracy (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{Hidden|header={{{title|NPC Text}}}|content={{{text|'''Please supply text. See [[Template:NPC Text]] for usage.'''}}}|headercss = background: | <includeonly>{{Hidden|header={{{title|NPC Text}}}|content={{{text|'''Please supply text. See [[Template:NPC Text]] for usage.'''}}}|headercss = background: | ||
{{#switch: {{{type|}}} | hero=#0B3C5D| villain=#b91e25| #default=#0B3C5D}}; | {{#switch: {{{type|}}} | hero=#0B3C5D| villain=#b91e25| #default=#0B3C5D}}; | ||
border: solid | border: solid 2px #D9B310 | ||
{{#switch: {{{type|}}} | hero=#0B3C5D| villain=#b91e25| #default=#0B3C5D}};|contentcss = padding: 5px; border: solid 1px | {{#switch: {{{type|}}} | hero=#0B3C5D| villain=#b91e25| #default=#0B3C5D}};|contentcss = padding: 5px; border: solid 1px | ||
{{#switch: {{{type|}}} | hero=#0B3C5D| villain=#b91e25| #default=#0B3C5D}}; border-top: 0px;}}</includeonly><noinclude>{{Documentation}}</noinclude> | {{#switch: {{{type|}}} | hero=#0B3C5D| villain=#b91e25| #default=#0B3C5D}}; border-top: 0px;}}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 03:37, 12 September 2019
[edit] [ ] 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:
Example dialogue
|
---|
style="font-weight:normal;background-color:transparent;text-align:left;padding: 5px; border: solid 1px
Person A: This is an example. |
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
|
---|
style="font-weight:normal;background-color:transparent;text-align:left;padding: 5px; border: solid 1px
Person A: This is an example. |
- {{NPC Text|type=villain|text=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
Person A: This is an example. |