MarkoNolan (talk | contribs) (Edited profession) |
mNo edit summary |
||
(46 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
+ | <includeonly><div class="missioninfo {{factionclass|{{{faction|}}}}}-info"> |
||
− | <includeonly> |
||
⚫ | |||
⚫ | |||
⚫ | <div class="missionname |
||
<div style="text-align: center;"> |
<div style="text-align: center;"> |
||
{{#if: {{{image|}}} | |
{{#if: {{{image|}}} | |
||
− | [[File:{{{image|}}}|260px]] | |
+ | {{#ifexist: File:{{{image}}} | [[File:{{{image|}}}|260px]] | |
− | {{# |
+ | {{#ifexist: File:{{{image}}}.jpg | [[File:{{{image}}}.jpg|260px]] | |
− | {{#ifexist: File:{{{ |
+ | {{#ifexist: File:{{{image}}}.png | [[File:{{{image}}}.png|260px]] | |
+ | [[Category:Missing images]]}}}}}} | |
||
+ | {{#ifexist: File:{{PAGENAME}}.jpg | [[File:{{PAGENAME}}.jpg|260px]] | |
||
+ | {{#ifexist: File:{{PAGENAME}}.png | [[File:{{PAGENAME}}.png|260px]] | |
||
⚫ | |||
+ | {{#ifexist: File:{{{name}}} | [[File:{{{name}}}|260px]] | |
||
+ | {{#ifexist: File:{{{name}}}.jpg | [[File:{{{name}}}.jpg|260px]] | |
||
+ | {{#ifexist: File:{{{name}}}.png | [[File:{{{name}}}.png|260px]] | |
||
+ | [[Category:Missing images]]}}}}}} | |
||
+ | [[Category:Missing images]]}}}}}} |
||
}}</div> |
}}</div> |
||
{{ #if: {{{rank|}}} | |
{{ #if: {{{rank|}}} | |
||
Line 22: | Line 30: | ||
<div class="dataset"> |
<div class="dataset"> |
||
<div class="label">NPC-Rank:</div> |
<div class="label">NPC-Rank:</div> |
||
− | <div class="entry">[[File:Critter_Rank_{{{pips}}}_icon.png]]</div> |
+ | <div class="entry">[[File:Critter_Rank_{{{pips}}}_icon.png]]{{#if:{{{endeavor|}}}|<span style="font-size:0.80em;">[[File:Endeavor_icon.png|20px|link=Endeavor System]]''Captain''</span>[[Category:Endeavor Captains]]}}</div> |
</div> |
</div> |
||
}}{{ #if: {{{location|}}} | |
}}{{ #if: {{{location|}}} | |
||
<div class="dataset"> |
<div class="dataset"> |
||
<div class="label">Location(s):</div> |
<div class="label">Location(s):</div> |
||
− | <div class="entry">{{#switch: {{{location|}}} | |
+ | <div class="entry">{{#switch: {{lc:{{{location|}}}}} | player starship | player's starship | your starship = [[Player Starship]] | n/a = n/a | [[{{{location}}}]]}}{{ #if: {{{location2|}}} | <br>[[{{{location2}}}]][[Category:{{{location2}}}]]}}{{ #if: {{{location3|}}} | <br>[[{{{location3}}}]][[Category:{{{location3}}}]]}}{{ #if: {{{location4|}}} | <br>[[{{{location4}}}]][[Category:{{{location4}}}]]}}{{ #if: {{{location5|}}} | <br>[[{{{location5}}}]][[Category:{{{location5}}}]]}}{{ #if: {{{location6|}}} | <br>[[{{{location6}}}]][[Category:{{{location6}}}]]}}{{ #if: {{{location7|}}} | <br>[[{{{location7}}}]][[Category:{{{location7}}}]]}}{{ #if: {{{location8|}}} | <br>[[{{{location8}}}]][[Category:{{{location8}}}]]}}</div> |
</div>}}{{ #if: {{{race|}}} | |
</div>}}{{ #if: {{{race|}}} | |
||
<div class="dataset"> |
<div class="dataset"> |
||
<div class="label">Race:</div> |
<div class="label">Race:</div> |
||
− | <div class="entry">{{#ifeq: {{{race|}}} | Computer | [[Computer Vendor|Computer]] | [[{{{race}}}]]}}</div> |
+ | <div class="entry">{{#ifeq: {{{race|}}} | Computer | [[Computer Vendor|Computer]] | [[{{{race}}}]][[Category:{{{race}}} NPCs]]}}{{#if: {{{race2|}}} | /[[{{{race2|}}}]][[Category:{{{race2}}} NPCs]] | }}{{#if: {{{race3|}}} | <br>/[[{{{race3}}}]][[Category:{{{race3}}} NPCs]] | }}</div> |
</div>}}{{ #if: {{{profession|}}} | |
</div>}}{{ #if: {{{profession|}}} | |
||
<div class="dataset"> |
<div class="dataset"> |
||
Line 44: | Line 52: | ||
<div class="label">Death year:</div> |
<div class="label">Death year:</div> |
||
<div class="entry">{{{died}}}</div> |
<div class="entry">{{{died}}}</div> |
||
− | </div>}}{{ #if: {{{ |
+ | </div>}}{{ #if: {{{status|}}} | |
⚫ | |||
+ | <div class="label">Status:</div> |
||
+ | <div class="entry">{{{status}}}</div> |
||
+ | </div> |
||
+ | }}{{ #if: {{{voice|}}} | |
||
<div class="dataset"> |
<div class="dataset"> |
||
<div class="label">Voiced by:</div> |
<div class="label">Voiced by:</div> |
||
− | <div class="entry">[[ |
+ | <div class="entry">[[Voice acting|{{{voice}}}]]</div> |
− | </div>}}</div>[[Category:Non-player characters]]{{ #if: {{{rank|}}} | {{ #ifeq: {{{rank|}}} | Crewman | [[Category:Crewmen]] | [[Category:{{{rank}}}s]]}}}} |
+ | </div>}}</div>[[Category:Non-player characters]]{{ #if: {{{rank|}}} | {{ #ifeq: {{{rank|}}} | Crewman | [[Category:Crewmen]] | [[Category:{{{rank}}}s]]}}}} {{ #if: {{{faction|}}} | |
+ | {{#switch: {{lc:{{{faction}}}}} | reman resistance | true way = [[Category:{{{faction}}} NPCs]]}}}} {{ #if: {{{profession|}}} | |
||
⚫ | |||
⚫ | |||
− | {{#switch: {{{race|}}} | Trill | Borg | Liberated Borg | Gorn | Hirogen | Ferengi | Fek'Ihri | Breen | Deferi | Aenar | Ocampa | Xindi | Suliban | Jem'Hadar = [[Category:{{{race}}} NPCs]] | Unknown = [[Category:NPCs of unknown race]] | Alien = [[Category:NPCs of unknown race]] | Q = [[Category: Omnipotent NPCs]] | [[Category:{{{race}}}s]] }}}} |
||
+ | {{ #if: {{{location|}}} | |
||
⚫ | |||
⚫ | |||
− | {{#switch: {{profession|}}} | Elite Tactical Assimilated Gorn = [[Category: Elite Tactical Assimilated Gorn]] | |
||
+ | }}</includeonly><noinclude>{{doc}}[[Category:Sidebar templates]]</noinclude> |
||
⚫ | |||
− | {{doc}} |
||
− | [[Category:Templates|NPCinfo]] |
||
− | </noinclude> |
Latest revision as of 09:05, 27 November 2020
- The following documentation is transcluded from Template:NPCinfo/doc (edit):
Note: This template is not intended for use on user pages or anywhere other than normal mainspace articles. {{PCinfo}} (which functions identically except for having no automatic categorization) or {{PCInfo}} (which has different parameters) are available for use on userpages. {{ugcnpcinfo}} is available for use on foundry mission subpages.
To use this template:
{{NPCinfo | name = | image = | faction = | rank = | level = | pips = | location = | location2 = | location3 = | location4 = | location5 = | race = | profession = | profession2 = | profession3 = | profession4 = | profession5 = | born = | died = | status = | voice = | endeavor = |}}
Variables
- All variables are optional
- name
- Name of the NPC - Defaults to the page name. Only required if the NPC is named differently. (mainly to include the rank in the infobox title).
- image
- Filename of an image, without the "File:" namespace prefix - Should be an image of the NPC in .jpg format as per Wiki Guidelines (Screenshots). Defaults to, and will automatically find "PAGENAME.jpg" (or .png for compatibility). Only needs to be specified in rare cases where the image file is named differently.
- faction
- Federation, Klingon, Romulan Republic, True Way, Terran Empire, Object, or the short name of any other valid faction, ie: Voth, Breen, Vaadwuar. (Default: Neutral)
- rank
- Military Rank of the NPC as given by dialoge or other story driven information.
- level
- The level of the NPC as indicated by the HUD in-game
- pips
- The number of rank-pips displayed by the HUD when selecting the NPC in-game (might differ from rank)
- location
- Where to find the NPC; this will hyperlink automatically.
- location2
- Another place to find the NPC; this will hyperlink automatically.
- location3
- Another place to find the NPC; this will hyperlink automatically.
- location4
- Another place to find the NPC; this will hyperlink automatically.
- location5
- Another place to find the NPC; this will hyperlink automatically.
- race
- The race of the NPC; this will hyperlink automatically.
- race2
- For hybrid NPCs, this identifies the other race of the NPC's heritage. For assimilated NPCs, this identifies the NPC's original race.
- profession
- The profession of the NPC; this will auto-categorize.
- profession2
- Another profession of the NPC; this will auto-categorize.
- profession3
- Another profession of the NPC; this will auto-categorize.
- profession4
- Another profession of the NPC; this will auto-categorize.
- profession5
- Another profession of the NPC; this will auto-categorize.
- born
- Date of birth for the NPC if available.
- died
- Date of death for the NPC if available.
- status
- Last known status, when needed
- voice
- The voice actor that provided dialogue for the NPC, if any
- endeavor
- Add "Captain" if NPC qualifies for Defeat Captain endeavor