Template:NPC infobox: differenze tra le versioni

Da Guild Wars - Wiki italiano non ufficiale.
Jump to navigation Jump to search
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 65: Riga 65:
               | Gaki = [[Categoria:Gaki]]
               | Gaki = [[Categoria:Gaki]]
               | Gargolla = [[Categoria:Gargolla]]
               | Gargolla = [[Categoria:Gargolla]]
              | Grentch = [[Category:Grentches]]
               | Fantasma = [[Categoria:Fantasmi]]
               | Fantasma = [[Categoria:Fantasmi]]
               | Idra = [[Categoria:Idra]]
               | Idra = [[Categoria:Idra]]
Riga 84: Riga 83:
           | [[Categoria:Boss {{{type2|{{{species2}}}}}}]]
           | [[Categoria:Boss {{{type2|{{{species2}}}}}}]]
           | {{ #switch: {{{type2|{{{species2}}}}}}
           | {{ #switch: {{{type2|{{{species2}}}}}}
               | Appestato = [[Categoria:Appestati]]
               | Asura = [[Categoria:Asura]]
              | Asura = [[Category:Asura]]
               | Animale Incantablie = [[Categoria:Animali Incantabili]]
               | Charr = [[Category:Charr]]
               | Armatura Incantata = [[Categoria:Armatura Incantate]]
               | Dredge = [[Category:Dredge]]
               | Arma Incantata = [[Categoria:Armi Incantate]]
               | Dwarf = [[Category:Dwarves]]
               | Gaki = [[Categoria:Gaki]]
              | Enchanted = [[Category:Enchanted]]
               | Gargolla = [[Categoria:Gargolla]]
              | Fish = [[Category:Fish]]
               | Fantasma = [[Categoria:Fantasmi]]
              | Forgotten = [[Category:Forgotten]]
               | Idra = [[Categoria:Idra]]
               | Gaki = [[Category:Gaki]]
               | Kappa = [[Categoria:Kappa]]
               | Grawl = [[Category:Grawl]]
               | Naga = [[Categoria:Naga]]
               | Grentch = [[Category:Grentches]]
               | Ogre = [[Categoria:Ogre]]
               | Harpy = [[Category:Harpies]]
               | Tengu = [[Categoria:Tengu]]
               | Kappa = [[Category:Kappa]]
               | Sottobosco = [[Categoria:Sottobosco]]
              | Krait = [[Category:Krait]]
               | Verme = [[Categoria:Vermi]]
              | Kirin = [[Category:Kirin]]
               | Zombi = [[Categoria:Zombi]]
              | Incubus = [[Category:Incubi]]
              | Jelly = [[Category:Jellies]]
              | Mummy = [[Category:Mummies]]
              | Mursaat = [[Category:Mursaat]]
               | Naga = [[Category:Naga]]
               | Norn = [[Category:Norn]]
               | Shiro'ken = [[Category:Shiro'ken]]
               | Skale = [[Category:Skale]]
               | Skelk = [[Category:Skelk]]
               | Snowman = [[Category:Snowmen]]
              | Tengu = [[Category:Tengu]]
              | Vermin = [[Category:Vermin]]
               | #default = [[Categoria:{{plural|{{{type2|{{{species2}}}}}}}}]]
               | #default = [[Categoria:{{plural|{{{type2|{{{species2}}}}}}}}]]
             }}
             }}
