Template:NPC Text: Difference between revisions
Jump to navigation
Jump to search
(Fixed padding.) |
m (Added box-sizing to stop the content box exceeding the header.) |
||
Line 4: | Line 4: | ||
{{#switch: {{{width|}}} | 25=25% | 50=50% | 75=75% | #default=100% }}; | {{#switch: {{{width|}}} | 25=25% | 50=50% | 75=75% | #default=100% }}; | ||
border: solid 1px | border: solid 1px | ||
{{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#222299}};|contentcss = padding: | {{#switch: {{{type|}}} | hero=#0000CC | villain=#CC0000 | #default=#222299}};|contentcss = padding: 5px; box-sizing: border-box; | ||
width: | width: | ||
{{#switch: {{{width|}}} | 25=25% | 50=50% | 75=75% | #default=100% }}; | {{#switch: {{{width|}}} | 25=25% | 50=50% | 75=75% | #default=100% }}; | ||
border: solid 1px | 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> |
Revision as of 21:19, 22 June 2020
[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
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
- {{NPC Text|type=villain|text=Person A: This is an example.<br />Person B: That's so cool!}}
NPC Text