Difference between revisions of "Template:Infobox main"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "<div class="infobox {{#if:{{{1}}}|{{#switch:{{{1}}}| animal = c_08 | weapon = c_25 |}} }}"> <p class="heading">{{{name|{{BASEPAGENAME}}}}}</p> <div class="wrapper"> <div class...")
 
m
Line 1: Line 1:
<div class="infobox {{#if:{{{1}}}|{{#switch:{{{1}}}| animal = c_08 | weapon = c_25 |}} }}">
+
<div class="infobox {{1}} {{#if:{{{2}}}|{{#switch:{{{2}}}| animal = c_08 | weapon = c_25 |}} }}">
 
<p class="heading">{{{name|{{BASEPAGENAME}}}}}</p>
 
<p class="heading">{{{name|{{BASEPAGENAME}}}}}</p>
 
<div class="wrapper">
 
<div class="wrapper">
<div class="image_wrapper">{{#if:{{{image|}}}|[[File:{{{image|}}}|{{{2}}}]]|[[File:{{{name|{{BASEPAGENAME}}}}}.png]] }}
+
<div class="image_wrapper">{{#if:{{{image|}}}|[[File:{{{image|}}}|{{{3}}}]]|[[File:{{{name|{{BASEPAGENAME}}}}}.png]] }}
 
{{#if:{{{info|}}}|{{{info|}}}
 
{{#if:{{{info|}}}|{{{info|}}}
 
----
 
----
Line 13: Line 13:
 
{{#if: {{{size|}}}|
 
{{#if: {{{size|}}}|
 
;Size
 
;Size
:{{{size|}}}&nbsp;ˣ&nbsp;{{{3}}}}}
+
:{{{size|}}}&nbsp;ˣ&nbsp;{{{4}}}}}
 
{{#if: {{{hp|}}}|
 
{{#if: {{{hp|}}}|
 
;HP
 
;HP
Line 54: Line 54:
 
<br style="clear: both; height: 0px;" />
 
<br style="clear: both; height: 0px;" />
 
</div></div>
 
</div></div>
 
 
<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<!--
 
<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<!--
 
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
 
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
Line 61: Line 60:
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
----
 
 
{{clear}}
 
{{clear}}
{{infobox main
+
==Usage: ==
 +
<pre>
 +
{{clear}}
 +
{{infobox main | pull-right
 +
|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
 +
}}</pre>
 +
{{clear}}
 +
{{infobox main | pull-right
 
|name = Animal test
 
|name = Animal test
 
|image = Animal Muffalo side.png|200px
 
|image = Animal Muffalo side.png|200px
|info = Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
+
|info = Lorem Ipsum is simply dummy text of the printing and typesetting industry.
 
|type = Animals
 
|type = Animals
 
|type2 = Category
 
|type2 = Category
Line 85: Line 109:
 
|sell = 2
 
|sell = 2
 
}}
 
}}
----
 
 
[[Category:Infobox templates|Main]]
 
[[Category:Infobox templates|Main]]
 
</noinclude>
 
</noinclude>

Revision as of 12:59, 13 November 2013

Infobox main

Placeable
no









Usage:

{{clear}}
{{infobox main | pull-right
|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
}}

Animal test

4

Lorem Ipsum is simply dummy text of the printing and typesetting industry.


Type
Animals – Category
Placeable
no
Size
3 ˣ {{{4}}}
HP
10
Movement speed
5%
Time to grow
2 day(s)
Yield
1 food
Power
50W
Class
SMG
Range
10
Handling
quick
Aim time
1 sec.
Buy / Sell
1 / 2