Template:Storynpcbox: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
(instructions to turn off storyline non-existent category inclusion)
(remove remaining instructions and instruct to refer to help page)
Line 51: Line 51:
<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}}}]] }} |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]].
'''<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.

Inserting <code>|include=no</code> will remove the NPC from storyline categories. This is helpful when a category does not exist.

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

Revision as of 14:16, 9 September 2017

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.