Difference between revisions of "Template:Infobox main"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
Line 7: Line 7:
 
}}</div>
 
}}</div>
 
<dl>
 
<dl>
<dd>Type</dd><dt>[[{{{type|}}}]]{{#if:{{{type2|}}}|&#32;&ndash;&#32;{{{type2}}}}}</dt>
+
<dt>Type</dt>
<dd>Placeable</dd>
+
<dd>[[{{{type|}}}]]{{#if:{{{type2|}}}|&#32;&ndash;&#32;{{{type2}}}}}</dd>
<dt>{{#if:{{{placeable|}}}|yes|no}}</dt>
+
<dt>Placeable</dt>
 +
<dd>{{#if:{{{placeable|}}}|yes|no}}</dd>
 
{{#if: {{{size|}}}|
 
{{#if: {{{size|}}}|
<dd>Size</dd>
+
<dt>Size</dt>
<dt>{{{size|}}}&nbsp;ˣ&nbsp;{{#if:{{{4}}}|{{{4}}}}}</dt>}}
+
<dd>{{{size|}}}&nbsp;ˣ&nbsp;{{#if:{{{4}}}|{{{4}}}}}</dd>}}
 
{{#if: {{{hp|}}}|
 
{{#if: {{{hp|}}}|
<dd>HP</dd>
+
<dt>HP</dt>
<dt>{{{hp|}}}</dt>}}
+
<dd>{{{hp|}}}</dd>}}
 
{{#if: {{{speed|}}}|
 
{{#if: {{{speed|}}}|
<dd>Movement speed</dd>
+
<dt>Movement speed</dt>
<dt>{{{speed|}}}%</dt>}}
+
<dd>{{{speed|}}}%</dd>}}
 
{{#if: {{{time|}}}|
 
{{#if: {{{time|}}}|
 
;Time to grow
 
;Time to grow
Line 46: Line 47:
 
;Aim time
 
;Aim time
 
:{{{aim|}}} sec.}}
 
:{{{aim|}}} sec.}}
 +
</dl>
 
<br style="clear: both; height: 0px;" />
 
<br style="clear: both; height: 0px;" />
 
</div></div>
 
</div></div>
 
<noinclude>
 
<noinclude>
 
{{clear}}
 
{{clear}}
 +
 
==Usage: ==
 
==Usage: ==
 
{| width="100%"  
 
{| width="100%"  
Line 95: Line 98:
 
|hp = 200}}
 
|hp = 200}}
 
|}
 
|}
 +
 
[[Category:Infobox templates|Main]]
 
[[Category:Infobox templates|Main]]
 
</noinclude>
 
</noinclude>

Revision as of 14:06, 13 November 2013

Infobox main

Type
[[]]
Placeable
no



Usage:

{{infobox main|animal|
|name = Animal test
|image = Animal Muffalo side.png|200px
|info = Lorem Ipsum is simply dummy text of the printing and typesetting industry.
|type = Animals
|type2 = Category
|placeable =
|size = 3|4 
|hp = 10
|speed = 5
|time = 2
|yield = 1
|power = 50
|class = SMG
|damage = 100
|range = 10
|acc = 5
|handling = quick
|aim = 1
|buy = 1
|sell = 2
}}

Example

{{infobox main|animal|
|name = Muffalo
|image = Animal Muffalo side.png|200px
|info = Slow-moving, grass-grazing quadrupeds analogous to Buffalo.
|type = Animals
|placeable =
|hp = 200
}}

Muffalo

{{{3}}}

Slow-moving, grass-grazing quadrupeds analogous to Buffalo.


Type
Animals
Placeable
no
HP
200