Difference between revisions of "Template:Infobox main"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
Line 6: Line 6:
 
----
 
----
 
}}</div>
 
}}</div>
{{#if:{{{type|}}}|<!--
+
{{#if:{{{type|}}}|
-->;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|}}}|<!--
+
{{#if: {{{size|}}}|
-->;Size<!--
+
;Size
-->:{{{size|}}}&nbsp;ˣ&nbsp;{{#if:{{{4}}}|{{{4}}}}}}}
+
:{{{size|}}}&nbsp;ˣ&nbsp;{{#if:{{{4}}}|{{{4}}}}}}}
{{#if: {{{hp|}}}|<!--
+
{{#if: {{{hp|}}}|
-->;HP<!--
+
;HP
-->:{{{hp|}}}}}
+
:{{{hp|}}}}}
{{#if: {{{speed|}}}|<!--
+
{{#if: {{{speed|}}}|
-->;Movement speed<!--
+
;Movement speed
-->:{{{speed|}}}%}}
+
:{{{speed|}}}%}}
{{#if: {{{time|}}}|<!--
+
{{#if: {{{time|}}}|
-->;Time to grow<!--
+
;Time to grow
-->:{{{time|}}} day(s)}}
+
:{{{time|}}} day(s)}}
{{#if: {{{yield|}}}|<!--
+
{{#if: {{{yield|}}}|
-->;Yield<!--
+
;Yield
-->:{{{yield|}}} [[food]]}}
+
:{{{yield|}}} [[food]]}}
{{#if: {{{power|}}}|<!--
+
{{#if: {{{power|}}}|
-->;Power<!--
+
;Power
-->:{{{power|}}}W}}
+
:{{{power|}}}W}}
{{#if: {{{class|}}}|<!--
+
{{#if: {{{class|}}}|
-->;Class<!--
+
;Class
-->:[[{{{class|}}}]]}}
+
:[[{{{class|}}}]]}}
{{#if: {{{dmg|}}}|<!--
+
{{#if: {{{dmg|}}}|
-->;Damage<!--
+
;Damage
-->:{{{dmg|}}}}}
+
:{{{dmg|}}}}}
{{#if: {{{range|}}}|<!--
+
{{#if: {{{range|}}}|
-->;Range<!--
+
;Range
-->:{{{range|}}}}}
+
:{{{range|}}}}}
{{#if: {{{accuracy|}}}|<!--
+
{{#if: {{{accuracy|}}}|
-->;Accuracy<!--
+
;Accuracy
-->{{{acc|}}}}}
+
{{{acc|}}}}}
{{#if: {{{handling|}}}|<!--
+
{{#if: {{{handling|}}}|
-->;Handling<!--
+
;Handling
-->:{{{handling|}}}}}
+
:{{{handling|}}}}}
{{#if: {{{aim|}}}|<!--
+
{{#if: {{{aim|}}}|
-->;Aim time<!--
+
;Aim time
-->:{{{aim|}}} sec.}}
+
:{{{aim|}}} sec.}}
{{#if: {{{buy|}}}{{{sell|}}}|<!--
 
-->;{{#if: {{{buy|}}}|Buy}}{{#switch: |{{{buy|}}}|{{{sell|}}}=|&nbsp;/&nbsp;}}{{#if:{{{sell|}}}|Sell}}<!--
 
-->:{{#if: {{{buy|}}}|{{{buy}}}}}<!--
 
  -->{{#switch: |{{{buy|}}}|{{{sell|}}}=|&nbsp;/&nbsp;}}<!--
 
  -->{{#if:{{{sell|}}}|{{{sell}}}}}}}
 
 
<br style="clear: both; height: 0px;" />
 
<br style="clear: both; height: 0px;" />
 
</div></div>
 
</div></div>
<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<!--
 
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
 
-->{{#if:{{{type2|}}}|[[Category:{{{type2}}}]]}}<!--
 
-->}}
 
</includeonly>
 
 
<noinclude>
 
<noinclude>
 
{{clear}}
 
{{clear}}
Line 64: Line 54:
 
{| width="100%"  
 
{| width="100%"  
 
|-
 
|-
|class="text-top"|<pre>
+
|class="text-top"|
 +
<pre>
 
{{infobox main|animal|
 
{{infobox main|animal|
 
|name = Animal test
 
|name = Animal test

Revision as of 13:22, 13 November 2013

Infobox main

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