Template:Storynpcbox: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
(trying category parser function)
mNo edit summary
(10 intermediate revisions by 4 users not shown)
Line 16: Line 16:
<br>[[{{{storyline2}}}]] }}{{#if: {{{storyline3|}}} |
<br>[[{{{storyline2}}}]] }}{{#if: {{{storyline3|}}} |
<br>[[{{{storyline3}}}]] }}{{#if: {{{storyline4|}}} |
<br>[[{{{storyline3}}}]] }}{{#if: {{{storyline4|}}} |
<br>[[{{{storyline4}}}]] }}
<br>[[{{{storyline4}}}]] }}{{#if: {{{storyline5|}}} |
<br>[[{{{storyline5}}}]] }}{{#if: {{{storyline6|}}} |
<br>[[{{{storyline6}}}]] }}{{#if: {{{storyline7|}}} |
<br>[[{{{storyline7}}}]] }}{{#if: {{{storyline8|}}} |
<br>[[{{{storyline8}}}]] }}{{#if: {{{storyline9|}}} |
<br>[[{{{storyline9}}}]] }}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{gender|}}} |
{{#if: {{{gender|}}} |
Line 25: Line 30:
! Race
! Race
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} [[{{{race}}}]]
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} [[{{{race}}}]]
{{!}}- |}}
{{#if: {{{culture|}}} |
! Culture
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} [[{{{culture}}}]]
{{!}}- |}}
{{!}}- |}}
{{#if: {{{life|}}} |
{{#if: {{{life|}}} |
Line 36: Line 45:
{{#if: {{{relationships|}}} |
{{#if: {{{relationships|}}} |
!valign="top" {{!}} Relationship(s)
!valign="top" {{!}} Relationship(s)
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} {{{relationships|Familial relationships only}}}
{{!}} align="right" valign="top" {{!}} {{{relationships|Familial relationships only}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{alias|}}} |
{{#if: {{{alias|}}} |
Line 49: Line 58:
|}
|}


<includeonly>{{#switch: {{{include}}}|#default={{#if: {{{storyline|}}} | [[Category: {{{storyline}}}]] }} {{#if: {{{storyline2|}}} | [[Category: {{{storyline2}}}]] }} {{#if: {{{storyline3|}}} | [[Category: {{{storyline3}}}]] }} {{#if: {{{storyline4|}}} | [[Category: {{{storyline4}}}]] }} |no= }}
<includeonly>{{#switch: {{{include}}}|#default={{#if: {{{storyline|}}} | [[Category: {{{storyline}}}]] }} {{#if: {{{storyline2|}}} | [[Category: {{{storyline2}}}]] }} {{#if: {{{storyline3|}}} | [[Category: {{{storyline3}}}]] }} {{#if: {{{storyline4|}}} | [[Category: {{{storyline4}}}]] }}
{{#if: {{{storyline5|}}} | [[Category: {{{storyline5}}}]] }} {{#if: {{{storyline6|}}} | [[Category: {{{storyline6}}}]] }} {{#if: {{{storyline7|}}} | [[Category: {{{storyline7}}}]] }}
{{#if: {{{storyline8|}}} | [[Category: {{{storyline8}}}]] }} {{#if: {{{storyline9|}}} | [[Category: {{{storyline9}}}]] }} |no= }}
[[Category: Non-Player Characters]]</includeonly><noinclude>
[[Category: Non-Player Characters]]</includeonly><noinclude>
{{big|'''The template should be used in conjunction with the instructions on the [[Help:Storyline NPCs]] page. Please see that page for all instructions and copy/paste code.}}
This template will insert the box on the right into a page. Blank fields will not appear in the box. The template will also place the page in the corresponding category for the storyline, so this template should only be used for GM NPCs in officially named storylines (e.g. [[Cross Into Shadows]]).

The template should be used in conjunction with the format on the [[Help:Storyline NPCs]] page.
The template is based off of the [[:Template:Deity|deity template]] by [[USER:ZHOUY1|ZHOUY1]].
The template is based off of the [[:Template:Deity|deity template]] by [[USER:ZHOUY1|ZHOUY1]].
[[Category:NPC templates]]
'''<big>Copy/paste code:</big>'''
<pre><nowiki>
{{storynpcbox
|storyline =
|gender =
|race =
|life =
|hometown =
|relationships =
|alias =
|affiliation = }}</nowiki>
</pre>
If the NPC is part of multiple storylines, add storyline2, storyline3, and storyline4 fields, as appropriate. If there are more than 4 storylines, this template will need to be revised to add more fields.

[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 15:10, 12 September 2022

Storynpcbox


The template should be used in conjunction with the instructions on the Help:Storyline NPCs page. Please see that page for all instructions and copy/paste code.

The template is based off of the deity template by ZHOUY1.