Шаблон:NPC infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
− | {{infobox status|{{{status|{{ | + | <includeonly><!-- |
− | + | -->{{#set: Has context=NPC}}<!-- Default properties for the type of page | |
− | -->{{ | + | -->{{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}} }}<!-- |
+ | -->{{infobox requires|{{{requires|}}} }}<!-- | ||
--><div class="infobox npc"> | --><div class="infobox npc"> | ||
{{#if: {{{icon|}}} | {{#if: {{{icon|}}} | ||
− | | <div class="icon">[[File:{{{icon}}}|40x40px]]</div> | + | | <div class="icon">[[Has game icon::File:{{{icon}}}|40x40px]]</div> |
| {{#if: {{{service|}}} | | {{#if: {{{service|}}} | ||
− | | {{# | + | | {{#vardefine:first service|{{#explode:{{{service}}}|,|0}}}}<!-- grab the first item in the list for the icon |
− | --> | + | -->{{#vardefine:icon|{{#switch: {{lc:{{#var:first service}}}} |
− | | | + | | armorsmith = Armorsmith.png |
− | | | + | | reinforce armor = Reinforce Armor.png |
| crest collector | | crest collector | ||
− | | bandit crest collector = Bandit Crest Collector | + | | bandit crest collector = Bandit Crest Collector.png |
− | | collections instructor = Basic Collections | + | | collections instructor = Basic Collections.png |
− | | dungeon merchant | + | | dungeon information = Dungeon (map icon).png |
+ | | dungeon merchant = Dungeon Merchant.png | ||
+ | | fishmonger = Merchant.png | ||
+ | | fishing supplies = Merchant.png | ||
| gift | | gift | ||
− | | gift exchange | + | | gift exchange = Peppermint.png |
− | | guild commendation trader = Guild Commendation Trainer (map icon) | + | | guild armorer = Guild Armorer.png |
− | | guild | + | | guild commendation trader = Guild Commendation Trainer (map icon).png |
− | | guild weaponsmith | + | | guild promoter = Guild Commendation Trader.png |
− | | weaponsmith | + | | guild weaponsmith = Guild Weaponsmith.png |
+ | | weaponsmith = Weaponsmith.png | ||
| karma merchant | | karma merchant | ||
| karma vendor | | karma vendor | ||
− | | karma | + | | karma = Karma Merchant.png |
− | | cultural armorsmith | + | | ley line crystal merchant = Ley Line Crystal.png |
− | | cultural weaponsmith | + | | cultural armorsmith = Cultural Armorsmith.png |
− | | master armorsmith | + | | cultural weaponsmith = Cultural Weaponsmith.png |
− | | master artificer | + | | master armorsmith = Master Armorsmith.png |
− | | master chef | + | | master artificer = Master Artificer.png |
− | | master huntsman | + | | master chef = Master Chef.png |
− | | master jeweler | + | | master huntsman = Master Huntsman.png |
− | | master leatherworker | + | | master jeweler = Master Jeweler.png |
− | | master tailor | + | | master leatherworker = Master Leatherworker.png |
− | | master weaponsmith | + | | master scribe = Master Scribe.png |
− | | merchant | + | | master tailor = Master Tailor.png |
− | | event merchant | + | | master weaponsmith = Master Weaponsmith.png |
− | | repairs | + | | mount rental = <!-- none --> |
+ | | pact supply network agent | ||
+ | | merchant | ||
+ | | event merchant = Merchant.png | ||
+ | | repairs = Repairs.png | ||
+ | | research merchant = Research Merchant (overhead icon).png | ||
+ | | race organizer = Event dialogue (overhead icon).png | ||
+ | | renown heart = Renown heart NPC.png | ||
+ | | repeatable heart = Renown heart NPC repeatable.png | ||
| skill challenge | | skill challenge | ||
− | | hero challenge | + | | hero challenge = Hero challenge.png |
− | | trading post | + | | trading post = Trading post.png |
+ | | transport facilitator = Transport Facilitator (map icon).png | ||
| living world | | living world | ||
| living story | | living story | ||
− | | ls | + | | ls = Living Story (map icon).png |
| living story scout | | living story scout | ||
| living world scout | | living world scout | ||
− | | ls scout | + | | ls scout = Living Story Scout.png |
| living story waypoint | | living story waypoint | ||
| ls waypoint | | ls waypoint | ||
− | | ls wp | + | | ls wp = Living Story waypoint.png |
| living story collector | | living story collector | ||
− | | ls collector | + | | ls collector = Living Story Collector.png |
− | | geode merchant = Merchant | + | | geode merchant |
− | | belcher's bluff | + | | zephyrite merchant = Tier 01 Zephyrite Merchant (map icon).png |
− | | activity | + | | belcher's bluff = Belcher's Bluff (map icon).png |
− | | mystic forge attendant = Mystic Forge | + | | activity = Activity (map icon).png |
− | | guild claiming = | + | | mystic forge attendant = Mystic Forge.png |
− | | #default | + | | guild claiming = Blank.png |
− | }} | + | | guild = Guild Services.png |
+ | | proprietor = Proprietor.png | ||
+ | | mastery insight | ||
+ | | mastery insight (path of fire) = Mastery point (Path of Fire).png | ||
+ | | mastery insight (end of dragons) = Mastery point (End of Dragons).png | ||
+ | | bonus event merchant | ||
+ | | living world merchant | ||
+ | | siren's landing merchant = Vendor Star.png | ||
+ | | gardener = Gardener.png | ||
+ | | dragon arena = Dragon Bash.png | ||
+ | | #default = {{ifimage|{{#var:first service}}.png|{{#var:first service}}.png|Skill.png}} | ||
+ | }}}}<!-- | ||
+ | -->{{#if: {{#var:icon}} | <div class="icon">[[Has game icon::File:{{#var:icon}}|40x40px]]</div> }} | ||
}} | }} | ||
}} | }} | ||
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | <p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | ||
<div class="wrapper"> | <div class="wrapper"> | ||
− | + | {{#ifeq:{{{image}}}|no|<!-- Not visible or necessary-->|<p class="image_wrapper">{{#if:{{{image|}}} | |
− | + | | [[Has appearance::File:{{{image}}}|240x300px]] | |
− | | {{#vardefine:default|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}.jpg}} {{# | + | | {{#vardefine:default image|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}.jpg}} {{#if: {{ifimage|{{#var:default image}}|exists}} |
− | | [[Has appearance::{{#var:default}}|240x300px]] | + | | [[Has appearance::{{#var:default image}}|240x300px]] |
− | | [[{{#var:default}}|Upload an image of this NPC.]] <!-- Red link to file upload page --> | + | | [[{{#var:default image}}|Upload an image of this NPC.]]<!-- Red link to file upload page --> |
}} | }} | ||
− | }} | + | }} }}{{#switch:{{lc:{{{random|no}}}}}|y|yes=<center><small>(This NPC's appearance may change randomly.)</small></center>}} |
</p> | </p> | ||
+ | {{#switch: {{lc:{{{race|}}}}} | ||
+ | | object = <!-- do not show if object --> {{#set:Has race=Object}} | ||
+ | | <!-- empty --> = | ||
+ | ;[[Bestiary|Раса]] | ||
+ | :Unknown {{#set:Has race=NPCs with unknown race}} | ||
+ | | #default = | ||
;[[Bestiary|Раса]] | ;[[Bestiary|Раса]] | ||
− | :{{#arraymap:{{{race|}}}|,|@@@|{{# | + | :{{#arraymap:{{{race|}}}|,|@@@|{{#switch:{{lc:@@@}} |
+ | | object = <!-- suppress object for multiple race parameters -->{{#set:Has race=Object}} | ||
+ | | various = Various {{#set:Has race=NPCs with various races}} | ||
+ | | vision = [[Has race::Vision (race)|Vision]] {{#set:Has family=Vision (race)}} | ||
+ | | phantasm = [[Has race::Phantasm (race)|Phantasm]] {{#set:Has family=Phantasm (race)}} | ||
+ | | celestial = [[Has race::Celestial (group)|Celestial]] {{#set:Has family=Celestial (group)}} | ||
+ | | warden (race) = [[Has race::Warden (race)|Warden]] {{#set:Has family=Warden (race)}} | ||
+ | | raptor | ||
+ | | raptor (race) = [[Has race::Raptor (race)|Raptor]] {{#set:Has family=Raptor (race)}} | ||
+ | | spirit (race) = [[Has race::Spirit (race)|Spirit]] {{#set:Has family=Spirit (race)}} | ||
+ | | griffon | ||
+ | | griffon (race) = [[Has race::Griffon (race)|Griffon]] {{#set:Has family=Griffon (race)}} | ||
+ | | #default = [[Has race::{{ucfirst:@@@}}]] {{#set:Has family={{ucfirst:@@@}}}} | ||
+ | }}}} | ||
}}{{#if:{{{profession|}}}| | }}{{#if:{{{profession|}}}| | ||
;[[Profession|Профессия]] | ;[[Profession|Профессия]] | ||
− | :{{#arraymap: {{{profession}}}|,|@@@|[[ | + | :{{#arraymap: {{{profession}}}|,|@@@|{{#switch:{{lc:@@@}} |
− | }} {{#ifeq: {{{level|0}}} | 0 | {{#set:Has NPC level=0}} | | + | | monk = [[Monk (lore)|Monk]] |
+ | | ritualist = [[Ritualist (lore)|Ritualist]] | ||
+ | | #default = [[{{ucfirst:@@@}}]] | ||
+ | }}|<br>}}}}{{#ifeq: {{{level|0}}} | 0 | {{#set:Has NPC level=0}} | | ||
;[[Experience|Уровень]] | ;[[Experience|Уровень]] | ||
:[[Has NPC level::{{{level}}}]] | :[[Has NPC level::{{{level}}}]] | ||
− | }} {{#if: {{{rank|}}} | | + | }}{{#if: {{{rank|}}} | |
;[[NPC rank|Ранг]] | ;[[NPC rank|Ранг]] | ||
− | + | :{{#arraymap: {{{rank}}}|,|@@@|{{#switch:{{lc:@@@}} | |
− | | critter | + | | critter |
− | | ambient | + | | ambient |
− | | ambient creature = Ambient | + | | ambient creature = [[Has NPC rank::Ambient]] |
− | | bronze | + | | bronze |
− | | veteran = Veteran | + | | vet |
− | | silver | + | | veteran = [[Has NPC rank::Veteran]] |
− | | elite = Elite | + | | silver |
− | | | + | | elite = [[Has NPC rank::Elite]] |
− | | champion = Champion | + | | champ |
− | | purple | + | | champion |
− | | legendary = Legendary | + | | gold = [[Has NPC rank::Champion]] |
− | | epic = Epic | + | | purple |
− | | basic | + | | legendary = [[Has NPC rank::Legendary]] |
− | | normal | + | | epic |
− | | #default = Normal | + | | world boss = [[Has NPC rank::Epic]] |
− | }} | + | | basic |
− | {{infobox location| {{{location|}}} }} | + | | normal |
+ | | #default = [[Has NPC rank::Normal]] | ||
+ | }}|<br>}}|<!-- default if {rank} not set -->{{#set:Has NPC rank=Normal}}}} | ||
+ | {{infobox location|{{{location|}}}}} | ||
{{#if: {{{organization|}}} | | {{#if: {{{organization|}}} | | ||
;[[:Category:Organizations|Организация]] | ;[[:Category:Organizations|Организация]] | ||
− | :{{#switch:{{lc:{{{organization}}}}} | + | :{{#arraymap:{{{organization|}}}|,|@@@|{{#switch: {{lc:@@@}} <!--Temporary code for family property --> |
− | | druids = [[Druid (group)|Druids]] | + | | ascalonian ghosts = [[Has organization::Ascalonian ghost|Ascalonian ghosts]] {{#set:Has family=Ascalonian ghost}} |
− | | | + | | bandits = [[Has organization::Bandit|Bandits]] {{#set:Has family=Bandit}} |
− | + | | bloodstone ghosts = [[Has organization::Bloodstone ghost|Bloodstone ghosts]] {{#set:Has family=Bloodstone ghost}} | |
− | + | | celestial = [[Has organization::Celestial (group)|Celestials]] {{#set:Has family=Celestial (group)}} | |
− | + | | corsairs = [[Has organization::Corsair|Corsairs]] {{#set:Has family=Corsair}} | |
− | }}}}{{ #if: {{{service|}}} | | + | | druids = [[Has organization::Druid (group)|Druids]] {{#set:Has family=Druid (group)}} |
+ | | holographic dragon minions = [[Has organization::Holographic dragon minion|Holographic dragon minions]] {{#set:Has family=Holographic dragon minion}} | ||
+ | | pirates = [[Has organization::Pirate|Pirates]] {{#set:Has family=Pirate}} | ||
+ | | primeval ghosts = [[Has organization::Primeval ghost|Primeval ghosts]] {{#set:Has family=Primeval ghost}} | ||
+ | | saltspray dragon = [[Has organization::Saltspray dragon|Saltspray dragons]] {{#set:Has family=Saltspray dragon}} | ||
+ | | settlers = [[Has organization::Settler (group)|Settlers]] {{#set:Has family=Settler (group)}} | ||
+ | | zintl = [[Has organization::Zintl (tribe)|Zintl]] {{#set:Has family=Zintl (tribe}} | ||
+ | | #default = [[Has organization::{{ucfirst:@@@}}]] {{#set:Has family={{ucfirst:@@@}}}} | ||
+ | }}|<br>}}}}{{#if: {{{service|}}} | | ||
;[[Service|Услуги]] | ;[[Service|Услуги]] | ||
− | :{{#arraymap:{{{service|}}}|,|@@@|{{#switch: {{lc:@@@}} | + | :{{#arraymap:{{{service|}}}|,|@@@|{{#switch: {{lc:@@@}} |
− | | renown heart = [[Has service::Renown | + | | repeatable heart |
− | | bandit crest collector | + | | renown heart npc |
− | | crest collector = [[Has service::Bandit Crest Collector]] | + | | renown heart = [[Has service::Renown Heart|Renown Heart]] |
− | | guild promoter = [[Has service::Guild Promoter]] | + | | reinforce armor = [[Has service::Reinforce Armor|Reinforce Armor]] |
− | | guild registrar = [[Has service::Guild Registrar]] | + | | bandit crest collector |
− | | guild weaponsmith = [[Has service::Guild Weaponsmith]] | + | | crest collector = [[Has service::Bandit Crest Collector]] |
− | | guild armorer = [[Has service::Guild Armorer]] | + | | guild promoter = [[Has service::Guild Promoter (historical)]] |
− | | guild commendation = [[Has service::Guild Commendation Trader]] | + | | guild registrar = [[Has service::Guild Registrar]] |
− | | trading post = [[Has service::Trading | + | | guild weaponsmith = [[Has service::Guild Weaponsmith]] |
− | | weaponsmith = [[Has service::Weaponsmith (vendor)]] | + | | guild armorer = [[Has service::Guild Armorer]] |
− | | armorsmith = [[Has service::Armorsmith (vendor)]] | + | | guild commendation = [[Has service::Guild Commendation Trader]] |
− | | karma merchant | + | | trading post = [[Has service::Trading Post]] |
− | | karma vendor | + | | weaponsmith = [[Has service::Weaponsmith (vendor)|Weaponsmith]] |
− | | karma = [[Has service::Karma merchant]] | + | | armorsmith = [[Has service::Armorsmith (vendor)|Armorsmith]] |
− | | speed boons = [[Has service::Speed boons]] | + | | karma merchant |
− | | skill challenge | + | | karma vendor |
− | | hero challenge = [[Has service::Hero challenge]] | + | | karma = [[Has service::Karma merchant]] |
− | | | + | | laurel merchant = [[Has service::Laurel Merchant]] |
− | + | | living world merchant = [[Has service::Merchant|Living World Merchant]] | |
− | | repair | + | | living world scout = [[Has service::Scout|Living World Scout]] |
− | | repairs = [[Has service::Repairs]] | + | | speed boons = [[Has service::Speed boons]] |
− | | belcher's bluff = [[Has service::Belcher's Bluff]] | + | | skill challenge |
− | | activity = [[Has service::Activity]] | + | | hero challenge = [[Has service::Hero challenge]] |
− | | master armorsmith = [[Has service::Master armorsmith]] | + | | race organizer = [[Has service::Race Organizer]] |
− | | master artificer = [[Has service::Master artificer]] | + | | repair |
− | | master chef = [[Has service::Master chef]] | + | | repairs = [[Has service::Repairs]] |
− | | master huntsman = [[Has service::Master huntsman]] | + | | belcher's bluff = [[Has service::Belcher's Bluff]] |
− | | master jeweler = [[Has service::Master jeweler]] | + | | activity = [[Has service::Activity]] |
− | | master leatherworker = [[Has service::Master leatherworker]] | + | | master armorsmith = [[Has service::Master armorsmith]] |
− | | master tailor = [[Has service::Master tailor]] | + | | master artificer = [[Has service::Master artificer]] |
− | | master weaponsmith = [[Has service::Master weaponsmith]] | + | | master chef = [[Has service::Master chef]] |
− | | #default = [[Has service::{{ucfirst:@@@}}]] | + | | master huntsman = [[Has service::Master huntsman]] |
+ | | master jeweler = [[Has service::Master jeweler]] | ||
+ | | master leatherworker = [[Has service::Master leatherworker]] | ||
+ | | master tailor = [[Has service::Master tailor]] | ||
+ | | master weaponsmith = [[Has service::Master weaponsmith]] | ||
+ | | guild = [[Has service::Guild Services]] | ||
+ | | master weaponsmith = [[Has service::Proprietor]] | ||
+ | | fishing supplies = [[Has service::Fishing Supplies]] | ||
+ | | mastery insight | mastery insight (path of fire) | mastery insight (end of dragons) = [[Has service::Mastery Insight]] | ||
+ | | #default = [[Has service::{{ucfirst:@@@}}]] | ||
}} |<br>}} | }} |<br>}} | ||
− | }} {{ #if: {{{goal|}}} | | + | }} {{#if: {{{goal|}}} | |
− | ; | + | ;Part of |
− | :{{#arraymap: {{{goal}}}|\n|@@@|[[@@@]]|<br>}} | + | :{{#arraymap: {{{goal}}}|\n|@@@|[[Has NPC goal::@@@]]|<br>}} |
}} | }} | ||
</div> | </div> | ||
− | {{#if: {{{ | + | {{#if: {{{gallery1|}}}{{ifimage|{{PAGENAME}} location.jpg|exists}}{{{coordinates|}}}{{{path|}}} | |
− | {{{!}} | + | {{{!}} style="width:100%" |
− | {{!}} ''' | + | {{!}} '''Изображения''' |
{{!}}- style="text-align:center;" | {{!}}- style="text-align:center;" | ||
{{!}} | {{!}} | ||
− | [[File:{{{ | + | {{#if: {{{gallery1|}}}{{ifimage|{{PAGENAME}} location.jpg|exists}} | [[File:{{{gallery1|{{PAGENAME}} location.jpg}}}|250x200px]] |
− | <p style="font-size:.9em;">{{{ | + | <p style="font-size:.9em;">{{{gallery1-text|Click to enlarge.}}}</p> }}{{#if: {{{gallery2|}}} | [[File:{{{gallery2|}}}|250x200px]] |
− | <p style="font-size:.9em;">{{{ | + | <p style="font-size:.9em;">{{{gallery2-text|Click to enlarge.}}}</p> }}{{#if: {{{gallery3|}}} | [[File:{{{gallery3|}}}|250x200px]] |
− | <p style="font-size:.9em;">{{{ | + | <p style="font-size:.9em;">{{{gallery3-text|Click to enlarge.}}}</p> }}{{#if: {{{gallery4|}}} | [[File:{{{gallery4|}}}|250x200px]] |
− | <p style="font-size:.9em;">{{{ | + | <p style="font-size:.9em;">{{{gallery4-text|Click to enlarge.}}}</p> }}{{#if: {{{gallery5|}}} | [[File:{{{gallery5|}}}|250x200px]] |
− | <p style="font-size:.9em;">{{{ | + | <p style="font-size:.9em;">{{{gallery5-text|Click to enlarge.}}}</p> }}{{#if: {{{coordinates|}}}{{{path|}}}{{{bounds|}}} |
+ | | {{Infobox map | coordinates = {{{coordinates|}}} | path = {{{path|}}} | bounds = {{{bounds|}}} | localtiles = {{{localtiles|}}} | requires = {{{requires|{{{release|}}}}}} | icon = {{#var:icon|{{{icon|}}}}} }} }} | ||
{{!}}} | {{!}}} | ||
| {{clear}} }} | | {{clear}} }} | ||
</div>{{#if:{{{description|}}}| | </div>{{#if:{{{description|}}}| | ||
− | {{Quotation| | + | {{Quotation|In-game description|[[Has game description::{{#arraymap:{{{description|}}}|,|@@@|@@@| • }}]] }} }}<!-- |
AUTOCATEGORIZATION | AUTOCATEGORIZATION | ||
-->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace --> | -->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace --> | ||
{{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }} | {{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }} | ||
{{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = do not categorize }} | {{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = do not categorize }} | ||
− | |||
| <!-- Do not categorize --> | | | <!-- Do not categorize --> | | ||
− | {{#if:{{{race|}}}| | + | {{#if: {{{race|}}} | |
− | {{#arraymap:{{{race|}}}|,|@@@|{{#switch: {{lc:@@@}} <!-- Address plural form --> | + | {{#arraymap:{{{race|}}}|,|@@@|{{#switch: {{lc:@@@}}<!-- Address plural form --> |
+ | | aberrant = [[Category:Aberrant]] | ||
| asuran | | asuran | ||
| asura = [[Category:Asura]] | | asura = [[Category:Asura]] | ||
+ | | awakened = [[Category:Awakened]] | ||
| branded = [[Category:Branded]] | | branded = [[Category:Branded]] | ||
+ | | chak = [[Category:Chak]] | ||
| charr = [[Category:Charr]] | | charr = [[Category:Charr]] | ||
− | | | + | | choya = [[Category:Choya]] |
| djinn = [[Category:Djinn]] | | djinn = [[Category:Djinn]] | ||
| dredge = [[Category:Dredge]] | | dredge = [[Category:Dredge]] | ||
| dwarf = [[Category:Dwarves]] | | dwarf = [[Category:Dwarves]] | ||
+ | | echo = [[Category:Echoes]] | ||
+ | | exalted = [[Category:Exalted]] | ||
+ | | fallen = [[Category:Fallen]] | ||
| fish = [[Category:Fish]] | | fish = [[Category:Fish]] | ||
+ | | forged = [[Category:Forged]] | ||
+ | | fungus = [[Category:Fungi]] | ||
+ | | god = [[Category:Six Human Gods]] | ||
| grawl = [[Category:Grawl]] | | grawl = [[Category:Grawl]] | ||
+ | | griffon (race) = [[Category:Griffons]] | ||
| harpy = [[Category:Harpies]] | | harpy = [[Category:Harpies]] | ||
+ | | heket = [[Category:Heket]] | ||
| hylek = [[Category:Hylek]] | | hylek = [[Category:Hylek]] | ||
+ | | iboga = [[Category:Iboga]] | ||
| icebrood = [[Category:Icebrood]] | | icebrood = [[Category:Icebrood]] | ||
+ | | irukandji = [[Category:Irukandji]] | ||
+ | | jacaranda = [[Category:Jacaranda]] | ||
+ | | junundu = [[Category:Junundu]] | ||
+ | | kappa = [[Category:Kappa]] | ||
| karka = [[Category:Karka]] | | karka = [[Category:Karka]] | ||
+ | | kirin = [[Category:Kirin]] | ||
| kodan = [[Category:Kodan]] | | kodan = [[Category:Kodan]] | ||
| krait = [[Category:Krait]] | | krait = [[Category:Krait]] | ||
Строка 189: | Строка 274: | ||
| jotun = [[Category:Jotun]] | | jotun = [[Category:Jotun]] | ||
| largos = [[Category:Largos]] | | largos = [[Category:Largos]] | ||
− | |||
| mordrem = [[Category:Mordrem]] | | mordrem = [[Category:Mordrem]] | ||
+ | | mursaat = [[Category:Mursaat]] | ||
+ | | naga = [[Category:Naga]] | ||
| norn = [[Category:Norn]] | | norn = [[Category:Norn]] | ||
− | |||
| plant = [[Category:Plants]] | | plant = [[Category:Plants]] | ||
+ | | raptor (race) = [[Category:Raptors]] | ||
| risen = [[Category:Risen]] | | risen = [[Category:Risen]] | ||
| skale = [[Category:Skale]] | | skale = [[Category:Skale]] | ||
| skelk = [[Category:Skelk]] | | skelk = [[Category:Skelk]] | ||
+ | | sloth = [[Category:Sloth]] | ||
| skritt = [[Category:Skritt]] | | skritt = [[Category:Skritt]] | ||
+ | | spirit of the wild = [[Category:Spirits of the Wild]] | ||
+ | | snowman = [[Category:Snowmen]] | ||
| colossus = [[Category:Colossuses]] | | colossus = [[Category:Colossuses]] | ||
− | |||
| steam | | steam | ||
| steam creature = [[Category:Steam creatures]] | | steam creature = [[Category:Steam creatures]] | ||
− | | sylvari = [[Category:Sylvari]] | + | | sylvari = [[Category:Sylvari]] |
+ | | spirit (race) = [[Category:Spirits]] | ||
| tengu = [[Category:Tengu]] | | tengu = [[Category:Tengu]] | ||
− | |||
| halloween | | halloween | ||
| halloween creature = [[Category:Halloween creatures]] | | halloween creature = [[Category:Halloween creatures]] | ||
− | |||
− | |||
| wintersday | | wintersday | ||
− | | wintersday | + | | wintersday toy = [[Category:Wintersday toys]] |
+ | | warden (race) = [[Category:Wardens (race)]] | ||
| critter | | critter | ||
| ambient | | ambient | ||
| ambient creature = [[Category:Ambient creatures]] | | ambient creature = [[Category:Ambient creatures]] | ||
− | | various = | + | | object = [[Category:Object NPCs]] |
− | | #default = [[Category:{{ucfirst: | + | | various = [[Category:NPCs with various races]] |
+ | | dragonvoid | ||
+ | | void = [[Category:Void]] | ||
+ | | unknown = [[Category:NPCs with unknown race]] | ||
+ | | #default = [[Category:{{ucfirst:@@@s}}]] | ||
}}|}} | }}|}} | ||
− | | [[Category:NPCs with | + | | [[Category:NPCs with unknown race]] }} |
− | {{# | + | {{#if:{{{profession|}}}| |
− | {{# | + | {{#arraymap:{{{profession|}}}|,|@@@|{{#switch: {{lc:@@@}} |
− | {{#arraymap:{{{service|}}}|,|@@@|{{#switch:{{lc:@@@}} <!-- Parse multiple services then set categories. --> | + | | tempest |
− | | | + | | weaver |
+ | | catalyst | ||
+ | | elementalist = [[Category:Elementalist NPCs]] | ||
+ | | dragonhunter | ||
+ | | firebrand | ||
+ | | willbender | ||
+ | | guardian = [[Category:Guardian NPCs]] | ||
+ | | berserker | ||
+ | | spellbreaker | ||
+ | | bladesworn | ||
+ | | warrior = [[Category:Warrior NPCs]] | ||
+ | | herald | ||
+ | | renegade | ||
+ | | vindicator | ||
+ | | revenant = [[Category:Revenant NPCs]] | ||
+ | | druid | ||
+ | | soulbeast | ||
+ | | untamed | ||
+ | | ranger = [[Category:Ranger NPCs]] | ||
+ | | daredevil | ||
+ | | deadeye | ||
+ | | specter | ||
+ | | thief = [[Category:Thief NPCs]] | ||
+ | | scrapper | ||
+ | | holosmith | ||
+ | | mechanist | ||
+ | | engineer = [[Category:Engineer NPCs]] | ||
+ | | chronomancer | ||
+ | | mirage | ||
+ | | virtuoso | ||
+ | | mesmer = [[Category:Mesmer NPCs]] | ||
+ | | reaper | ||
+ | | scourge | ||
+ | | harbinger | ||
+ | | necromancer = [[Category:Necromancer NPCs]] | ||
+ | | monk = [[Category:Monk NPCs]] | ||
+ | | ritualist = [[Category:Ritualist NPCs]] | ||
+ | }}|}} }} | ||
+ | {{#if: {{{organization|}}} | {{#arraymap:{{{organization|}}}|,|@@@|{{#switch:{{lc:@@@}} | ||
+ | | celestial = [[Category:Celestials]] | ||
+ | | saltspray dragon = [[Category:Saltspray dragons]] | ||
+ | | #default = [[Category:@@@]] | ||
+ | }}|}} }} | ||
+ | {{#if: {{{goal|}}} | {{#arraymap:{{{goal|}}}|,|@@@|{{#switch:{{lc:@@@}} | ||
+ | | personal story = [[Category:Story characters]] | ||
+ | | guild bounty = [[Category:Guild bounties]] | ||
+ | }}|}} }} | ||
+ | {{#if: {{{service|}}} | {{#arraymap:{{{service|}}}|,|@@@|{{#switch:{{lc:@@@}} <!-- Parse multiple services then set categories. --> | ||
+ | | activity = [[Category:Activity NPCs]] | ||
+ | | reinforce armor = [[Category:Reinforce Armor NPCs]] | ||
+ | | bank = [[Category:Bankers]] | ||
+ | | belcher's bluff = [[Category:Belcher's Bluff NPCs]] | ||
+ | | directions = [[Category:Direction NPCs]] | ||
+ | | fishing supplies = [[Category:Fishing Supplies]] | ||
| guild bank = [[Category:Guild bankers]] | | guild bank = [[Category:Guild bankers]] | ||
− | | guild commendation | + | | guild commendation |
| guild commendation trader = [[Category:Guild commendation traders]] | | guild commendation trader = [[Category:Guild commendation traders]] | ||
− | | | + | | skill challenge |
− | | | + | | hero challenge = [[Category:Hero challenges]] |
− | | karma merchant | + | | karma merchant |
− | | karma vendor | + | | karma vendor |
| karma = [[Category:Karma merchants]] | | karma = [[Category:Karma merchants]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| master huntsman = [[Category:Master huntsmen]] | | master huntsman = [[Category:Master huntsmen]] | ||
− | |||
| mystic forge = [[Category:Mystic Forge NPCs]] | | mystic forge = [[Category:Mystic Forge NPCs]] | ||
+ | | repeatable heart | ||
+ | | renown heart = [[Category:Renown heart NPCs]] | ||
+ | | repair | ||
+ | | repairs = [[Category:Repairs]] | ||
+ | | skirmish merchant = [[Category:Skirmish Merchants]] | ||
+ | | speed boons = [[Category:Speed boon NPCs]] | ||
+ | | trading post = [[Category:Trading Post NPCs]] | ||
+ | | ability-point reset merchant | ||
+ | | arena proprietor | ||
+ | | basic decorations | ||
+ | | dragon arena | ||
+ | | guild enhancements | ||
+ | | guild initiative notary | ||
+ | | guild mission | ||
+ | | guild miniature merchant | ||
+ | | guild weaponsmith | ||
+ | | heroics notary | ||
+ | | level 80 mentor | ||
+ | | ley line crystal merchant | ||
+ | | living world | ||
+ | | living world merchant | ||
+ | | market proprietor | ||
+ | | mine proprietor | ||
+ | | mining boost | ||
+ | | rally event | ||
+ | | resonance broker | ||
+ | | tavern proprietor | ||
+ | | treasury | ||
+ | | war materials | ||
+ | | war room proprietor | ||
+ | | workshop proprietor | ||
+ | | world ability master = <!-- no category necessary --> | ||
+ | | mastery insight | ||
+ | | mastery insight (path of fire) | ||
+ | | mastery insight (end of dragons) = [[Category:Mastery insights]] | ||
| #default = [[Category:{{ucfirst:@@@}}s]] | | #default = [[Category:{{ucfirst:@@@}}s]] | ||
− | }}|}} | + | }}|}} }} |
− | {{#if: {{{ | + | {{#if: {{{coordinates|}}} |
− | }} | + | | {{#ifexpr: {{#len: {{{coordinates|}}} }} < 1000 |
− | + | | {{#set: | |
− | + | | Has x coordinate = {{#replace:{{#explode: {{{coordinates|}}} |,|0}}|[|}} | |
− | + | | Has y coordinate = {{#replace:{{#explode: {{{coordinates|}}} |,|1}}|]|}} | |
− | + | }} | |
− | + | }} | |
− | + | | {{#if: {{{path|}}} | |
− | + | | {{#ifexpr: {{#len: {{{path|}}} }} < 1000 | |
− | + | | {{#set: | |
− | + | | Has x coordinate = {{#replace:{{#explode: {{{path|}}} |,|0}}|[|}} | |
− | + | | Has y coordinate = {{#replace:{{#explode: {{{path|}}} |,|1}}|]|}} | |
− | + | }} | |
− | + | }} | |
− | + | }} | |
− | + | }} | |
− | + | {{#switch: {{lc:{{{service|}}}}} | |
− | + | | hero challenge = {{#set: | Has hero challenge id = {{{id|-1-999}}} }} | |
− | + | | mastery insight | mastery insight (central tyria) | mastery insight (heart of thorns) | mastery insight (path of fire) | mastery insight (icebrood saga) | mastery insight (end of dragons) = {{#set: | Has mastery id = {{{id|-999}}} }} | |
− | + | }} | |
− | + | {{#ifeq: {{{image}}} | no | |
+ | | <!-- not required --> | ||
+ | | {{#ifexist: File:{{#if:{{{image|}}}|{{{image}}}|{{#replace:{{BASEPAGENAME}}|:|-}}.jpg}}<!--dealing with empty parameter as if it didn't exist-->| <!-- OK --> | [[Category:NPCs missing a screenshot]] }} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | --></includeonly> <!-- this trailing space is a whitespace fix --><noinclude> | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{NPC infobox | {{NPC infobox | ||
| name = | | name = | ||
− | |||
| image = | | image = | ||
+ | | random = | ||
| location = | | location = | ||
+ | | coordinates = | ||
| race = | | race = | ||
| organization = | | organization = | ||
Строка 277: | Строка 454: | ||
| service = | | service = | ||
| goal = | | goal = | ||
− | | | + | | gallery1...gallery5 = |
− | | | + | | gallery1-text...gallery5-text = |
− | + | | requires = | |
− | + | | status = | |
− | + | | status notes = | |
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | | | ||
}}</pre> | }}</pre> | ||
− | == Example == | + | === Parameters === |
+ | ; name : Optional. Only include if the name of the NPC differs from the article name. Defaults the name of the article: <code><nowiki>{{PAGENAME}}</nowiki></code>. | ||
+ | ; icon : Optional. Only include if the NPC has a unique icon. If no value is set the icon defaults to showing an icon chosen by the '''service''' parameter. If that too is unspecified, the icon is hidden. | ||
+ | ; image : Optional. Defaults to the page name: <code><nowiki>{{PAGENAME}}.jpg</nowiki></code>. Set to <code>no</code> to disable the image. Note that the NPC screenshot should not include any text. The [[Guild Wars 2 Wiki:Projects/Shared Model Project|Shared Model Project]] might be used for any already uploaded model. | ||
+ | ; random : Optional. Set to <code>yes</code> if the NPC's appearance changes randomly and in cases where the NPC might use models varied with each race. Commonly used for many generic NPCs and merchants. Defaults to no. | ||
+ | ; location : Required. The area(s) or zone(s) the NPC can be found. Use a semi-colon separated list of locations. | ||
+ | ; coordinates / path / bounds : Optional. The X and Y coordinates to the NPCs location. Displays and interactive map with a marker of the NPC's location. EG <code>[12345,31321]</code>. See {{tl|Infobox map}} for more details. | ||
+ | ; localtiles : Optional. If set, uses local wiki tiles instead of the API raster tiles. See [[:Category:Map raster tiles]]. | ||
+ | ; race : Required. The race of the NPC. Race here should be capitalized. If this NPC could be multiple races, either list them all, comma-separated, or use "Various" instead of a huge list. For objects that are coded as NPCs in order to perform certain functions, use "object". | ||
+ | ; organization : Optional. The organization/affiliation the NPC belongs to. | ||
+ | ; level : Optional. The level or levels of the NPC. | ||
+ | ; rank : Optional. Should be one of the following: veteran, elite, champion, legendary or epic. Defaults to normal. | ||
+ | ; profession : Optional. The profession of the NPC. Use a comma-separated list if more than one profession is possible. | ||
+ | ; service : The [[service]] or services provided by the NPC. Use a comma-separated list of services. Options: | ||
+ | :: armorsmith | ||
+ | :: reinforce armor | ||
+ | :: bandit crest collector | ||
+ | :: collections instructor | ||
+ | :: dungeon information | ||
+ | :: dungeon merchant | ||
+ | :: fishmonger | ||
+ | :: fishing supplies | ||
+ | :: gift | ||
+ | :: guild commendation trader | ||
+ | :: guild promoter | ||
+ | :: guild armorer | ||
+ | :: guild weaponsmith | ||
+ | :: weaponsmith | ||
+ | :: karma | ||
+ | :: ley line crystal merchant | ||
+ | :: cultural armorsmith | ||
+ | :: cultural weaponsmith | ||
+ | :: master armorsmith | ||
+ | :: master artificer | ||
+ | :: master chef | ||
+ | :: master huntsman | ||
+ | :: master jeweler | ||
+ | :: master leatherworker | ||
+ | :: master scribe | ||
+ | :: master tailor | ||
+ | :: master weaponsmith | ||
+ | :: merchant | ||
+ | :: race organizer | ||
+ | :: repairs | ||
+ | :: renown heart | ||
+ | :: repeatable heart | ||
+ | :: skill challenge | ||
+ | :: hero challenge | ||
+ | :: trading post | ||
+ | :: transport facilitator | ||
+ | :: living world | ||
+ | :: living story | ||
+ | :: living story scout | ||
+ | :: living story waypoint | ||
+ | :: living story collector | ||
+ | :: living world merchant | ||
+ | :: geode merchant | ||
+ | :: belcher's bluff | ||
+ | :: activity | ||
+ | :: mystic forge attendant | ||
+ | :: guild claiming | ||
+ | :: guild | ||
+ | :: proprietor | ||
+ | :: mastery insight (path of firs) | ||
+ | :: mastery insight (end of dragons) | ||
+ | :: dragon arena | ||
+ | ; goal : Optional. Specific hero challenge events or Renown Heart tasks this NPC is affiliated with. If entering multiple goals, put each new goal on a new line. | ||
+ | ; gallery1 ... gallery5 : Optional. Images related to the NPC. The first image defaults to <code><nowiki>{{PAGENAME}}</nowiki> location.jpg</code>. | ||
+ | ; gallery1-text ... gallery5-text : Optional. Image descriptions. | ||
+ | ; categorize : Optional. "y" or "n" to turn on/off categorization. Default is on for main namespace articles and off for others. If using "status", don't set this parameter. | ||
+ | ; status : Optional. Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", and "unimplemented". | ||
+ | ; status notes : Optional. Allows provision of additional reason for the given status. | ||
+ | ; status date : Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format). | ||
+ | ; requires : Optional. The expansion or living world season required to access the content. Displays a notice of the required release. See {{tl|infobox requires}} for options. | ||
+ | |||
+ | === Example === | ||
<pre> | <pre> | ||
{{NPC infobox | {{NPC infobox | ||
− | |||
− | |||
| image = Caithe 02 concept art.jpg | | image = Caithe 02 concept art.jpg | ||
+ | | location = Maguuma Jungle; The Grove; Divinity's Reach | ||
| race = Sylvari | | race = Sylvari | ||
| organization = Destiny's Edge | | organization = Destiny's Edge | ||
Строка 301: | Строка 546: | ||
| rank = Legendary | | rank = Legendary | ||
| profession = Thief | | profession = Thief | ||
− | | service = | + | | service = Guild Armorer |
− | | | + | | gallery1 = User Lucian Shadowborn map.jpg |
− | + | | gallery1-text = Location in Magumma Jungle | |
− | | | + | | gallery2 = User Lucian Shadowborn map.jpg |
− | | | + | | gallery2-text = Location in The Grove |
− | | | + | | gallery3 = User Lucian Shadowborn map.jpg |
− | | | + | | gallery3-text = Location in Divinity's Reach |
− | | | ||
}} | }} | ||
</pre> | </pre> | ||
Строка 314: | Строка 558: | ||
{{NPC infobox | {{NPC infobox | ||
| name = Caithe | | name = Caithe | ||
− | | | + | | location = Maguuma Jungle; The Grove; Divinity's Reach |
| image = Caithe 02 concept art.jpg | | image = Caithe 02 concept art.jpg | ||
+ | | random = yes | ||
| race = Sylvari | | race = Sylvari | ||
| organization = Destiny's Edge | | organization = Destiny's Edge | ||
| level = 80 | | level = 80 | ||
− | | rank = Legendary | + | | rank = Elite, Legendary |
| profession = Thief | | profession = Thief | ||
− | | service = | + | | service = Guild Armorer |
− | | | + | | gallery1 = User Lucian Shadowborn map.jpg |
− | + | | gallery1-text = Location in Magumma Jungle | |
− | | | + | | gallery2 = User Lucian Shadowborn map.jpg |
− | | | + | | gallery2-text = Location in The Grove |
− | | | + | | gallery3 = User Lucian Shadowborn map.jpg |
− | | | + | | gallery3-text = Location in Divinity's Reach |
− | | | ||
}} | }} | ||
− | |||
{{clear}} | {{clear}} | ||
Версия 08:42, 2 октября 2022
Содержание
Usage
{{NPC infobox | name = | image = | random = | location = | coordinates = | race = | organization = | level = | rank = | profession = | service = | goal = | gallery1...gallery5 = | gallery1-text...gallery5-text = | requires = | status = | status notes = }}
Parameters
- name
- Optional. Only include if the name of the NPC differs from the article name. Defaults the name of the article:
{{PAGENAME}}
. - icon
- Optional. Only include if the NPC has a unique icon. If no value is set the icon defaults to showing an icon chosen by the service parameter. If that too is unspecified, the icon is hidden.
- image
- Optional. Defaults to the page name:
{{PAGENAME}}.jpg
. Set tono
to disable the image. Note that the NPC screenshot should not include any text. The Shared Model Project might be used for any already uploaded model. - random
- Optional. Set to
yes
if the NPC's appearance changes randomly and in cases where the NPC might use models varied with each race. Commonly used for many generic NPCs and merchants. Defaults to no. - location
- Required. The area(s) or zone(s) the NPC can be found. Use a semi-colon separated list of locations.
- coordinates / path / bounds
- Optional. The X and Y coordinates to the NPCs location. Displays and interactive map with a marker of the NPC's location. EG
[12345,31321]
. See {{Infobox map}} for more details. - localtiles
- Optional. If set, uses local wiki tiles instead of the API raster tiles. See Category:Map raster tiles.
- race
- Required. The race of the NPC. Race here should be capitalized. If this NPC could be multiple races, either list them all, comma-separated, or use "Various" instead of a huge list. For objects that are coded as NPCs in order to perform certain functions, use "object".
- organization
- Optional. The organization/affiliation the NPC belongs to.
- level
- Optional. The level or levels of the NPC.
- rank
- Optional. Should be one of the following: veteran, elite, champion, legendary or epic. Defaults to normal.
- profession
- Optional. The profession of the NPC. Use a comma-separated list if more than one profession is possible.
- service
- The service or services provided by the NPC. Use a comma-separated list of services. Options:
- armorsmith
- reinforce armor
- bandit crest collector
- collections instructor
- dungeon information
- dungeon merchant
- fishmonger
- fishing supplies
- gift
- guild commendation trader
- guild promoter
- guild armorer
- guild weaponsmith
- weaponsmith
- karma
- ley line crystal merchant
- cultural armorsmith
- cultural weaponsmith
- master armorsmith
- master artificer
- master chef
- master huntsman
- master jeweler
- master leatherworker
- master scribe
- master tailor
- master weaponsmith
- merchant
- race organizer
- repairs
- renown heart
- repeatable heart
- skill challenge
- hero challenge
- trading post
- transport facilitator
- living world
- living story
- living story scout
- living story waypoint
- living story collector
- living world merchant
- geode merchant
- belcher's bluff
- activity
- mystic forge attendant
- guild claiming
- guild
- proprietor
- mastery insight (path of firs)
- mastery insight (end of dragons)
- dragon arena
- goal
- Optional. Specific hero challenge events or Renown Heart tasks this NPC is affiliated with. If entering multiple goals, put each new goal on a new line.
- gallery1 ... gallery5
- Optional. Images related to the NPC. The first image defaults to
{{PAGENAME}} location.jpg
. - gallery1-text ... gallery5-text
- Optional. Image descriptions.
- categorize
- Optional. "y" or "n" to turn on/off categorization. Default is on for main namespace articles and off for others. If using "status", don't set this parameter.
- status
- Optional. Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", and "unimplemented".
- status notes
- Optional. Allows provision of additional reason for the given status.
- status date
- Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format).
- requires
- Optional. The expansion or living world season required to access the content. Displays a notice of the required release. See {{infobox requires}} for options.
Example
{{NPC infobox | image = Caithe 02 concept art.jpg | location = Maguuma Jungle; The Grove; Divinity's Reach | race = Sylvari | organization = Destiny's Edge | level = 80 | rank = Legendary | profession = Thief | service = Guild Armorer | gallery1 = User Lucian Shadowborn map.jpg | gallery1-text = Location in Magumma Jungle | gallery2 = User Lucian Shadowborn map.jpg | gallery2-text = Location in The Grove | gallery3 = User Lucian Shadowborn map.jpg | gallery3-text = Location in Divinity's Reach }}
Caithe
- Раса
- Sylvari
- Профессия
- Thief
- Уровень
- 80
- Ранг
- Elite
Legendary - Локация
- Maguuma Jungle; The Grove; Divinity's Reach
- Организация
- Destiny's Edge
- Услуги
- Guild Armorer
Изображения |
Location in Magumma Jungle Location in The Grove Location in Divinity's Reach |