Content added Content deleted
No edit summary |
Reception123 (talk | contribs) m (Reception123 moved page User:Hilux/Sandbox/Template:Infobox npc to User:Walpo/Sandbox/Template:Infobox npc without leaving a redirect: Automatically moved page while renaming the user "Hilux" to "Walpo") |
||
(27 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
{| class="infobox floatright" |
{| class="infobox floatright" |
||
|- |
|- |
||
! colspan="3 |
! colspan="3" class="infobox-image" | [[Image:Veloren_{{SUBPAGENAME}}.png|class=infobox-image|290px|center|link=]] |
||
|- |
|- |
||
! colspan="3 |
! colspan="3" class="infobox-title" style="font-size: 150%" | {{SUBPAGENAME}} |
||
|- |
|- |
||
! colspan="3 |
! colspan="3" class="infobox-title" style="font-size: 90%" | Statistics |
||
|- |
|- |
||
{{#if: {{{type|}}} |
|||
{{#if:{{{type|}}} |
|||
| |
| |
||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} [[NPCs|Type]]: |
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} [[NPCs|Type]]: |
||
Line 15: | Line 14: | ||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if: {{{location|}}} |
{{#if: {{{location|}}} |
||
| |
| |
||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Location(s): |
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Location(s): |
||
{{!}} colspan="2" class="infobox-text" {{!}} {{{location|}}} |
{{!}} colspan="2" class="infobox-text" {{!}} {{ucfirst: {{lc: {{{location|}}} }} }} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#switch: {{lc: {{{aggressive|}}} }} |
|||
| no |
|||
{{#if: {{{aggressive|}}} |
|||
| 0 = {{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Hostile: |
|||
{{!}} colspan="2" class="infobox-text" {{!}} No |
|||
{{!}}- |
|||
| yes |
|||
| 1 = {{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Hostile: |
|||
{{!}} colspan="2" class="infobox-text" {{!}} Yes |
|||
{{!}}- |
|||
}} |
|||
{{#if: {{{healthPoints|}}} |
|||
| |
| |
||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} |
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} HP: |
||
{{!}} colspan="2" class="infobox-text" {{!}} {{{ |
{{!}} colspan="2" class="infobox-text" {{!}} {{formatnum: {{{healthPoints|}}} }} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if: {{{damage|}}} |
{{#if: {{{damage|}}} |
||
| |
| |
||
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Damage: |
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Damage: |
||
{{!}} colspan="2" class="infobox-text" {{!}} {{{damage|}}} |
{{!}} colspan="2" class="infobox-text" {{!}} {{formatnum: {{{damage|}}} }} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
|- |
|||
| colspan="3" class="infobox-title" style="font-size: 90%" | Technical Information |
|||
{{#if: {{{includedrops|}}} |
|||
|- |
|||
{{#if: {{{vox|}}} |
|||
| |
| |
||
{{!}} class="infobox-texttitle" {{!}} Voxel Model |
|||
{{!}} colspan="2" class="infobox-text" {{!}} [{{{vox|}}} Vox Model] |
|||
{{!}}- |
{{!}}- |
||
}} |
|||
{{!}} colspan="2" class="infobox-title" {{!}} Drops |
|||
{{#if: {{{config|}}} |
|||
{{!}} class="infobox-title" {{!}} % |
|||
| |
|||
{{!}} class="infobox-texttitle" {{!}} Entity Config |
|||
{{!}} colspan="2" class="infobox-text" {{!}} [{{{config|}}} Config] |
|||
{{!}}- |
{{!}}- |
||
{{!}} colspan="3" style="border-top: 2px solid #181b1f;" {{!}} |
|||
{{!}}- |
|||
{{!}} colspan="2" class="infobox-text" style="text-align: center;" |
|||
{{#if: {{{dropname1|}}} |
|||
| |
|||
{{!}} [[Image:Veloren_{{{dropname1|}}}|25px|link=]] [[{{{dropname1|}}}]] |
|||
}} |
|||
{{!}} class="infobox-text" style="width: 20%; text-align: center;" |
|||
{{#if: {{{chance1|}}} |
|||
| |
|||
{{!}} {{{chance1|}}} % |
|||
{{!}}- |
|||
{{!}} colspan="3" style="border-top: 2px solid #181b1f;" |
|||
}} |
|||
{{!}}- |
|||
{{!}} colspan="2" class="infobox-text" style="text-align: center" |
|||
{{#if: {{{dropname2|}}} |
|||
| |
|||
[[Image:Veloren_{{{dropname2|}}}|25px|link=]] [[{{{dropname2|}}}]] |
|||
}} |
|||
{{!}} class="infobox-text" style="width: 20%; text-align: center;" |
|||
{{#if: {{{chance2|}}} |
|||
| |
|||
{{!}} {{{chance2|}}} % |
|||
{{!}}- |
|||
{{!}} colspan="3" style="border-top: 2px solid #181b1f;" |
|||
}} |
|||
{{!}}- |
|||
{{!}} colspan="2" class="infobox-text" style="text-align: center" |
|||
{{#if: {{{dropname3|}}} |
|||
| |
|||
{{!}} [[Image:Veloren_{{{dropname3|}}}|25px|link=]] [[{{{dropname3|}}}]]}} |
|||
{{!}} class="infobox-text" style="width: 20%; text-align: center;" |
|||
{{#if: {{{chance3|}}} |
|||
| |
|||
{{{chance3|}}}% |
|||
{{!}}- |
|||
{{!}} colspan="3" style="border-top: 2px solid #181b1f;" |
|||
}} |
|||
{{!}}- |
|||
{{!}}colspan="2" class="infobox-text" style="text-align: center" |
|||
{{#if: {{{dropname4|}}} |
|||
| |
|||
{{!}} [[Image:Veloren_{{{dropname4|}}}|25px|link=]] [[{{{dropname4|}}}]] |
|||
}} |
|||
{{!}}class="infobox-text" style="width: 20%; text-align: center;" |
|||
{{#if: {{{chance4|}}} |
|||
| |
|||
{{!}} {{{chance4|}}}% |
|||
{{!}}- |
|||
{{!}} colspan="3" style="border-top: 2px solid #181b1f;" |
|||
}} |
|||
{{!}}- |
|||
{{!}} colspan="2" class="infobox-text" style="text-align: center" |
|||
{{#if: {{{dropname5|}}} |
|||
| |
|||
{{!}} [[Image:Veloren_{{{dropname5|}}}|25px|link=]] [[{{{dropname5|}}}]] |
|||
}} |
|||
{{!}} class="infobox-text" style="width: 20%; text-align: center;" |
|||
{{#if: {{{chance5|}}} |
|||
| |
|||
{{!}} {{{chance5|}}}% |
|||
{{!}}- |
|||
{{!}} colspan="3" style="border-top: 2px solid #181b1f;" |
|||
}} |
|||
{{!}}- |
|||
{{!}} colspan="2" class="infobox-text" style="text-align: center" |
|||
{{#if: {{{dropname6|}}} |
|||
| |
|||
{{!}} [[Image:Veloren_{{{dropname6|}}}|25px|link=]] [[{{{dropname6|}}}]] |
|||
}} |
|||
{{!}} class="infobox-text" style="width: 20%; text-align: center;" |
|||
{{#if: {{{chance6|}}} |
|||
| |
|||
{{!}} {{{chance6|}}}% |
|||
{{!}}- |
|||
{{!}} colspan="3" style="border-top: 2px solid #181b1f;" |
|||
}} |
|||
{{!}}- |
|||
{{!}} colspan="2" class="infobox-text" style="text-align: center" |
|||
{{#if: {{{dropname7|}}} |
|||
| |
|||
[[Image:Veloren_{{{dropname7|}}}|25px|link=]] [[{{{dropname7|}}}]] |
|||
}} |
|||
{{!}} class="infobox-text" style="width: 20%; text-align: center;" |
|||
{{#if: {{{chance7|}}} |
|||
| |
|||
{{!}} {{{chance7|}}}% |
|||
{{!}}- |
|||
{{!}} colspan="3" style="border-top: 2px solid #181b1f;" |
|||
}} |
|||
{{!}}- |
|||
{{!}} colspan="2" class="infobox-text" style="text-align: center" |
|||
{{#if: {{{dropname8|}}} |
|||
| |
|||
[[Image:Veloren_{{{dropname8|}}}|25px|link=]] [[{{{dropname8|}}}]] |
|||
}} |
|||
{{!}} class="infobox-text" style="width: 20%; text-align: center;" |
|||
{{#if: {{{chance8|}}} | {{{chance8|}}}% |
|||
{{!}}- |
|||
}} |
|||
{{!}} colspan="3" style="border-top: 2px solid #181b1f"; {{!}} |
|||
}} |
|||
|- |
|||
! colspan="3" class="infobox-title" | Technical Information |
|||
|- |
|||
{{#if:{{{vox|}}} |
|||
| |
|||
{{!}}- |
|||
{{!}} class="infobox-texttitle" {{!}} Voxel Model |
|||
{{!}} colspan="2" class="infobox-text" style="vertical-align: middle;" {{!}} {{{vox|}}} |
|||
}} |
|||
{{#if:{{{config|}}} |
|||
| |
|||
{{!}}- |
|||
{{!}} class="infobox-texttitle" {{!}} Entity Config |
|||
{{!}} colspan="2" class="infobox-text" {{!}}{{{config|}}} |
|||
}} |
}} |
||
|} |
|} |
||
</onlyinclude> |
</onlyinclude> |
||
<includeonly> |
|||
[[Category: NPCs]] |
|||
</includeonly> |
|||
<noinclude> |
<noinclude> |
||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
"format": "block", |
|||
"description": "Displays a floating infobox with information about an NPC entity.", |
|||
"params": { |
"params": { |
||
"type": { |
"type": { |
||
"label": "Type |
"label": "Type", |
||
"description": " |
"description": "The type of entity the NPC is.", |
||
" |
"type": "string", |
||
"example": "wildlife", |
|||
"suggested": true, |
|||
"suggestedvalues": [ |
|||
"boss", |
|||
"mini-boss", |
|||
"minion", |
|||
"outlaw", |
|||
"tribe", |
|||
"wildlife" |
|||
] |
|||
}, |
}, |
||
"location": { |
"location": { |
||
"label": "Location |
"label": "Location", |
||
"description": "The biome where the NPC is located.", |
|||
"type": "string", |
|||
"example": "Jungle", |
"example": "Jungle", |
||
"suggested": true, |
"suggested": true, |
||
"suggestedvalues": [ |
|||
"description": "Follow the biome page to find their location" |
|||
"forest", |
|||
"jungle", |
|||
"taiga", |
|||
"tundra", |
|||
"artic", |
|||
"desert", |
|||
"savannah", |
|||
"world" |
|||
] |
|||
}, |
}, |
||
"aggressive": { |
"aggressive": { |
||
"label": " |
"label": "Hostility", |
||
"description": "Does the NPC attack the player on sight?", |
|||
"type": "string", |
|||
" |
"type": "boolean", |
||
"suggested": true, |
|||
"autovalue": "0" |
|||
}, |
}, |
||
"damage": { |
"damage": { |
||
"label": "Damage", |
"label": "Damage", |
||
"description": "The amount of damage the NPC's attacks deal.", |
|||
"type": "number", |
|||
"example": "10", |
"example": "10", |
||
"deprecated": "Please, document each of the NPC's attacks in the wiki page and include their respective damage values" |
|||
"type": "number", |
|||
"suggested": true |
|||
}, |
|||
"includedrops": {}, |
|||
"dropname1": { |
|||
"label": "Drop name 1", |
|||
"example": "Raw Meat Slab", |
|||
"type": "string" |
|||
}, |
|||
"chance1": { |
|||
"label": "Drop chance 1", |
|||
"example": "1", |
|||
"type": "number" |
|||
}, |
|||
"dropname2": { |
|||
"label": "Drop name 2", |
|||
"example": "Long Tusk", |
|||
"type": "string" |
|||
}, |
|||
"chance2": { |
|||
"label": "Drop chance 2", |
|||
"example": "2", |
|||
"type": "number" |
|||
}, |
|||
"dropname3": { |
|||
"label": "Drop name 3", |
|||
"example": "Dwarven Cheese", |
|||
"type": "number" |
|||
}, |
|||
"chance3": { |
|||
"label": "Drop chance 3", |
|||
"example": "3", |
|||
"type": "number" |
|||
}, |
|||
"dropname4": { |
|||
"label": "Drop name 4", |
|||
"example": "Soft Fur" |
|||
}, |
|||
"chance4": { |
|||
"label": "Drop chance 4", |
|||
"example": "4", |
|||
"type": "number" |
|||
}, |
|||
"dropname5": { |
|||
"label": "Drop name 5" |
|||
}, |
|||
"chance5": { |
|||
"label": "Drop chance 5", |
|||
"example": "5", |
|||
"type": "number" |
|||
}, |
|||
"dropname6": { |
|||
"label": "Drop name 6", |
|||
"example": "Silver Ingot" |
|||
}, |
|||
"chance6": { |
|||
"label": "Drop chance 6", |
|||
"example": "6", |
|||
"type": "number" |
|||
}, |
|||
"dropname7": { |
|||
"label": "Drop name 7", |
|||
"example": "Plant Fiber" |
|||
}, |
|||
"chance7": { |
|||
"label": "Drop chance 7", |
|||
"example": "7", |
|||
"type": "number" |
|||
}, |
|||
"dropname8": { |
|||
"label": "Drop name 8", |
|||
"example": "Raw Bird Meat" |
|||
}, |
|||
"chance8": { |
|||
"label": "Drop chance 8", |
|||
"example": "8", |
|||
"type": "number" |
|||
}, |
}, |
||
"vox": { |
"vox": { |
||
" |
"label": "Vox model", |
||
"description": "A link to the directory in the game's source repository with the NPC's entity vox files.", |
|||
"suggested": true |
|||
"type": "url" |
|||
}, |
}, |
||
"config": { |
"config": { |
||
" |
"label": "NPC configuration", |
||
"description": "A link to this NPC entity's configuration file in the game's source repository.", |
|||
"suggested": true |
|||
"type": "url" |
|||
}, |
|||
"healthPoints": { |
|||
"label": "Health Points", |
|||
"description": "The amount of HP the NPC has.", |
|||
"type": "number", |
|||
"example": "1000" |
|||
} |
} |
||
}, |
}, |
||
"format": "block", |
|||
"paramOrder": [ |
"paramOrder": [ |
||
"type", |
"type", |
||
"location", |
"location", |
||
"aggressive", |
"aggressive", |
||
"healthPoints", |
|||
"damage", |
"damage", |
||
"includedrops", |
|||
"dropname1", |
|||
"chance1", |
|||
"dropname2", |
|||
"chance2", |
|||
"dropname3", |
|||
"chance3", |
|||
"dropname4", |
|||
"chance4", |
|||
"dropname5", |
|||
"chance5", |
|||
"dropname6", |
|||
"chance6", |
|||
"dropname7", |
|||
"chance7", |
|||
"dropname8", |
|||
"chance8", |
|||
"vox", |
"vox", |
||
"config" |
"config" |
||
Line 304: | Line 144: | ||
} |
} |
||
</templatedata> |
</templatedata> |
||
[[Category:Templates]] |
|||
[[Category:Formatting Templates]] |
[[Category:Formatting Templates]] |
||
[[Category:Infoboxes]] |
[[Category:Infoboxes]] |
Latest revision as of 19:15, 13 February 2023
Template:Infobox npc | ||
---|---|---|
Statistics | ||
Technical Information |
Displays a floating infobox with information about an NPC entity.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | type | The type of entity the NPC is.
| String | suggested |
Location | location | The biome where the NPC is located.
| String | suggested |
Hostility | aggressive | Does the NPC attack the player on sight?
| Boolean | suggested |
Health Points | healthPoints | The amount of HP the NPC has.
| Number | optional |
Damage | damage | The amount of damage the NPC's attacks deal.
| Number | deprecated |
Vox model | vox | A link to the directory in the game's source repository with the NPC's entity vox files. | URL | optional |
NPC configuration | config | A link to this NPC entity's configuration file in the game's source repository. | URL | optional |