Difference between revisions of "Template:Creature"

From Vintage Story Wiki
Jump to navigation Jump to search
m (added infobox cat)
m (docs and formatting error)
Line 1: Line 1:
 +
<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;"
 
{|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}}}
 
|-  
 
|-  
{{#if: {{{Health|}}} | {{#!:|- class{{{Health}}}
+
{{#if: {{{Health|}}} | {{#!:
|class="TC"|'''Health'''
+
|'''Health'''
|class="TC"|{{{Health}}}}}}}
+
|{{{Health}}}
{{#if: {{{BaseAttack|}}} | {{#!:|- class{{{BaseAttack}}}
+
}} }}
|class="TC"|'''Base Attack'''
+
{{#if: {{{BaseAttack|}}} | {{#!:
|class="TC"|{{{BaseAttack|}}}}}}}
 
{{#if: {{{Abilities|}}} | {{#!:|- class{{{Abilities}}}
 
|class="TC"|'''Abilities'''
 
|class="TC"|{{{Abilities}}}}}}}
 
{{#if: {{{SeekRange|}}} | {{#!:|- class{{{SeekRange}}}
 
|class="TC"|'''Seek Range'''
 
|class="TC"|{{{SeekRange}}}}}}}
 
{{#if: {{{Drops|}}} | {{#!:|- class{{{Drops}}}
 
|class="TC"|<abbr title="Randomly varies between given range">'''Drops'''</abbr>
 
|class="TC"|{{{Drops}}}}}}}
 
 
|-
 
|-
{{#if: {{{Name2|}}} | {{#!:|bgcolor="#000000" colspan="2" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name2}}}'''</font>}}}}
+
|'''Base Attack'''
 +
|{{{BaseAttack|}}}
 +
}} }}
 +
{{#if: {{{Abilities|}}} | {{#!:
 
|-
 
|-
{{#if: {{{Image2|}}} | {{#!:|bgcolor="#ffffff" colspan=2 style="text-align: center"| {{{Image2}}}}}}}
+
|'''Abilities'''
 +
|{{{Abilities}}}
 +
}} }}
 +
{{#if: {{{SeekRange|}}} | {{#!:
 
|-
 
|-
{{#if: {{{Health2|}}} | {{#!:|- class{{{Health2}}}
+
|'''Seek Range'''
|class="TC"|'''Health'''
+
|{{{SeekRange}}}
|class="TC"|{{{Health}}}}}}}
+
}} }}
{{#if: {{{BaseAttack2|}}} | {{#!:|- class{{{BaseAttack2}}}
+
{{#if: {{{Drops|}}} | {{#!:
|class="TC"|'''Base Attack'''
 
|class="TC"|{{{BaseAttack2|}}}}}}}
 
{{#if: {{{Abilities2|}}} | {{#!:|- class{{{Abilities2}}}
 
|class="TC"|'''Abilities'''
 
|class="TC"|{{{Abilities}}}}}}}
 
{{#if: {{{SeekRange2|}}} | {{#!:|- class{{{SeekRange2}}}
 
|class="TC"|'''Seek Range'''
 
|class="TC"|{{{SeekRange2}}}}}}}
 
{{#if: {{{Drops2|}}} | {{#!:|- class{{{Drops2}}}
 
|class="TC"|<abbr title="Randomly varies between given range">'''Drops'''</abbr>
 
|class="TC"|{{{Drops2}}}}}}}
 
 
|-
 
|-
{{#if: {{{Name3|}}} | {{#!:|bgcolor="#000000" colspan="2" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name3}}}'''</font>}}}}
+
|'''Drops'''
 +
|{{{Drops}}}
 +
}} }}
 
|-
 
|-
{{#if: {{{Image3|}}} | {{#!:|bgcolor="#ffffff" colspan=2 style="text-align: center"| {{{Image3}}}}}}}
+
|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
 +
|Drops=Flax
 +
}}
 +
{| class="wikitable"
 +
|-
 +
! Parameter !! Required or Optional, default if applicable !! Example
 
|-
 
|-
{{#if: {{{Health3|}}} | {{#!:|- class{{{Health3}}}
+
| ''Name'' || Required || Drifter
|class="TC"|'''Health'''
 
|class="TC"|{{{Health3}}}}}}}
 
{{#if: {{{BaseAttack3|}}} | {{#!:|- class{{{BaseAttack3}}}
 
|class="TC"|'''Base Attack'''
 
|class="TC"|{{{BaseAttack3|}}}}}}}
 
{{#if: {{{Abilities3|}}} | {{#!:|- class{{{Abilities3}}}
 
|class="TC"|'''Abilities'''
 
|class="TC"|{{{Abilities}}}}}}}
 
{{#if: {{{SeekRange3|}}} | {{#!:|- class{{{SeekRange3}}}
 
|class="TC"|'''Seek Range'''
 
|class="TC"|{{{SeekRange3}}}}}}}
 
{{#if: {{{Drops3|}}} | {{#!:|- class{{{Drops3}}}
 
|class="TC"|<abbr title="Randomly varies between given range">'''Drops'''</abbr>
 
|class="TC"|{{{Drops3}}}}}}}
 
 
|-
 
|-
|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>]]
+
| ''Image'' || Required || <nowiki>[[File:Surface drifter.png]]</nowiki>
 +
|-
 +
| ''Health'' || Optional || 10
 +
|-
 +
| ''BaseAttack'' || Optional || 5
 +
|-
 +
| ''Abilities'' || Optional || Climbing
 +
|-
 +
| ''SeekRange'' || Optional || 10
 +
|-
 +
| ''Drops'' || Optional || Flax
 
|}
 
|}
 
<noinclude>
 
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
 
</noinclude>
 
</noinclude>

Revision as of 00:17, 1 January 2020


Drifter
[[File:Surface drifter.png]]
Health 10
Base Attack 5
Abilities Climbing
Seek Range 10
Drops Flax
Mobs


Parameter Required or Optional, default if applicable Example
Name Required Drifter
Image Required [[File:Surface drifter.png]]
Health Optional 10
BaseAttack Optional 5
Abilities Optional Climbing
SeekRange Optional 10
Drops Optional Flax