Template:Infobox unit: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sylphoid (talk | contribs)
cleanup
Sylphoid (talk | contribs)
cleanup, remove shadows
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude><div style="margin-left: 2em;">
<onlyinclude><div style="margin-left: 2em;">
{| class="wikitable infobox" style="color: #FFEFD7; background-color: #2F2F2F; font-weight: bold"
{| class="infobox" style="border-left:solid 4px #2F2F2F;  border-right:solid 4px #2F2F2F; border-top:solid 1px #2F2F2F; border-bottom:solid 0px #2F2F2F; font-family: 'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; padding:1px; color:#FFEFD7; width:260px; background-color:#2F2F2F; font-weight:bold;"
! colspan="2" style="color: #FFEFD7; background-color: #2F2F2F; font-size: 18px; font-family: 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 0px 4px black, 0px 0px 0px black, 0px 0px 0px black; color:#FFEFD7;"| {{{name}}}
! colspan="2" style="color:#FFEFD7; background-color:#2F2F2F; font-size:{{{font-size|20px}}}; font-family: 'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight: bold; text-shadow:0px 2px 3px black, 1px 1px 2px #A69885, 0px 0px 1px black; color:#FFEFD7;"; color:#FFEFD7;"| {{{name}}}
|-
|-
! colspan="2" style="padding:0px; background-color:#a79986" | [[File:{{{Image}}}|200px]]
! colspan="2" class="infobox-image" | <div class="HeroCard2"; style="transition: 0.2s transform ease-in-out;overflow:hidden;border-radius: 15px;background-image: linear-gradient(#A69885, #72695A);padding:0px; background-color:#a79986; max-width:200px; height:auto; margin:0 auto; box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);"> [[File:{{{Image}}}|200px]]</div>
|-
|-
! colspan="2" style="background-color: #7CBB1E; font-weight: bold; font-size: 16px; font-family: 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 0px 4px black, 0px 0px 0px black, 0px 0px 0px black; color:#FFEFD7;" | Health
! colspan="2" style="color:#FFEFD7; background-color: #2F2F2F; font-size: 15px; font-family: 'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-style: italic; text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7); color:#FFEFD7;text-align:center;position:relative; bottom:-7px;" | <b><br style="display: block; margin-top: -2px;">Stats</b>
|-
|-
! style="color: #999999; background-color: #2F2F2F" | Base Health
! colspan="2" style="position:relative; border-radius:7px; background-color:#7CBB1E; font-weight:bold; font-size:16px; font-family:'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight:bold; text-shadow:0px 2px 4px black, 1px 1px 2px black, 0px 0px 1px black; color:#FFEFD7; text-align:center; border-bottom:none;" | <span style="font-weight: bold; text-shadow: 0px 2px 4px black,1.2px 1.2px rgba(0, 0, 0, 0.7); color:#FFEFD7; border-bottom: none"">Health</span>
| {{Icon/Grey|[[File:Extra Health.png|20px|link=Health]]|{{{max_health}}}}}
|-
|-
! style="color: #999999; background-color: #2F2F2F" | Health Regen
| style="font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" |Base Health:
| {{Icon/Grey|[[File:Health regen.png|20px|link=Health Regen]]|{{{health_regen}}}}}
|style="font-size: 17px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7)| {{Icon/Grey|[[File:Extra Health.png|18px|link=Health]]|{{{max_health}}}}}
|-
|-
! style="color: #999999; background-color: #2F2F2F" | Bullet Resist
| style="font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" | Health Regen:
| {{Icon/Grey|[[File:Bullet Armor.png|20px|link=Bullet Resist]]|{{{bullet_resist}}}%}}
|style="font-size: 16px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7)|{{Icon/Grey|[[File:Health regen.png|18px|link=Health Regen]]|{{{health_regen}}}}}
|-
|-
! style="color: #999999; background-color: #2F2F2F" | Spirit Resist
| style="font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" | Bullet Resist:
| {{Icon/Grey|[[File:Spirit Armor.png|20px|link=Spirit Resist]]|{{{spirit_resist}}}%}}
|style="font-size: 17px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7)| {{Icon/Grey|[[File:Bullet Armor.png|18px|link=Bullet Resist]]|{{{bullet_resist}}}%}}
|-
|-
! colspan="2" style="background-color: #BE7B24; font-weight: bold; font-size: 16px; font-family: 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 0px 4px black, 0px 0px 0px black, 0px 0px 0px black; color:#FFEFD7;" | Damage
| style="font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" | Spirit Resist:
|style="font-size: 17px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7)| {{Icon/Grey|[[File:Spirit Armor.png|18px|link=Spirit Resist]]|{{{spirit_resist}}}%}}
|-
|-
! style="color: #999999; background-color: #2F2F2F" | Damage
! colspan="2" style="position:relative; border-radius:7px; background-color:#d5903f; font-weight:bold; font-size:16px; font-family:'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight:bold; text-shadow: 0px 2px 4px black, 1px 1px 2px black, 0px 0px 1px black; color:#FFEFD7; text-align:center; border-bottom:none;"| <span style="font-weight: bold; text-shadow: 0px 2px 4px black,1.2px 1.2px rgba(0, 0, 0, 0.7); color:#FFEFD7; border-bottom: none"">Damage</span>
| {{Icon/Brown|[[File:Bullet damage.png|20px|link=Bullet Damage]]|{{{bullet_damage}}}}}
|-
|-
! style="color: #999999; background-color: #2F2F2F" | DPS
| style="font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" | Damage:
| {{Icon/Brown|[[File:Damage.png|20px|link=Damage per second]]|{{{dps}}}}}
|style="width: 116px;font-size: 16px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7)| {{Icon/Brown|[[File:Bullet damage.png|18px|link=Bullet Damage]]|{{{bullet_damage}}}}}
|-
|-
! style="color: #999999; background-color: #2F2F2F" | Range
| style="font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" | DPS:
| {{Icon/Brown|[[File:Assassinate.png|20px|link=]]|{{{attack_range}}}}}
|style="font-size: 17px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7)| {{Icon/Brown|[[File:Damage.png|18px|link=Damage per second]]|{{{dps}}}}}
|-
|-
! style="color: #999999; background-color: #2F2F2F" | Melee Damage
| style="font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" | Range:
| {{Icon/Brown|[[File:Melee damage.png|20px|link=Melee attack#Light]]|{{{melee_damage}}}}}
|style="font-size: 17px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7)| {{Icon/Brown|[[File:Assassinate.png|18px|link=]]|{{{attack_range}}}}}
|-
|-
! colspan="2" style="background-color: #ebdbc3; font-weight: bold; font-size: 16px; font-family: 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 0px 4px black, 0px 0px 0px black, 0px 0px 0px black; color:#FFEFD7;" | Movement
| style="font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" | Melee Damage:
|style="font-size: 17px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7)| {{Icon/Brown|[[File:Melee damage.png|18px|link=Melee attack#Light]]|{{{melee_damage}}}}}
|-
|-
! style="color: #999999; background-color: #2F2F2F" | Move Speed
{{#ifeq: {{{can_move|}}}|true
| {{Icon/Grey|[[File:Move speed.png|20px|link=Move Speed]]|{{{move_speed}}} m/s}}
|
{{!}} colspan="2" style="position:relative; border-radius:7px; background-color:#cfc969; font-weight:bold; font-size:16px; font-family: 'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight:bold; text-shadow: 0px 2px 4px black, 1px 1px 2px black, 0px 0px 1px black; color:#FFEFD7;text-align:center; border-bottom: none" {{!}} <span style="font-weight: bold; text-shadow: 0px 2px 4px black,1.2px 1.2px rgba(0, 0, 0, 0.7); color:#FFEFD7; border-bottom: none"">Movement</span>
{{!}}-
{{!}}style="font-size: 16px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #999999; background-color: #2F2F2F" {{!}}Move Speed:
{{!}}style="font-size: 17px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7) {{!}}{{Icon/Grey|[[File:Move speed.png|18px|link=Move Speed]]|{{{move_speed}}} m/s}}
{{!}}-
{{!}} style="font-size: 16px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #999999; background-color: #2F2F2F" {{!}} Sprint Speed:
{{!}}style="font-size: 16px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7){{!}}{{Icon/Grey|[[File:Move speed.png|18px|link=Move Speed]]|{{{sprint_speed}}} m/s}}}}
|-
|-
! style="color: #999999; background-color: #2F2F2F" | Sprint Speed
! colspan="2" style="position:relative; border-radius:7px; background-color:#69cfb0; font-weight:bold; font-size:16px; font-family:'Retail Demo', 'PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight: bold; text-shadow: 0px 2px 4px black, 1px 1px 2px black, 0px 0px 1px black; color:#FFEFD7; text-align:center; border-bottom:none;" |<span style="font-weight: bold; text-shadow: 0px 2px 4px black,1.2px 1.2px rgba(0, 0, 0, 0.7); color:#FFEFD7; border-bottom: none"">Souls</span>
| {{Icon/Grey|[[File:Move speed.png|20px|link=Move Speed]]|{{{sprint_speed}}} m/s}}
|-
|-
! colspan="2" style="background-color: #4ef2dd; font-weight: bold; font-size: 16px; font-family: 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 0px 4px black, 0px 0px 0px black, 0px 0px 0px black; color:#FFEFD7;" | Souls  
| style="font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" | Total Souls:
|style="font-size: 17px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7)| {{Souls|{{{soul_value}}}}}
|-
|-
! style="color: #999999; background-color: #2F2F2F" | Total Souls
| style="font-size: 15px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);text-align:right;color: #afafaf; background-color: #2F2F2F" |Soul Orbs:
| {{Souls|{{{soul_value}}}}}
|style="font-size: 17px;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7)| {{{soul_orbs}}}
|-
! style="color: #999999; background-color: #2F2F2F" | Soul Orbs
| {{{soul_orbs}}}
|}
|}
</div></onlyinclude><noinclude>{{Documentation}}</noinclude>
</div></onlyinclude><noinclude>{{Documentation}}</noinclude>

Latest revision as of 06:12, 13 November 2024

{{{name}}}
[[File:{{{Image}}}|200px]]

Stats
Health
Base Health:

{{{max_health}}}

Health Regen:

{{{health_regen}}}

Bullet Resist:

{{{bullet_resist}}}%

Spirit Resist:

{{{spirit_resist}}}%

Damage
Damage: {{{bullet_damage}}}
DPS: {{{dps}}}
Range: {{{attack_range}}}
Melee Damage: {{{melee_damage}}}
Souls
Total Souls: Souls{{{soul_value}}}
Soul Orbs: {{{soul_orbs}}}
Template documentation [view] [edit] [history] [purge]

Usage[edit source]

This infobox template is used for NPCs. It should be placed at the top of the page. For the hero infobox, see {{Infobox hero}}.

Examples[edit source]

{{Infobox unit
|name= Guardian
|Image= Guardian Icon.png
|max_health = 5500
|health_regen = 0
|bullet_resist = 0
|spirit_resist = 0
|dps = 28
|bullet_damage = 16
|melee_damage = 200
|stationary =
|move_speed = 0
|stamina = 0
|sprint_speed = 0
|attack_range = 1500
|soul_orbs = 4
|soul_value = 100
}}
Guardian

Stats
Health
Base Health:

5500

Health Regen:

0

Bullet Resist:

0%

Spirit Resist:

0%

Damage
Damage: 16
DPS: 28
Range: 1500
Melee Damage: 200
Souls
Total Souls: Souls100
Soul Orbs: 4
{{Infobox unit
|can_move=true
|name=Ranged Trooper
|Image=Trooper Icon.png
|max_health=300
|health_regen=0
|bullet_resist=0
|spirit_resist=0
|dps=28
|bullet_damage=36
|attack_range=1000
|melee_damage=25
|move_speed=2.4
|sprint_speed=4.33
|soul_value=75
|soul_orbs=1
}}
Ranged Trooper

Stats
Health
Base Health:

300

Health Regen:

0

Bullet Resist:

0%

Spirit Resist:

0%

Damage
Damage: 36
DPS: 28
Range: 1000
Melee Damage: 25
Movement
Move Speed:

2.4 m/s

Sprint Speed:

4.33 m/s

Souls
Total Souls: Souls75
Soul Orbs: 1

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

Name of the unit

Example
Guardian
Unknownrequired
ImageImage

Image file for the unit. Do not include the File: prefix.

Suggested values
Guardian Icon.png
Default
Guardian Icon.png
Filerequired
max_healthmax_health

Unit Health

Example
5500
Numberoptional
health_regenhealth_regen

Unit Health Regen (if applicable)

Numberoptional
bullet_resistbullet_resist

Unit Bullet Resistance %

Numberoptional
spirit_resistspirit_resist

Unit Spirit Resistance %

Numberoptional
dpsdps

Player DPS Value of the Unit

Numberoptional
bullet_damagebullet_damage

Individual attack damage

Numberoptional
attack_rangeattack_range

Maximum Attack Range

Numberoptional
melee_damagemelee_damage

Unit melee damage (if applicable)

Numberoptional
move_speedmove_speed

Unit walk speed (if applicable)

Numberoptional
sprint_speedsprint_speed

Unit sprint speed (if applicable)

Numberoptional
soul_valuesoul_value

How many Souls the unit grants in total (Including Base Amount + Soul Orbs)

Numberoptional
soul_orbssoul_orbs

Number of Soul Orbs spawned by the unit on death

Numberoptional
font-sizefont-size

no description

Unknownoptional
can_movecan_move

no description

Unknownoptional