Difference between revisions of "Template:Infobox main"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
Line 51: Line 51:
 
;Aim time
 
;Aim time
 
:{{{aim|}}} sec.}}
 
:{{{aim|}}} sec.}}
 +
{{#if: {{{buy|}}}{{{sell|}}}|
 +
;{{#if: {{{buy|}}}|Buy}}{{#switch: |{{{buy|}}}|{{{sell|}}}=| / }}{{#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;" />
 
</dl></div></div>
 
</dl></div></div>
 +
<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<!--
 +
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
 +
-->{{#if:{{{type2|}}}|[[Category:{{{type2}}}]]}}<!--
 +
-->}}
 +
</includeonly>
 
<noinclude>
 
<noinclude>
<div class="pull-left"><pre>
+
<div class="pull-left">
 +
*Everything is optional;
 +
*You can add a "name" and "image". Fill these values if the PAGENAME macro is not adequate (if the page name has a disambig qualifier for example)
 +
<pre>
 
{{infobox main|animal|
 
{{infobox main|animal|
|name = Animal test
+
|name = use for item header
|image = Animal Muffalo side.png|200px
+
|image = picture name.(jpg|png)|optional variables such as size, alt text
|info = Lorem Ipsum is simply dummy text of the printing and typesetting industry.
+
|info = use for short description
|type = Animals
+
|type = use for main category
|type2 = Category
+
|type2 = use for subcategory
|placeable =
+
|placeable = (yes|no) leave blank for "no"
|size = 3|4
+
|size = two values, separated by | - (1|2)
|hp = 10
+
|hp = use for health/strength
|speed = 5
+
|speed = use for tiles
|time = 2
+
|time = use for food-plants
|yield = 1
+
|yield = use for food-plants
|power = 50
+
|power = use for power input/output (+/-)
|class = SMG
+
|class = use for weapon class (use Single/SMG/Rifles/Thrown)
|damage = 100
+
|damage = use for weapon damage
|range = 10
+
|range = used for weapon range
|acc = 5
+
|acc = use for weapon accuracy 
|handling = quick
+
|handling = use for weapon quick
|aim = 1
+
|aim = use for weapon aim time
|buy = 1
+
|buy = use for price {{mi|x}} (metal) or {{di|x} (money)
|sell = 2
+
|sell = use for price {{mi|x}} (metal) or {{di|x} (money)
 
}}</pre></div>
 
}}</pre></div>
 
{{clear}}
 
{{clear}}

Revision as of 15:31, 13 November 2013

Usage

Infobox main

File:Infobox main.png

Type
[[{{{type}}}]]
Placeable
no
|}


  • Everything is optional;
  • You can add a "name" and "image". Fill these values if the PAGENAME macro is not adequate (if the page name has a disambig qualifier for example)
{{infobox main|animal|
|name = use for item header 
|image = picture name.(jpg|png)|optional variables such as size, alt text
|info = use for short description
|type = use for main category 
|type2 = use for subcategory
|placeable = (yes|no) leave blank for "no"
|size = two values, separated by | - (1|2)
|hp = use for health/strength
|speed = use for tiles 
|time = use for food-plants
|yield = use for food-plants
|power = use for power input/output (+/-)
|class = use for weapon class (use Single/SMG/Rifles/Thrown)
|damage = use for weapon damage
|range = used for weapon range
|acc = use for weapon accuracy  
|handling = use for weapon quick
|aim = use for weapon aim time
|buy = use for price {{mi|x}} (metal) or {{di|x} (money)
|sell = use for price {{mi|x}} (metal) or {{di|x} (money)
}}

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

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


Type
Animals
Placeable
no
HP
200
|}