Template:Infobox bestiary: Difference between revisions

Template page
Content added Content deleted
mNo edit summary
m (removed some caps)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<templatestyles src="https://wiki.veloren.net/wiki/User:Ajima/MyStyle.css" />
<templatestyles src="https://wiki.veloren.net/wiki/User:Ajima/MyStyle.css" />
<onlyinclude><div>
<onlyinclude><div>
{|class="wikitable" style="width: 230px;"
{|class="wikitable" style="width: 200px;"
|-
|-
|colspan="4" class="infobox-title" style="font-size: 125%"|{{{title}}}
|colspan="4" class="infobox-title" style="font-size: 125%"|{{{title}}}
Line 9: Line 9:
|colspan="4"| [[File:Veloren_{{{item1}}}.png|alt={{{item1}}}|30px|link={{{item1}}}]] [[File:Veloren_{{{item2}}}.png|alt={{{item2}}}|30px|link={{{item2}}}]] [[File:Veloren_{{{item3}}}.png|alt={{{item3}}}|30px|link={{{item3}}}]] [[File:Veloren_{{{item4}}}.png|alt={{{item4}}}|30px|link={{{item4}}}]]
|colspan="4"| [[File:Veloren_{{{item1}}}.png|alt={{{item1}}}|30px|link={{{item1}}}]] [[File:Veloren_{{{item2}}}.png|alt={{{item2}}}|30px|link={{{item2}}}]] [[File:Veloren_{{{item3}}}.png|alt={{{item3}}}|30px|link={{{item3}}}]] [[File:Veloren_{{{item4}}}.png|alt={{{item4}}}|30px|link={{{item4}}}]]
|-
|-
|style="font-size:90%; text-align:center;"|{{{health|}}} &#10084;&#65039;
|style="font-size:90%; padding: 3%; vertical-align: center; text-align: center;"|{{{health|}}}
&#10084;&#65039;
|style="font-size:90%; text-align:center;"|{{{sp|}}} &#9889;
Health
|style="font-size:90%; text-align:center;"|{{{armor|}}}% &#128737;
|style="font-size:90%; text-align:center;"|{{{crit|}}}% &#128165;
|style="font-size:90%; padding: 3%; vertical-align: center; text-align: center;"|{{{sp|}}}
&#9889;
SP
|style="font-size:90%; padding: 3%; vertical-align: center; text-align: center;"|{{{armor|}}}%
&#128737;
Armor
|style="font-size:90%; padding: 3%; vertical-align: center; text-align: center;"|{{{crit|}}}%
&#128165;
Crit
|-
|-
|style="font-size:90%; text-align:center;" | {{{speed|}}} &#127939;
|style="font-size:90%; padding: 3%; vertical-align: center; text-align: center;"|{{{speed|}}}
&#127939;
|style="font-size:90%; text-align:center;" | {{{stun|}}} &#128296;
Speed
|style="font-size:90%; text-align:center;"| {{{stealth|}}} &#128065;&#65039;
|style="font-size:90%; text-align:center;"| {{{empty|}}}
|style="font-size:90%; padding: 3%; vertical-align: center; text-align: center;"|{{{stun|}}}
&#128296;
Stun
|style="font-size:90%; padding: 3%; vertical-align: center; text-align: center;"|{{{stealth|}}}
&#128065;&#65039;
Stealth
|style="font-size:90%; padding: 3%; vertical-align: center; text-align: center;"|{{{empty|}}}
|-
|-
|colspan="2"|Hostile :
|colspan="2"|Hostile:
|colspan="2" style="padding-left:10px" |{{{hostile|}}}
|colspan="2" style="padding-left:10px" |{{#ifexpr: {{{hostile|}}}|yes|no}}
|-
|-
|colspan="2"|Mount : {{{mount|}}}
|colspan="2"|Mount:
|colspan="2" style="text-align:center;" | {{{speed|}}} &#127939;
|colspan="2" style="padding-left:10px" |{{#ifexpr: {{{mount|}}}|yes|no}}
|-
|-
|colspan="2"|Danger :
|colspan="2"|Danger:
|colspan="2" style="padding-left:10px" |{{{danger|}}}
|colspan="2" style="padding-left:10px" |{{{danger|}}}
|-
|-
|colspan="2"|Rarity :
|colspan="2"|Rarity:
|colspan="2" style="padding-left:10px" |{{{rarity|}}}
|colspan="2" style="padding-left:10px" |{{{rarity|}}}
|}</div></onlyinclude>
|}</div></onlyinclude>
Line 40: Line 54:
"type": "string",
"type": "string",
"required": true,
"required": true,
"label": "Creature's name : "
"label": "Creature's name: "
},
},
"health": {
"health": {
Line 46: Line 60:
"type": "number",
"type": "number",
"suggested": true,
"suggested": true,
"label": "Health point of the creature : "
"label": "Health points of the creature: "
},
},
"hostile": {
"hostile": {
"type": "string",
"type": "boolean",
"required": true,
"suggested": true,
"suggested": true,
"label": "Hostile ? yes or no",
"label": "Hostile? ",
"description": "Do it attack you ?"
"description": "Does it attack you on sight?",
"autovalue": "0"
},
},
"mount": {
"mount": {
"description": "Can it be mounted ?",
"description": "Can it be mounted?",
"type": "string",
"type": "boolean",
"suggested": true,
"suggested": true,
"label": "Mount : Yes or No"
"label": "Mount?",
"autovalue": "0"
},
},
"danger": {
"danger": {
Line 65: Line 80:
"required": true,
"required": true,
"suggested": true,
"suggested": true,
"label": "Danger level : Low or Medium or High or Lethal ?"
"label": "Danger level ?",
"description": "Up to players appreciation. :D",
"suggestedvalues": [
"low",
"medium",
"high",
"lethal"
]
},
},
"rarity": {
"rarity": {
"example": "Common, Rare, Unique",
"example": "Common",
"type": "string",
"type": "string",
"required": true,
"required": true,
"suggested": true,
"suggested": true,
"label": "Rarity : Common or Rare or Unique ?"
"label": "Rarity ?",
"description": "How likely you will encounter this creature ?",
"suggestedvalues": [
"common",
"rare",
"unique"
]
},
},
"sp": {
"sp": {
Line 81: Line 109:
},
},
"speed": {
"speed": {
"label": "Running speed in block/s",
"label": "Running speed in blocks/s",
"description": "How fast the creature run",
"description": "How fast the creature run",
"example": "6, 15",
"example": "6, 15",
Line 126: Line 154:
"suggested": true
"suggested": true
},
},
"stealth": {},
"stealth": {
"label": "Stealth"
},
"empty": {}
"empty": {}
},
},
Line 149: Line 179:
],
],
"format": "inline",
"format": "inline",
"description": "A small creature cardbox for the biome page. Remember every words in the template data must be spaced and capitalised like this : Raw Slab Meat. So it will autogenerate an image like this : Veloren_Raw_Slab_Meat.png. You can leave <item> = Empty. It will generate an Empty image."
"description": "A small creature cardbox for the biome page. Remember every word in the template data must be spaced and capitalised like this: Raw Slab Meat. So it will autogenerate an image like this: Veloren_Raw_Slab_Meat.png. You can leave <item> = Empty. It will generate an Empty image."
}
}
</templatedata>
</templatedata>