Riga 119: Riga 106:
           | [[Category:{{{type3|{{{species3}}}}}} bosses]]
           | [[Category:{{{type3|{{{species3}}}}}} bosses]]
           | {{ #switch: {{{type3|{{{species3}}}}}}
           | {{ #switch: {{{type3|{{{species3}}}}}}
              | Afflicted = [[Category:Afflicted]]
               | Asura = [[Categoria:Asura]]
               | Asura = [[Category:Asura]]
               | Animale Incantablie = [[Categoria:Animali Incantabili]]
               | Charr = [[Category:Charr]]
               | Armatura Incantata = [[Categoria:Armatura Incantate]]
               | Dredge = [[Category:Dredge]]
               | Arma Incantata = [[Categoria:Armi Incantate]]
               | Dwarf = [[Category:Dwarves]]
               | Gaki = [[Categoria:Gaki]]
              | Enchanted = [[Category:Enchanted]]
               | Gargolla = [[Categoria:Gargolla]]
              | Fish = [[Category:Fish]]
               | Fantasma = [[Categoria:Fantasmi]]
              | Forgotten = [[Category:Forgotten]]
               | Idra = [[Categoria:Idra]]
               | Gaki = [[Category:Gaki]]
               | Kappa = [[Categoria:Kappa]]
               | Grawl = [[Category:Grawl]]
               | Naga = [[Categoria:Naga]]
               | Grentch = [[Category:Grentches]]
               | Ogre = [[Categoria:Ogre]]
               | Harpy = [[Category:Harpies]]
               | Tengu = [[Categoria:Tengu]]
               | Kappa = [[Category:Kappa]]
               | Sottobosco = [[Categoria:Sottobosco]]
              | Krait = [[Category:Krait]]
               | Verme = [[Categoria:Vermi]]
              | Kirin = [[Category:Kirin]]
               | Zombi = [[Categoria:Zombi]]
              | Incubus = [[Category:Incubi]]
              | Jelly = [[Category:Jellies]]
              | Mummy = [[Category:Mummies]]
              | Mursaat = [[Category:Mursaat]]
               | Naga = [[Category:Naga]]
               | Norn = [[Category:Norn]]
               | Shiro'ken = [[Category:Shiro'ken]]
               | Skale = [[Category:Skale]]
               | Skelk = [[Category:Skelk]]
               | Snowman = [[Category:Snowmen]]
              | Tengu = [[Category:Tengu]]
              | Umano = [[Categoria:Umani]]
              | Vermin = [[Category:Vermin]]
               | #default = [[Categoria:{{plural|{{{type3|{{{species3}}}}}}}}]]
               | #default = [[Categoria:{{plural|{{{type3|{{{species3}}}}}}}}]]
             }}
             }}
