Template:Creature: Difference between revisions

From Vintage Story Wiki
m (added position:relative)
m (rev)
(27 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{|border="1" cellpadding="2" cellspacing="0" style="border-radius:7px; font-size:90%; width:250px; float:right; position:relative;"
<includeonly>
{|border="1" cellpadding="2" cellspacing="0" style="border-radius:7px; font-size:90%; width:250px; float:right; position:relative; margin-left:5px; margin-bottom: 5px;"
|-
|-
|bgcolor="#000000" colspan="2" class="TC" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font>
|bgcolor="#000000" colspan="2" class="TC" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font>
|-
|-
|bgcolor="#ffffff" colspan=2 style="text-align: center"| {{{Image}}}
|bgcolor="#d3ab92" colspan=2 style="text-align: center"| [[{{{Image}}}|100px]]
|- class{{{Health}}}="hiddenStructure"
|-  
|class="TC"|'''Health'''
{{#if: {{{Health|}}} | {{#!:
|class="TC"|{{{Health}}}
|'''Health'''
|- class{{{BaseAttack}}}="hiddenStructure"
|{{{Health}}}
|class="TC"|'''Base Attack'''
}} }}
|class="TC"|{{{BaseAttack}}}
|- class{{{Abilities}}}="hiddenStructure"
|class="TC"|'''Abilities'''
|class="TC"|{{{Abilities}}}
|- class{{{SeekRange}}}="hiddenStructure"
|class="TC"|'''Seek Range'''
|class="TC"|{{{SeekRange}}}
|- class{{{Drops}}}="hiddenStructure"
|class="TC"|<abbr title="Randomly varies between given range">'''Drops'''</abbr>
|class="TC"|{{{Drops}}}
|-
|-
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Mobs|<font color="white">'''Mob'''</font>]]
{{#if: {{{BaseAttack|}}} | {{#!:
|'''Base Attack'''
|{{{BaseAttack|}}}
}} }}
|-
{{#if: {{{DamageTier|}}} | {{#!:
|'''Damage Tier'''
|{{{DamageTier|}}}
}} }}
|-
{{#if: {{{Abilities|}}} | {{#!:
|'''Abilities'''
|{{{Abilities}}}
}} }}
|-
{{#if: {{{SeekRange|}}} | {{#!:
|'''Seek Range'''
|{{{SeekRange}}}
}} }}
|-
{{#if: {{{DropCode1|}}} | {{#!:
{{Drops
|Code1={{{DropCode1|}}}
|Avg1={{{DropAvg1|}}}
|Var1={{{DropVar1|}}}
|Code2={{{DropCode2|}}}
|Avg2={{{DropAvg2|}}}
|Var2={{{DropVar2|}}}
|Code3={{{DropCode3|}}}
|Avg3={{{DropAvg3|}}}
|Var3={{{DropVar3|}}}
|Code4={{{DropCode4|}}}
|Avg4={{{DropAvg4|}}}
|Var4={{{DropVar4|}}}
}}
}} }}
|-
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Mobs|<font color="white">'''Mobs'''</font>]]
|}
</includeonly>
<noinclude>
{{Creature
|Name=Drifter
|Image=<nowiki>[[File:Surface drifter.png]]</nowiki>
|Health=10
|BaseAttack=5
|Abilities=Climbing
|SeekRange=10
|DropCode1=Flax
|DropAvg1=1
}}
{| class="wikitable"
|-
! Parameter !! Required or Optional, default if applicable !! Example
|-
| ''Name'' || Required || Drifter
|-
| ''Image'' || Required || File:Surface drifter.png
|-
| ''Health'' || Optional || 10
|-
| ''BaseAttack'' || Optional || 5
|-
| ''DamageTier'' || Optional || 1
|-
| ''Abilities'' || Optional || Climbing
|-
| ''SeekRange'' || Optional || 10
|-
| Drops || Optional || See [[Template:Drops]]
|}
|}
[[Category:Infoboxes]]
</noinclude>

Revision as of 00:25, 5 April 2022


Drifter
[[[[File:Surface drifter.png]]|130px]]
Health 10
Base Attack 5
Abilities Climbing
Seek Range (m) 10
Drops
Flax 1*
Mobs


Parameter Required or Optional, default if applicable Example
Name Required Drifter
Image Required File:Surface drifter.png
Health Optional 10
BaseAttack Optional 5
DamageTier Optional 1
Abilities Optional Climbing
SeekRange Optional 10
Drops Optional See Template:Drops