Template:NPC Text: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia
(moved documentation to subpage, using {{Documentation}})
m (removed outer table, Template:Hidden was modified to not overlap floats)
Tag: Manual revert
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{Hidden|{{{title|NPC Text}}}|{{{text|{{{1}}}}}}|headercss = background:  
<includeonly>{{Hidden|header={{{title|NPC Text}}}|content={{{text|'''Please supply text. See [[Template:NPC Text]] for usage.'''}}}|headercss = background:  
{{#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 = padding: 5px; border: solid 1px
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#222299}};|contentcss = padding: 5px; box-sizing: border-box;
border: solid 1px
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#222299}}; border-top: 0px;}}</includeonly><noinclude>{{Documentation}}</noinclude>
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#222299}}; border-top: 0px;}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 02:29, 21 March 2022

[edit] [purge] 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:

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