Riga 153: Riga 127:
     {{ #if: {{{affiliation|}}}
     {{ #if: {{{affiliation|}}}
       | {{ #switch: {{{affiliation}}}
       | {{ #switch: {{{affiliation}}}
           | Presearing wildlife = [[Category:Ascalon (pre-Searing) wildlife]]
           | Fauna pre-Devastazione = [[Categoria:Fauna di Ascalon (pre-Devastazione)]]
           | Canthan New Year | Dragon Festival | Halloween | Wintersday = <!-- No auto categorization for these npc types -->
           | Nuovo Anno Canthiano | Dragon Festival | Halloween | Invernodì = <!-- No auto categorization for these npc types -->
           | #default = [[Category:{{{affiliation}}}]]
           | #default = [[Categoria:{{{affiliation}}}]]
         }}
         }}
       | [[Category:NPCs who need affiliation set]]
       | [[Categoria:PNG che necessitano impostazione affiliazione]]
     }}
     }}
     {{ #if: {{{affiliation2|}}}
     {{ #if: {{{affiliation2|}}}
       | {{ #switch: {{{affiliation2}}}
       | {{ #switch: {{{affiliation2}}}
           | Presearing wildlife = [[Category:Ascalon (pre-Searing) wildlife]]
           | Fauna pre-Devastazione = [[Categoria:Fauna di Ascalon (pre-Devastazione)]]
           | #default = [[Category:{{{affiliation2}}}]]
           | #default = [[Categoria:{{{affiliation2}}}]]
         }}
         }}
     }}
     }}
     {{ #if: {{{affiliation3|}}}
     {{ #if: {{{affiliation3|}}}
       | [[Category:{{{affiliation3}}}]]
       | [[Categoria:{{{affiliation3}}}]]
     }}
     }}
     {{ #if: {{{service|}}}
     {{ #if: {{{service|}}}
       | {{#switch: {{lc:{{{service}}}}}
       | {{#switch: {{lc:{{{service}}}}}
         | henchman
         | seguace
         | polymock registration = <!-- No auto categorization for these npc types -->
         | iscrizione al polymock = <!-- No auto categorization for these npc types -->
         | polymock opponent = [[Category:Polymock opponents]]
         | avversario di polymock = [[Categoria:Avversari di Polymock]]
         | polymock judge = [[Category:Polymock judges]]
         | giudice di polymock = [[Categoria:Giudici di Polymock]]
         | festival hat maker = {{#ifeq:{{{campaign|+}}}|Core||[[Category:{{{campaign|Core}}} festival hat makers]]}}<!-- Keep guild hall npc out of auto-cat -->
         | artigiano cappelli = {{#ifeq:{{{campaign|+}}}|Base||[[Categoria:Artigiani cappelli ({{{campaign|Base}}})]]}}<!-- Keep guild hall npc out of auto-cat -->
         | guild emblemer = [[Category:{{{campaign|Core}}} guild emblemers]]
         | fabbricante degli emblemi = [[Categoria:Fabbricanti degli emblemi ({{{campaign|Base}}})]]
         | guild registrar = [[Category:{{{campaign|Core}}} guild registrars]]
         | archivista delle gilde = [[Categoria:Archivisti delle Gilde ({{{campaign|Base}}})]]
         | stylist = [[Category:{{{campaign|Core}}} service NPCs]]
         | stilista = [[Categoria:PNG servizi ({{{campaign|Base}}})]]
         | guild hall services = [[Category:{{{campaign|Core}}} service NPCs]]
         | servizi sede della gilda = [[Categoria:PNG servizi ({{{campaign|Base}}})]]
         | [[Category:{{{campaign|Core}}} {{#switch:{{lc:{{{service}}}}}|hero = heroes|{{lc: {{{service}}}s}}}}]]  
         | [[Categoria:{{plural|{{{service}}}}} ({{{campaign|Base}}})]]  
           {{ #if: {{{campaign2|}}}
           {{ #if: {{{campaign2|}}}
             | [[Category:{{{campaign2}}} {{#switch:{{lc:{{{service}}}}}|hero = heroes|{{lc: {{{service}}}s}}}}]]  
             | [[Categoria:{{plural|{{{service}}}}} ({{{campaign2}}})]]
             {{ #if: {{{campaign3|}}}
             {{ #if: {{{campaign3|}}}
               | [[Category:{{{campaign3}}} {{#switch:{{lc:{{{service}}}}}|hero = heroes|{{lc: {{{service}}}s}}}}]]  
               | [[Categoria:{{plural|{{{service}}}}} ({{{campaign3}}})]]  
               {{ #if: {{{campaign4|}}}
               {{ #if: {{{campaign4|}}}
                 | [[Category:{{{campaign4}}} {{#switch:{{lc:{{{service}}}}}|hero = heroes|{{lc: {{{service}}}s}}}}]]
                 | [[Categoria:{{plural|{{{service}}}}} ({{{campaign4}}})]]
                 {{ #if: {{{campaign5|}}}  
                 {{ #if: {{{campaign5|}}}  
                   | [[Category:{{{campaign5}}} {{#switch:{{lc:{{{service}}}}}|hero = heroes|{{lc: {{{service}}}s}}}}]]
                   | [[Categoria:{{plural|{{{service}}}}} ({{{campaign5}}})]]
                 }}
                 }}
               }}
               }}
Riga 195: Riga 169:
     }}
     }}
     {{ #if: {{{service2|}}}
     {{ #if: {{{service2|}}}
       | [[Category:{{{campaign|Core}}} {{#switch:{{lc:{{{service2}}}}}|hero = heroes|{{lc: {{{service2}}}s}}}}]]  
       | [[Categoria:{{plural|{{{service2}}}}} ({{{campaign|Base}}})]]  
        {{ #if: {{{campaign2|}}}
          {{ #if: {{{campaign2|}}}
          | [[Category:{{{campaign2}}} {{#switch:{{lc:{{{service2}}}}}|hero = heroes|{{lc: {{{service2}}}s}}}}]]  
            | [[Categoria:{{plural|{{{service2}}}}} ({{{campaign2}}})]]
          {{ #if: {{{campaign3|}}}
            {{ #if: {{{campaign3|}}}
            | [[Category:{{{campaign3}}} {{#switch:{{lc:{{{service2}}}}}|hero = heroes|{{lc: {{{service2}}}s}}}}]]  
              | [[Categoria:{{plural|{{{service2}}}}} ({{{campaign3}}})]]  
            {{ #if: {{{campaign4|}}}
              {{ #if: {{{campaign4|}}}
              | [[Category:{{{campaign4}}} {{#switch:{{lc:{{{service2}}}}}|hero = heroes|{{lc: {{{service2}}}s}}}}]]
                | [[Categoria:{{plural|{{{service2}}}}} ({{{campaign4}}})]]
              {{ #if: {{{campaign5|}}}
                {{ #if: {{{campaign5|}}}  
                | [[Category:{{{campaign5}}} {{#switch:{{lc:{{{service2}}}}}||hero = heroes|{{lc: {{{service2}}}s}}}}]]
                  | [[Categoria:{{plural|{{{service2}}}}} ({{{campaign5}}})]]
               }}
               }}
             }}
             }}
Riga 215: Riga 189:
     | true  
     | true  
     | y
     | y
     | yes = [[Category:Passive creatures]]
     | yes = [[Categoria:Creature passive]]
   }}
   }}
   {{#switch: {{lc:{{{hidden|}}} }}
   {{#switch: {{lc:{{{hidden|}}} }}
Riga 223: Riga 197:
     | true  
     | true  
     | y
     | y
     | yes = [[Category:Hidden creatures]]
     | yes = [[Categoria:Creature nascoste]]
   }}
   }}
   {{#switch: {{lc:{{{no flesh|}}} }}
   {{#switch: {{lc:{{{no flesh|}}} }}
Riga 231: Riga 205:
     | true  
     | true  
     | y
     | y
     | yes = [[Category:Fleshless creatures]]
     | yes = [[Categoria:Creature non fatte di cane]]
   }}
   }}
}}}}<noinclude>
}}}}<noinclude>
{{clear}}
{{clear}}
==Syntax==
==Sintassi==
<pre>
<pre>
{{NPC infobox
{{NPC infobox

Versione delle 14:37, 26 lug 2024

NPC infobox
File:NPC infobox.jpg
Affiliazione Non specificata
Tipo Not specified
Livello Not specified
Campagna Core


Sintassi

{{NPC infobox
| name = 
| image = 
| affiliation =
| type = 
| profession = 
| profession2 = 
| profession3 = 
| profession4 = 
| profession5 = 
| profession6 = 
| profession7 = 
| profession8 = 
| service = 
| service2 = 
| level = 
| boss = 
| passive = 
| hidden = 
| no flesh = 
| campaign = 
| campaign2 = 
| campaign3 = 
| campaign4 = 
| campaign5 =
| map1 = 
| map1-text = 
| map2 = 
| map2-text = 
| map3 = 
| map3-text = 
| map4 = 
| map4-text = 
| map5 = 
| map5-text = 
}}

Parameters

name
Optional. Defaults to article name.
image
Optional. Defaults to a .jpg image of the article's name. Default and recommended width is 150 pixels.
profession
Optional and case-insensitive. Acceptable profession values: "w", "r", "mo", "n", "me", "e", "a", "rt", "p", "d". Use this ´for the NPCs primary profession.
affiliation
Required. The general force or group the creature is affiliated with. Equivalent to the internal "army" grouping in game mechanic effects. Examples: White Mantle, Corsair, Undead, etc. Defaults to "Not specified".
type
Required. Base type. Examples: Human, Plant, Zombie, etc. Defaults to "Not specified".
profession2 ... profession8
Applies only if the previous profession# is specified. Use for any other profession the NPC uses skills from.
service
Optional. NPC service type.
service2
Applies on if service is specified. Only if the NPC offers an additional service.
level
Required. The level or levels of this NPC. Defaults to "Not specified". Put hard mode levels in parentheses after the normal mode level.
boss
Optional. If supplied, a "(boss)" tag is added to the species. Omit if not a boss.
passive
Boolean. Optional. Is the NPC Passive? Category only. Can be omited if not true.
hidden
Boolean. Optional. Can the NPC lurk and only show up when the player gets close? Category only. Can be omited if not true.
no flesh
Boolean. Optional. Does the NPC have No Flesh? Category only. Can be omited if not true.
campaign
Optional. The campaign in which this NPC appears. Defaults to "Core".
campaign2, campaign3, campaign 4
Applies only if campaign# is specified. For NPCs appearing in multiple campaigns.
map1, map2, map3, map4, map5
Optional. A map or other image of this NPC. Recommended width is 150 pixels.
map1-text, map2-text, map3-text, map4-text, map5-text
Optional. Caption for the corresponding map# parameter. Defaults to "(Click to enlarge)".

Deprecated parameters

species
Optional. If "type" parameter is not specified, this is used in its stead. This parameter is deprecated; please use or switch to "type" instead of this.

Notes

  • Take note of the image use policy before uploading any NPC image.
  • Only the image, map#, and map#-text parameters require manual wikilinks. All other parameters that should be linked are automatically linked.

Examples

For a Juvenile Bladed Termite, a hostile NPC:

{{NPC infobox
| type = Insect
| profession = w
| level = 2 (22)
| campaign = Prophecies
}}

For Ghostly Hero, an NPC with multiple professions:

{{NPC infobox
| image = [[Image:Ghostly Hero.jpg|150px]]
| affiliation = Undead
| profession = w
| profession2 = r
| level = 20, 24, 28
| campaign = Core
}}

For an enemy boss:

{{NPC infobox
| affiliation = Stone Summit
| type = Dwarf
| profession = n
| level = 28
| boss = y
| campaign = Prophecies
| map1 = [[Image:Villnar Painforge location.jpg|150px]]
| map1-text = Location
}}

For a henchman found in multiple campaigns:

{{NPC infobox
| type = Human
| profession = mo
| service = Henchman
| level = 4..20
| campaign = Prophecies
| campaign2 = Factions
| campaign3 = Nightfall
| map1 = [[Image:Rendered image.jpg|150px]]
| map1-text = Rendered image sourced from somewhere
}}

Typical usage:

{{NPC infobox
| type = NPC base type
| profession = NPC profession shorthand/abbreviation (W, R, Mo etc.)
| level = NPC level, levels, or level range
| campaign = campaign appearance
}}

Typical usage for NPCs with a service to offer:

{{NPC infobox
| affiliation = NPC affiliation
| service = NPC service
| level = NPC level, levels, or level range
| campaign = campaign appearance
| map1 = optional map where NPC can be found
| map1-text = optional map caption
}}

Typical usage for a boss NPC:

{{NPC infobox
| affiliation = NPC affiliation of boss
| type = NPC base creature type of boss
| profession = NPC profession shorthand/abbreviation
| level = NPC level, levels, or level range
| boss = y 
| campaign = campaign appearance
| map1 = optional map where boss can be found
| map1-text = optional map caption
}}