Template:NPC: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{|class="wikitable" style="width:700px" |
|||
<includeonly>{| cellpadding="2" style="float:right; width:300px; background:#99FFFF; margin-right:2em; margin-bottom:2em; border-spacing:1px;" |
|||
|-style="height:40px" |
|||
! colspan="2" style="font-size:150%"|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} |
|||
|- |
|- |
||
|width="15%"|'''Name:'''||{{#if:{{{name|}}}|{{{name}}}|''Unknown''}} |
|||
! colspan="2" bgcolor="#99FFFF" | '''{{{NPC Name}}}''' |
|||
|- |
|||
|- bgcolor="#FFFFFF" |
|||
{{#ifeq:{{lc:{{{alias}}}}}|n|| |
|||
| valign="top"| Type || align="center" | {{#if: {{{Type|}}} | {{{Type}}} | ''Unknown''}} |
|||
{{!}}'''Aliases:'''{{!}}{{!}}{{#if:{{{alias|}}}|{{{alias}}}|''Unknown''}}{{#if:{{{alias2|}}}|, {{{alias2}}}}}{{#if:{{{alias3|}}}|, {{{alias3}}}}}{{#if:{{{alias4|}}}|, {{{alias4}}}}}{{#if:{{{alias5|}}}|, {{{alias5}}}}}}} |
|||
|- bgcolor="#FFFFFF" |
|||
|- |
|||
| valign="top"| Race || align="center" | {{#if: {{{Race|}}} | {{{Race}}} | ''Unknown''}} |
|||
{{#ifeq:{{lc:{{{guild}}}}}|n|| |
|||
|- bgcolor="#FFFFFF" |
|||
| |
|'''Guild:'''||{{#if:{{{guild|}}}|[[{{{guild}}} guild]]|''Unknown''}}}} |
||
|- |
|||
|- bgcolor="#FFFFFF" |
|||
| |
|'''Race:'''||{{#If:{{{race|}}}|{{{race}}}|''Unknown''}} |
||
|- |
|||
|- bgcolor="#FFFFFF" |
|||
| |
|'''Gender:'''||{{#switch:{{lc:{{{gender}}}}}|m|male=Male|f|female=Female|''Unknown''}} |
||
|- |
|||
|- bgcolor="#FFFFFF" |
|||
| |
|'''Status:'''||{{#switch:{{lc:{{{alive}}}}}|y|yes=Alive|n|no=Dead|u=Unknown|''Unknown''}} |
||
|-{{#ifeq:{{lc:{{{location}}}|n|| |
|||
|} |
|||
{{!}}'''Location:'''{{!}}{{!}}{{#If:{{{location|}}}|[[{{{location}}}]]|''Unknown''}}}} |
|||
[[Category:NPCs]] |
|||
|-{{#if:{{{type|}}}| |
|||
{{#ifeq: {{{Type|}}} | GMNPC | [[Category:{{{Type}}}]] | }} |
|||
{{!}}'''Type:'''{{!}}{{!}}[[{{{type}}}]]{{#If:{{{type2|}}}|, [[{{{type2}}}]]}}{{#If:{{{type3|}}}|, [[{{{type3}}}]]}}{{#If:{{{type4|}}}|, [[{{{type4}}}]]}}{{#If:{{{type5|}}}|, [[{{{type5}}}]]}}}} |
|||
{{#ifeq: {{{Type|}}} | Guild Leader | [[Category:{{{Type}}}]] | }} |
|||
|-{{#if:{{{assoc|}}}| |
|||
{{#ifeq: {{{Type|}}} | Shop Owner | [[Category:{{{Type}}}]] | }} |
|||
{{!}}'''Associates:'''{{!}}{{!}}[[{{{assoc}}}]]{{#If:{{{assoc2|}}}|, [[{{{assoc2}}}]]}}{{#If:{{{assoc3|}}}|, [[{{{assoc3}}}]]}}{{#If:{{{assoc4|}}}|, [[{{{assoc4}}}]]}}{{#If:{{{assoc5|}}}|, [[{{{assoc5}}}]]}}}} |
|||
{{#ifeq: {{{Type|}}} | Other | [[Category:{{{Type}}}]] | }} |
|||
{{#if: |
|-{{#if:{{{relat|}}}| |
||
{{!}}'''Relatives:'''{{!}}{{!}}[[{{{relat}}}]]{{#If:{{{relat2|}}}|, [[{{{relat2}}}]]}}{{#If:{{{relat3|}}}|, [[{{{relat3}}}]]}}{{#If:{{{relat4|}}}|, [[{{{relat4}}}]]}}{{#If:{{{relat5|}}}|, [[{{{relat5}}}]]}}}} |
|||
{{#if: {{{Guild|}}} | [[Category:NPC {{{Guild}}}]] | }} |
|||
|}<includeonly>[[Category:NPCs]]{{#if:{{{race|}}}|[[Category:{{{race}}}]]|}}{{#if:{{{guild|}}}|[[Category:{{{guild}}}]]}}{{#switch:{{lc:{{{alive}}}}}|y|yes=[[Category:Alive]]|n|no=[[Category:Dead]]}}{{IfMatch|author|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Author]]}}{{IfMatch|child of kalestraum|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Child of Kalestraum]]}}{{IfMatch|emperor|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Emperor]]}}{{IfMatch|ferdahl|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Ferdahl]]}}{{IfMatch|guard|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Guard]]}}{{IfMatch|guild leader|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Guild Leader]]}}{{IfMatch|merchant|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Merchant]]}}{{IfMatch|pirate|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Pirate]]}}{{IfMatch|ship captain|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Ship Captain]]}}{{IfMatch|shopowner|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Shopowner]]}}{{IfMatch|undead|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Undead]]}}{{IfMatch|y'shai|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Y'Shai]]}}</includeonly><noinclude> |
|||
{{#ifeq: {{{Alive}}} | Yes | [[Category:Alive]] |}} |
|||
==Usage Documentation== |
|||
{{#ifeq: {{{Alive}}} | No | [[Category:Dead]] |}} |
|||
The template is for use with both GMNPCs and standard atmospheric NPCs.<Br> |
|||
{{#ifeq: {{{Alive}}} | yes | [[Category:Alive]] |}} |
|||
'''Note:''' This page is not currently set up to automatically generate category <nowiki>{{incomplete}}</nowiki> tags, but will be soon. |
|||
{{#ifeq: {{{Alive}}} | no | [[Category:Dead]] |}} |
|||
{{-}} |
|||
== Rumors == |
|||
{{-}} |
|||
</includeonly> |
|||
{| border="1" cellpadding="1" |
|||
<noinclude> |
|||
!Variable!!Supported Values!!Usage |
|||
==To Use== |
|||
|- |
|||
|name |
|||
|- |
|||
|alias#|| ||Any names besides the current one in use. |
|||
|- |
|||
|guild |
|||
|- |
|||
|race |
|||
|- |
|||
|gender||m/f |
|||
|- |
|||
|status||y/n/u||To be compatable with previous versions, "y" means alive, "n" means dead, and "u" means unknown. |
|||
|- |
|||
|location|| ranik map link{{!}}location name<br/>OR<br/>n|| Where the NPC is found, or "n" if not applicable. |
|||
|- |
|||
|type#|| ||Any special status they have. |
|||
|- |
|||
|assoc#|| page name{{!}}name ||Any associates of note. |
|||
|- |
|||
|relat#|| page name{{!}}name ||Any relatives. |
|||
|} |
|||
<pre> |
<pre> |
||
{{NPC |
{{NPC |
||
|name= |
|||
NPC Name = | |
|||
|alias= |
|||
Type = | |
|||
|alias2= |
|||
Race = | |
|||
|alias3= |
|||
Gender = | |
|||
|alias4= |
|||
Guild = | |
|||
|alias5= |
|||
Location = | |
|||
|guild= |
|||
Alive = | |
|||
|race= |
|||
|gender= |
|||
|status= |
|||
|location= |
|||
|type= |
|||
|type2= |
|||
|type3= |
|||
|type4= |
|||
|type5= |
|||
|assoc= |
|||
|assoc2= |
|||
|assoc3= |
|||
|assoc4= |
|||
|assoc5= |
|||
|relat= |
|||
|relat2= |
|||
|relat3= |
|||
|relat4= |
|||
|relat5= |
|||
}} |
}} |
||
</pre> |
</pre> |
||
Alive is a Yes or No answer<br> |
|||
Type can be Shop Owner, Guild Leader, GMNPC, or Other.<br> |
|||
If you do not know one of the above, leave it blank<br> |
|||
[[Category:Templates|{{PAGENAME}}]] |
|||
---- |
|||
</noinclude> |
</noinclude> |
Revision as of 00:47, 4 June 2008
NPC | |
---|---|
Name: | Unknown |
Aliases: | Unknown |
Race: | Unknown |
Gender: | Unknown |
Status: | Unknown |
Usage Documentation
The template is for use with both GMNPCs and standard atmospheric NPCs.
Note: This page is not currently set up to automatically generate category {{incomplete}} tags, but will be soon.
Variable | Supported Values | Usage |
---|---|---|
name | ||
alias# | Any names besides the current one in use. | |
guild | ||
race | ||
gender | m/f | |
status | y/n/u | To be compatable with previous versions, "y" means alive, "n" means dead, and "u" means unknown. |
location | location name OR n |
Where the NPC is found, or "n" if not applicable. |
type# | Any special status they have. | |
assoc# | name | Any associates of note. |
relat# | name | Any relatives. |
{{NPC |name= |alias= |alias2= |alias3= |alias4= |alias5= |guild= |race= |gender= |status= |location= |type= |type2= |type3= |type4= |type5= |assoc= |assoc2= |assoc3= |assoc4= |assoc5= |relat= |relat2= |relat3= |relat4= |relat5= }}