Difference between revisions of "Template:Terrain"

From Wurmpedia
Jump to navigation Jump to search
(New page: <includeonly> {| style="float:right; margin:1em; width:250px;" cellpadding="3" cellspacing="0" border="1" |+ style="font-weight: bold" | {{{name|{{PAGENAME}}}}} |- | [[Image:{{{image|{{{na...)
 
 
(47 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 +
<templatestyles src="InfoTable/styles.css" />
 
<includeonly>
 
<includeonly>
{| style="float:right; margin:1em; width:250px;" cellpadding="3" cellspacing="0" border="1"
+
{| class="wikitable" style="float:right; margin:1em; width:250px;" cellpadding="3" cellspacing="0" border="1"
 
|+ style="font-weight: bold" | {{{name|{{PAGENAME}}}}}
 
|+ style="font-weight: bold" | {{{name|{{PAGENAME}}}}}
 
|-
 
|-
| [[Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
+
| [[Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|180px|A {{{name|{{PAGENAME}}}}}]]
 
|-
 
|-
! style="background-color:#3c5;" | Properties
+
! class="infobox-header-row" | Properties
 
|-
 
|-
 
|
 
|
Max walking speed: {{{speed}}}
+
* Max flat speed: {{{speed}}}
<br />Terrain type: {{{type}}}
+
* Can be created by players?: {{{playermade}}}
<br />Playermade: {{{playermade}}}
+
* Underground: {{{underground}}}
<br />Underground: {{{underground}}}
 
 
|-
 
|-
! style="background-color:#3c5;" | Creation
+
! class="infobox-header-row" | Creation
 
|-
 
|-
 
|
 
|
{{{result}}}
+
* {{{creation}}}
 
|-
 
|-
  
{{#ifeq:{{{method}}}||
+
 
! style="background-color:#3c5;" | Material
+
! class="infobox-header-row" | Material
 
|-
 
|-
 
|
 
|
* Gives [[{{{material}}}]] after being {{#ifeq:{{{method}}}|dig|[[dug|digging]]|}} {{#ifeq:{{{method}}}|mine|[[mined|mining]]|}}}}
+
 
{{#if:{{{improve|}}}
+
{{#ifeq:{{{method}}}|no|* Cannot be mined/dug into.|* Gives [[{{{material}}}]] after being {{#ifeq:{{{method}}}|dig|[[digging|dug]]|}} {{#ifeq:{{{method}}}|mine|[[mining|mined]]|}} {{#ifeq:{{{method}}}|farm|[[farming|sown]]|}} {{#ifeq:{{{method}}}|harvest|[[farming|harvested]] {{#if:{{{material2|}}}| or [[{{{material2}}}]] if dried before harvest}}|}}}}
 +
 
 
|}
 
|}
 
[[Category:Terrain]]
 
[[Category:Terrain]]
Line 31: Line 32:
 
Usage example:
 
Usage example:
  
<pre>{{item
+
<pre>{{terrain
 
|name=Stone slabs
 
|name=Stone slabs
 
|speed=17.3 km/h
 
|speed=17.3 km/h
Line 39: Line 40:
 
|creation=Player made by paving [[Packed Dirt]] with [[Stone Slabs]]
 
|creation=Player made by paving [[Packed Dirt]] with [[Stone Slabs]]
 
|material=dirt
 
|material=dirt
|method=dig
+
|material2=hay        (optional)
 +
|method=no|dig|farm|harvest
 
}}
 
}}
 
</pre>
 
</pre>

Latest revision as of 14:01, 23 November 2021


Usage example:

{{terrain
|name=Stone slabs
|speed=17.3 km/h
|type=Paving
|playermade=Yes
|underground=No
|creation=Player made by paving [[Packed Dirt]] with [[Stone Slabs]]
|material=dirt
|material2=hay        (optional)
|method=no|dig|farm|harvest
}}