Toggle menu
1.3K
1.7K
694
23.9K
Veloren Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Walpo/Sandbox/Template:Infobox npc: Difference between revisions

From Veloren Wiki
Content added Content deleted
No edit summary
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")
 
(35 intermediate revisions by one other user not shown)
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
{{{!}}class="infobox floatright"
{| class="infobox floatright"
|-
{{!}}+ Test
{{!}}colspan="3" class="infobox-image"{{!}}[[Image:Veloren_{{SUBPAGENAME}}.png|class=infobox-image|290px|center|link=]]
! colspan="3" class="infobox-image" | [[Image:Veloren_{{SUBPAGENAME}}.png|class=infobox-image|290px|center|link=]]
|-
! colspan="3" class="infobox-title" style="font-size: 150%" | {{SUBPAGENAME}}
|-
! colspan="3" class="infobox-title" style="font-size: 90%" | Statistics
|-
{{#if: {{{type|}}}
|
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} [[NPCs|Type]]:
{{!}} colspan="2" class="infobox-text" {{!}} {{ucfirst: {{lc: {{{type|}}} }} }}
{{!}}-
{{!}}-
}}
{{!}}colspan="3" class="infobox-title" style="font-size: 150%"{{!}}{{SUBPAGENAME}}
{{#if: {{{location|}}}
|
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Location(s):
{{!}} colspan="2" class="infobox-text" {{!}} {{ucfirst: {{lc: {{{location|}}} }} }}
{{!}}-
{{!}}-
}}
{{!}}colspan="3" class="infobox-title" style="font-size: 90%;" {{!}}Statistics
{{#switch: {{lc: {{{aggressive|}}} }}
| no
| 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" {{!}} HP:
{{!}} colspan="2" class="infobox-text" {{!}} {{formatnum: {{{healthPoints|}}} }}
{{!}}-
{{!}}-
}}
{{!}}colspan="3" style="height: 10px;" |
{{#if: {{{damage|}}}
|
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Damage:
{{!}} colspan="2" class="infobox-text" {{!}} {{formatnum: {{{damage|}}} }}
{{!}}-
{{!}}-
}}
{{!}}class="infobox-texttitle" style="padding-right: 10px" {{!}}[[NPCs|Type]]
|-
{{!}}colspan="2" class="infobox-text" {{!}}{{{type|}}}
| colspan="3" class="infobox-title" style="font-size: 90%" | Technical Information
|-
{{#if: {{{vox|}}}
|
{{!}} class="infobox-texttitle" {{!}} Voxel Model
{{!}} colspan="2" class="infobox-text" {{!}} [{{{vox|}}} Vox Model]
{{!}}-
{{!}}-
}}
{{!}}class="infobox-texttitle" style="padding-right: 10px" {{!}}Location(s)
{{#if: {{{config|}}}
{{!}}colspan="2" class="infobox-text" {{!}}{{{location|}}}
|
{{!}} class="infobox-texttitle" {{!}} Entity Config
{{!}} colspan="2" class="infobox-text" {{!}} [{{{config|}}} Config]
{{!}}-
{{!}}-
}}
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}}Hostile :
{{!}} colspan="2" class="infobox-text" {{!}}{{{aggressive|}}}
{{!}}-
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}}Damage
{{!}} colspan="2" class="infobox-text" {{!}}{{{damage|}}}
{{!}}-
{{!}} colspan="3" style="height: 10px;" |
{{!}}-
{{#if: {{{includedrops|}}} |
{{!}}colspan="2" class="infobox-title" {{!}}Drops
{{!}}class="infobox-title" {{!}}%
{{!}}-
{{!}} 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
{{!}}-
{{!}} class="infobox-texttitle" {{!}}Voxel Model
{{!}} colspan="2" class="infobox-text" {{!}}{{{vox|}}}
{{!}}-
{{!}} 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 : Wildlife or Villager or Minion (dungeons) or Boss or Mini-Boss",
"label": "Type",
"description": "Follow the NPCs page to find their type.",
"description": "The type of entity the NPC is.",
"suggested": true
"type": "string",
"example": "wildlife",
"suggested": true,
"suggestedvalues": [
"boss",
"mini-boss",
"minion",
"outlaw",
"tribe",
"wildlife"
]
},
},
"location": {
"location": {
"label": "Location : Forest, Jungle, Taiga, Tundra, Arctic, Desert, Savannah, World",
"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": "Aggressive : Yes or No",
"label": "Hostility",
"description": "Does the NPC attack the player on sight?",
"type": "string",
"required": true
"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": {
"type": "url",
"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": {
"type": "url",
"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 218: Line 144:
}
}
</templatedata>
</templatedata>
</noinclude>

[[Category:Templates]]
[[Category:Formatting Templates]]
[[Category:Formatting Templates]]
[[Category:Infoboxes]]
[[Category:Infoboxes]]
</noinclude>

Latest revision as of 19:15, 13 February 2023

File:Veloren Template:Infobox npc.png
Template:Infobox npc
Statistics
Technical Information



Displays a floating infobox with information about an NPC entity.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Typetype

The type of entity the NPC is.

Suggested values
boss mini-boss minion outlaw tribe wildlife
Example
wildlife
Stringsuggested
Locationlocation

The biome where the NPC is located.

Suggested values
forest jungle taiga tundra artic desert savannah world
Example
Jungle
Stringsuggested
Hostilityaggressive

Does the NPC attack the player on sight?

Auto value
0
Booleansuggested
Health PointshealthPoints

The amount of HP the NPC has.

Example
1000
Numberoptional
Damagedamage

The amount of damage the NPC's attacks deal.

Example
10
Numberdeprecated
Vox modelvox

A link to the directory in the game's source repository with the NPC's entity vox files.

URLoptional
NPC configurationconfig

A link to this NPC entity's configuration file in the game's source repository.

URLoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.