Template:Storynpcbox: Difference between revisions
Jump to navigation
Jump to search
VANKRASN39 (talk | contribs) (added requested fields. Made every field optional) |
(Adjusting to link to "Storyline (storyline)" in the sidebar instead of "Storyline" while still displaying "Storyline" to account for storylines that share their name with common articles, like Hyacinth. Now correctly!) |
||
(23 intermediate revisions by 5 users not shown) | |||
Line 10: | Line 10: | ||
{{#if: {{{1|}}} | |
{{#if: {{{1|}}} | |
||
{{!}} colspan="2" align="right" valign="top" style="white-space: nowrap;" {{!}} {{{1}}} |
{{!}} colspan="2" align="right" valign="top" style="white-space: nowrap;" {{!}} {{{1}}} |
||
|}} |
{{!}}- |}} |
||
{{#if: {{{image|}}} | |
|||
|- |
|||
{{!}} colspan=2 style="white-space: nowrap; text-align: center;" {{!}} {{{image|}}} |
|||
{{!}}- |
|||
⚫ | |||
{{#if: {{{caption|}}} | |
|||
{{!}} colspan=2 style="white-space: nowrap; font-size: smaller; text-align: center;" {{!}} '''{{{caption|}}} |
|||
{{!}}- |
|||
|}} |
|||
{{#if: {{{storyline|}}} | |
{{#if: {{{storyline|}}} | |
||
! valign="top" {{!}} Storyline |
! valign="top" {{!}} Storyline |
||
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} [[{{{storyline}}}]] |
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} [[{{{storyline}}} (storyline)|{{{storyline}}}]]{{#if: {{{storyline2|}}} | |
||
<br>[[{{{storyline2}}}]] }} |
<br>[[{{{storyline2}}} (storyline)|{{{storyline2}}}]] }}{{#if: {{{storyline3|}}} | |
||
<br>[[{{{storyline3}}}]] }} |
<br>[[{{{storyline3}}} (storyline)|{{{storyline3}}}]] }}{{#if: {{{storyline4|}}} | |
||
<br>[[{{{storyline4}}}]] }} |
<br>[[{{{storyline4}}} (storyline)|{{{storyline4}}}]] }}{{#if: {{{storyline5|}}} | |
||
<br>[[{{{storyline5}}} (storyline)|{{{storyline5}}}]] }}{{#if: {{{storyline6|}}} | |
|||
⚫ | |||
<br>[[{{{storyline6}}} (storyline)|{{{storyline6}}}]] }}{{#if: {{{storyline7|}}} | |
|||
|- |
|||
<br>[[{{{storyline7}}} (storyline)|{{{storyline7}}}]] }}{{#if: {{{storyline8|}}} | |
|||
<br>[[{{{storyline8}}} (storyline)|{{{storyline8}}}]] }}{{#if: {{{storyline9|}}} | |
|||
<br>[[{{{storyline9}}} (storyline)|{{{storyline9}}}]] }} |
|||
{{!}}- |}} |
|||
{{#if: {{{gender|}}} | |
{{#if: {{{gender|}}} | |
||
! Gender |
! Gender |
||
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} {{{gender |
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} {{{gender}}} |
||
|}} |
{{!}}- |}} |
||
|- |
|||
{{#if: {{{race|}}} | |
{{#if: {{{race|}}} | |
||
! 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|}}} | |
||
!Status |
!Status |
||
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} {{{life |
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} {{{life}}} |
||
|}} |
{{!}}- |}} |
||
|- |
|||
{{#if: {{{hometown|}}} | |
{{#if: {{{hometown|}}} | |
||
! Hometown |
! Hometown |
||
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} {{{hometown}}} |
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} [[{{{hometown}}}]] |
||
|}} |
{{!}}- |}} |
||
|- |
|||
{{#if: {{{relationships|}}} | |
{{#if: {{{relationships|}}} | |
||
!valign="top" {{!}} Relationship(s) |
!valign="top" {{!}} Relationship(s) |
||
{{!}} align="right" valign="top |
{{!}} align="right" valign="top" {{!}} {{{relationships|Familial relationships only}}} |
||
|}} |
{{!}}- |}} |
||
|- |
|||
{{#if: {{{alias|}}} | |
{{#if: {{{alias|}}} | |
||
!valign="top" {{!}} Alias/Title |
!valign="top" {{!}} Alias/Title |
||
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} {{{alias|Known alias or title}}} |
{{!}} align="right" valign="top" style="white-space: nowrap;" {{!}} {{{alias|Known alias or title}}} |
||
|}} |
{{!}}- |}} |
||
|- |
|||
{{#if: {{{affiliation|}}} | |
{{#if: {{{affiliation|}}} | |
||
!valign="top" {{!}} Affiliation(s) |
!valign="top" {{!}} Affiliation(s) |
||
Line 57: | Line 66: | ||
|} |
|} |
||
<includeonly>[[Category: {{{storyline}}}]] {{#if: {{{storyline2|}}} | [[Category: {{{storyline2}}}]] }} {{#if: {{{storyline3|}}} | [[Category: {{{storyline3}}}]] }} {{#if: {{{storyline4|}}} | [[Category: {{{storyline4}}}]] }} |
<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> |
||
⚫ | |||
This template will insert the box on the right into a page. Remove any code below not being used and it 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 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</nowiki> |
|||
<nowiki>|storyline = </nowiki> |
|||
<nowiki>|gender = </nowiki> |
|||
<nowiki>|race = </nowiki> |
|||
<nowiki>|life = </nowiki> |
|||
<nowiki>|hometown = </nowiki> |
|||
<nowiki>|relationships = </nowiki> |
|||
<nowiki>|alias = </nowiki> |
|||
<nowiki>|affiliation = }}</nowiki> |
|||
</pre> |
|||
'''Remove any field that will not be completed.''' 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. |
|||
⚫ | |||
</noinclude> |
</noinclude> |
Latest revision as of 09:16, 29 March 2023
|
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.