Difference between revisions of "Template:Infobox main"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
Line 2: Line 2:
 
<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|}}}|{{{3}}}]]|[[File:{{{name|{{BASEPAGENAME}}}}}.png]] }}
+
<div class="image_wrapper">{{#if:{{{image|}}}|[[File:{{{image|}}}|{{#if:{{{3}}}|{{{3}}}}}]]|[[File:{{{name|{{BASEPAGENAME}}}}}.png]] }}
 
{{#if:{{{info|}}}|{{{info|}}}
 
{{#if:{{{info|}}}|{{{info|}}}
 
----
 
----
Line 13: Line 13:
 
{{#if: {{{size|}}}|
 
{{#if: {{{size|}}}|
 
;Size
 
;Size
:{{{size|}}}&nbsp;ˣ&nbsp;{{{4}}}}}
+
:{{{size|}}}&nbsp;ˣ&nbsp;{{#if:{{{4}}}|{{{4}}}}}}}
 
{{#if: {{{hp|}}}|
 
{{#if: {{{hp|}}}|
 
;HP
 
;HP
Line 62: Line 62:
 
{{clear}}
 
{{clear}}
 
==Usage: ==
 
==Usage: ==
<pre>
+
{| width="100%"
{{infobox main||pull-right
+
|-
 +
|class="text-top"|<pre>
 +
{{infobox main|animal|
 
|name = Animal test
 
|name = Animal test
 
|image = Animal Muffalo side.png|200px
 
|image = Animal Muffalo side.png|200px
Line 85: Line 87:
 
|sell = 2
 
|sell = 2
 
}}</pre>
 
}}</pre>
{{clear}}
+
==Example==
{{infobox main||pull-right
+
<pre>{{infobox main|animal|
|name = Animal test
+
|name = Muffalo
 +
|image = Animal Muffalo side.png|200px
 +
|info = Slow-moving, grass-grazing quadrupeds analogous to Buffalo.
 +
|type = Animals
 +
|placeable =
 +
|hp = 200
 +
}}</pre>
 +
|
 +
{{infobox main|animal
 +
|name = Muffalo
 
|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.
+
|info = Slow-moving, grass-grazing quadrupeds analogous to Buffalo.
 
|type = Animals
 
|type = Animals
|type2 = Category
 
 
|placeable =
 
|placeable =
|size = 3|4
+
|hp = 200
|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
 
 
}}
 
}}
 +
|}
 
[[Category:Infobox templates|Main]]
 
[[Category:Infobox templates|Main]]
 
</noinclude>
 
</noinclude>

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