Template:Infobox bestiary: Difference between revisions

Template page
Content added Content deleted
No edit summary
m (removed some caps)
 
(37 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>

{|class="wikitable" style="width: 200px;"
<div>
{|class="wikitable"
|-
|-
|colspan="2" class="infobox-title" style="font-size: 125%"|{{{title}}}
|colspan="4" class="infobox-title" style="font-size: 125%"|{{{title}}}
|-
|-
|colspan="2"|[[File:Veloren_{{{title}}}.png|alt={{{title}}}|180px|link={{{title}}}]]
|colspan="4"|[[File:Veloren_{{{title}}}.png|alt={{{title}}}|200px|link={{{title}}}]]
|-
|-
|colspan="2"| [[File:Veloren_{{{item1}}}.png|alt={{{item1}}}|30px|link={{{item1}}}]] [[File:Veloren_{{{item2}}}.png|alt={{{item2}}}|30px|link={{{item2}}}]]
|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%; padding: 3%; vertical-align: center; text-align: center;"|{{{health|}}}
|{{{health|}}} <span style='font-size:100%;'>&#10084;&#65039;</span>
&#10084;&#65039;
|style="padding-left:10px" |{{{sp|}}} <span style='font-size:100%;'>&#9889;</span>
Health
|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%; padding: 3%; vertical-align: center; text-align: center;"|{{{speed|}}}
|Alignement :
&#127939;
|style="padding-left:10px" |{{{alignement|}}}
Speed
|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:
|Mount : {{{mount|}}}
|style="padding-left:10px" | {{{speed|}}} &#127939;
|colspan="2" style="padding-left:10px" |{{#ifexpr: {{{hostile|}}}|yes|no}}
|-
|-
|colspan="2"|Mount:
|Danger :
|style="padding-left:10px" |{{{danger|}}}
|colspan="2" style="padding-left:10px" |{{#ifexpr: {{{mount|}}}|yes|no}}
|-
|-
|colspan="2"|Danger:
|Rarity :
|style="padding-left:10px" |{{{rarity|}}}
|colspan="2" style="padding-left:10px" |{{{danger|}}}
|}
|-
|colspan="2"|Rarity:
</div>
|colspan="2" style="padding-left:10px" |{{{rarity|}}}

|}</div></onlyinclude>


<noinclude>
<noinclude>
[[Category:Templates]]
<templatedata>
<templatedata>
{
{
Line 37: Line 54:
"type": "string",
"type": "string",
"required": true,
"required": true,
"label": "Creature's name : "
"label": "Creature's name: "
},
},
"health": {
"health": {
Line 43: Line 60:
"type": "number",
"type": "number",
"suggested": true,
"suggested": true,
"label": "Health point of the creature : "
"label": "Health points of the creature: "
},
},
"alignement": {
"hostile": {
"type": "string",
"type": "boolean",
"required": true,
"suggested": true,
"suggested": true,
"label": "Aggressive or Peaceful ?"
"label": "Hostile? ",
"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 61: 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 77: 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 86: Line 118:
"label": "Add one item that the creature drop :",
"label": "Add one item that the creature drop :",
"example": "Elegant Crest",
"example": "Elegant Crest",
"type": "wiki-page-name",
"type": "string",
"suggested": true
"suggested": true,
"autovalue": "Empty"
},
},
"item2": {
"item2": {
"label": "Add one item that the creature drop :",
"label": "Add one item that the creature drop :",
"example": "Raptor Feather",
"example": "Raptor Feather",
"type": "wiki-page-name",
"type": "string",
"suggested": true
"suggested": true,
"autovalue": "Empty"
},
},
"item3": {
"item3": {
"label": "Add one item that the creature drop :",
"label": "Add one item that the creature drop :",
"example": "Raw Meat Slab ",
"type": "string",
"type": "wiki-page-name",
"autovalue": "Empty",
"suggested": true
"suggested": true
},
},
"item4": {
"item4": {
"label": "Add one item that the creature drop :",
"label": "Add one item that the creature drop :",
"type": "wiki-page-name",
"type": "string",
"autovalue": "Empty",
"suggested": true
"suggested": true
}
},
"armor": {
"label": "Damage reduction",
"type": "number",
"suggested": true
},
"crit": {
"label": "Weapon's crit chance"
},
"stun": {
"label": "Stun resilience",
"type": "number",
"suggested": true
},
"stealth": {
"label": "Stealth"
},
"empty": {}
},
},
"paramOrder": [
"paramOrder": [
Line 115: Line 167:
"health",
"health",
"sp",
"sp",
"alignement",
"armor",
"crit",
"stun",
"stealth",
"empty",
"hostile",
"mount",
"mount",
"speed",
"speed",
Line 122: Line 179:
],
],
"format": "inline",
"format": "inline",
"description": "A small creature cardbox for the biome page. The image's link is autogenerated based on the creature's name :Veloren_<CreatureName>.png eg : <CreatureName> = Tusk Ram, result : Veloren_Tusk Ram.png"
"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>
[[Category:Templates]]
</noinclude>
</noinclude>

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.