Difference between revisions of "Template:Infobox main"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
Line 5: Line 5:
 
{{#if:{{{info|}}}|{{{info|}}}
 
{{#if:{{{info|}}}|{{{info|}}}
 
----
 
----
}}</div></div>
+
}}</div>
 
;Type
 
;Type
 
:[[{{{type|}}}]]{{#if:{{{type2|}}}|&#32;&ndash;&#32;{{{type2}}}}}
 
:[[{{{type|}}}]]{{#if:{{{type2|}}}|&#32;&ndash;&#32;{{{type2}}}}}
;Placeable
+
;Placeable  
 
:{{#if:{{{placeable|}}}|yes|no}}
 
:{{#if:{{{placeable|}}}|yes|no}}
{{#if: {{{size|}}} {{!}} ;Size {{!}} :{{{size|}}}&nbsp;ˣ&nbsp;{{#if:{{{4}}}|{{{4}}}}}}}
+
{{#if: {{{size|}}}|
{{#if: {{{hp|}}} {{!}} ;HP {{!}} :{{{hp|}}}}}
+
{{!}};Size
{{#if: {{{speed|}}} {{!}} ;Movement speed {{!}} :{{{speed|}}}%}}
+
{{!}}:{{{size|}}}&nbsp;ˣ&nbsp;{{#if:{{{4}}}|{{{4}}}}}}}
{{#if: {{{time|}}} {{!}} ;Time to grow {{!}} :{{{time|}}} day(s)}}
+
{{#if: {{{hp|}}}|
{{#if: {{{yield|}}} {{!}} ;Yield {{!}} :{{{yield|}}} [[food]]}}
+
{{!}};HP
{{#if: {{{power|}}} {{!}} ;Power {{!}} :{{{power|}}}W}}
+
{{!}}:{{{hp|}}}}}
{{#if: {{{class|}}} {{!}} ;Class {{!}} :[[{{{class|}}}]]}}
+
{{#if: {{{speed|}}}|
{{#if: {{{dmg|}}} {{!}} ;Damage {{!}} :{{{dmg|}}}}}
+
{{!}};Movement speed
{{#if: {{{range|}}} {{!}} ;Range {{!}} :{{{range|}}}}}
+
{{!}}:{{{speed|}}}%}}
{{#if: {{{accuracy|}}} {{!}} ;Accuracy {{!}} {{{acc|}}}}}
+
{{#if: {{{time|}}}|
{{#if: {{{handling|}}} {{!}} ;Handling {{!}} :{{{handling|}}}}}
+
{{!}};Time to grow
{{#if: {{{aim|}}} {{!}} ;Aim time {{!}} :{{{aim|}}} sec.}}
+
{{!}}:{{{time|}}} day(s)}}
 +
{{#if: {{{yield|}}}|
 +
{{!}};Yield
 +
{{!}}:{{{yield|}}} [[food]]}}
 +
{{#if: {{{power|}}}|
 +
{{!}};Power
 +
{{!}}:{{{power|}}}W}}
 +
{{#if: {{{class|}}}|
 +
{{!}};Class
 +
{{!}}:[[{{{class|}}}]]}}
 +
{{#if: {{{dmg|}}}|
 +
{{!}};Damage
 +
{{!}}:{{{dmg|}}}}}
 +
{{#if: {{{range|}}}|
 +
{{!}};Range
 +
{{!}}:{{{range|}}}}}
 +
{{#if: {{{accuracy|}}}|
 +
{{!}};Accuracy
 +
{{{acc|}}}}}
 +
{{#if: {{{handling|}}}|
 +
{{!}};Handling
 +
{{!}}:{{{handling|}}}}}
 +
{{#if: {{{aim|}}}|
 +
{{!}};Aim time
 +
{{!}}:{{{aim|}}} sec.}}
 
<br style="clear: both; height: 0px;" />
 
<br style="clear: both; height: 0px;" />
</div>
+
</div></div>
 
<noinclude>
 
<noinclude>
 
{{clear}}
 
{{clear}}

Revision as of 13:43, 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