Latest revision as of 14:46, 24 July 2023

{{{title}}}
[[File:Veloren_{{{title}}}.png|alt={{{title}}}|200px|link={{{title}}}]]
[[File:Veloren_{{{item1}}}.png|alt={{{item1}}}|30px|link={{{item1}}}]] [[File:Veloren_{{{item2}}}.png|alt={{{item2}}}|30px|link={{{item2}}}]] [[File:Veloren_{{{item3}}}.png|alt={{{item3}}}|30px|link={{{item3}}}]] [[File:Veloren_{{{item4}}}.png|alt={{{item4}}}|30px|link={{{item4}}}]]

❤️ Health

⚡ SP

%

🛡 Armor

%

💥 Crit

🏃 Speed

🔨 Stun

👁️ Stealth

Hostile: no
Mount: no
Danger:
Rarity:


A small creature cardbox for the biome page. Remember every word in the template data must be spaced and capitalised like this: Raw Slab Meat. So it will autogenerate an image like this: Veloren_Raw_Slab_Meat.png. You can leave <item> = Empty. It will generate an Empty image.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Creature's name: title

no description

Example
Antlion, Cat, Gnarling Shaman
Stringrequired
Add one item that the creature drop :item1

no description

Example
Elegant Crest
Auto value
Empty
Stringsuggested
Add one item that the creature drop :item2

no description

Example
Raptor Feather
Auto value
Empty
Stringsuggested
Add one item that the creature drop :item3

no description

Auto value
Empty
Stringsuggested
Add one item that the creature drop :item4

no description

Auto value
Empty
Stringsuggested
Health points of the creature: health

no description

Example
130
Numbersuggested
Stamina point (energy) of the creaturesp

no description

Example
30, 150, 300
Numbersuggested
Damage reductionarmor

no description

Numbersuggested
Weapon's crit chancecrit

no description

Unknownoptional
Stun resiliencestun

no description

Numbersuggested
Stealthstealth

no description

Unknownoptional
emptyempty

no description

Unknownoptional
Hostile? hostile

Does it attack you on sight?

Auto value
0
Booleansuggested
Mount?mount

Can it be mounted?

Auto value
0
Booleansuggested
Running speed in blocks/sspeed

How fast the creature run

Example
6, 15
Numbersuggested
Danger level ?danger

Up to players appreciation. :D

Suggested values
low medium high lethal
Stringrequired
Rarity ?rarity

How likely you will encounter this creature ?

Suggested values
common rare unique
Example
Common
Stringrequired
Cookies help us deliver our services. By using our services, you agree to our use of cookies.