Difference between revisions of "Template:Infobox biome"

From RimWorld Wiki
Jump to navigation Jump to search
m
 
(4 intermediate revisions by 3 users not shown)
Line 20: Line 20:
 
| diseasemtbdays      = Integer    <!-- placed near disease table data -->
 
| diseasemtbdays      = Integer    <!-- placed near disease table data -->
 
<!-- Weather  -->
 
<!-- Weather  -->
| clearcommonality    = Integer
+
| clear                = Integer
| fogcommonality      = Integer
+
| fog                  = Integer
| raincommonality      = Integer
+
| rain                = Integer
| foggyraincommonality = Integer
+
| foggyrain            = Integer
| drythunderstormcommonality  = Integer
+
| drythunderstorm      = Integer
| rainythunderstormcommonality = Integer
+
| rainythunderstorm    = Integer
| snowgentlecommonality= Integer
+
| snowgentle          = Integer
| snowhardcommonality  = Integer
+
| snowhard            = Integer
 
<!-- Pack animal -->
 
<!-- Pack animal -->
 
| allowedpackanimals  = List (,) of String  <!-- placed near animals table data??? -->
 
| allowedpackanimals  = List (,) of String  <!-- placed near animals table data??? -->
Line 38: Line 38:
 
--><includeonly><!-- Cargo store section  --><!-- disable namespacecheck for now
 
--><includeonly><!-- Cargo store section  --><!-- disable namespacecheck for now
 
{{#ifeq: {{NAMESPACENUMBER}} | 0 | -->
 
{{#ifeq: {{NAMESPACENUMBER}} | 0 | -->
{{#cargo_store:_table = Weapon
+
{{#cargo_store:_table = Biome
 
| name                = {{{name|}}}
 
| name                = {{{name|}}}
 
| defname              = {{{defname|}}}
 
| defname              = {{{defname|}}}
Line 59: Line 59:
 
<!-- | has_gender        = {{#if: {{{has_gender|}}} | {{{has_gender}}} | yes}}        EXAMPLE -->
 
<!-- | has_gender        = {{#if: {{{has_gender|}}} | {{{has_gender}}} | yes}}        EXAMPLE -->
 
<!--  Weather  -->
 
<!--  Weather  -->
| clearcommonality    = {{{clearcommonality|}}}
+
| clear                = {{{clear|}}}
| fogcommonality      = {{{fogcommonality|}}}
+
| fog                  = {{{fog|}}}
| raincommonality      = {{{raincommonality|}}}
+
| rain                = {{{rain|}}}
| foggyraincommonality = {{{foggyraincommonality|}}}
+
| foggyrain            = {{{foggyrain|}}}
| drythunderstormcommonality  = {{{drythunderstormcommonality|}}}
+
| drythunderstorm      = {{{drythunderstorm|}}}
| rainythunderstormcommonality = {{{rainythunderstormcommonality|}}}
+
| rainythunderstorm    = {{{rainythunderstorm|}}}
| snowgentlecommonality= {{{snowgentlecommonality|}}}
+
| snowgentle          = {{{snowgentle|}}}
| snowhardcommonality  = {{{snowhardcommonality|}}}
+
| snowhard            = {{{snowhard|}}}
 
<!-- Pack animal -->
 
<!-- Pack animal -->
 
| allowedpackanimals  = {{{allowedpackanimals|}}}
 
| allowedpackanimals  = {{{allowedpackanimals|}}}
Line 79: Line 79:
 
! colspan="2" class="infoboxname" | {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
 
! colspan="2" class="infoboxname" | {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
 
|-
 
|-
! colspan="2" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Questionmark black.png|link=]]{{#ifeq: {{NAMESPACE}} | 0 | [[Category:Image wanted]]}} }}  
+
! colspan="2" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Missing leather.png|link=]]{{#ifeq: {{NAMESPACE}} | 0 | [[Category:Image wanted]]}} }}  
 
|-
 
|-
 
| colspan="2" | {{#if: {{{description|}}} | ''{{{description}}}'' }}
 
| colspan="2" | {{#if: {{{description|}}} | ''{{{description}}}'' }}
Line 115: Line 115:
 
{{#if: {{{diseasemtbdays|}}} | {{!}} <div>Disease frequency</div> {{!!}} Once per {{{diseasemtbdays}}} days on average}}
 
{{#if: {{{diseasemtbdays|}}} | {{!}} <div>Disease frequency</div> {{!!}} Once per {{{diseasemtbdays}}} days on average}}
 
|-
 
|-
{{#if: {{{clearcommonality|}}} {{{fogcommonality|}}} {{{raincommonality|}}}  {{{foggyraincommonality|}}}{{{drythunderstormcommonality|}}} {{{rainythunderstormcommonality|}}} {{{snowgentlecommonality|}}} {{{snowhardcommonality|}}}
+
{{#if: {{{clear|}}} {{{fog|}}} {{{rain|}}}  {{{foggyrain|}}}{{{drythunderstorm|}}} {{{rainythunderstorm|}}} {{{snowgentle|}}} {{{snowhard|}}}
 
| {{!}} colspan="2" class="infoboxdescription" {{!}} Weather }}
 
| {{!}} colspan="2" class="infoboxdescription" {{!}} Weather }}
 
|-
 
|-
{{#if: {{{clearcommonality|}}} | {{!}} <div>Clear</div> {{!!}} {{{clearcommonality}}} (commonality) }}
+
{{#if: {{{clear|}}} | {{!}} <div>Clear</div> {{!!}} {{{clear}}} }}
 
|-
 
|-
{{#if: {{{fogcommonality|}}} | {{!}} <div>Fog</div> {{!!}} {{{fogcommonality}}} (commonality) }}
+
{{#if: {{{fog|}}} | {{!}} <div>Fog</div> {{!!}} {{{fog}}} }}
 
|-
 
|-
{{#if: {{{raincommonality|}}} | {{!}} <div>Rain</div> {{!!}} {{{raincommonality}}} (commonality) }}
+
{{#if: {{{rain|}}} | {{!}} <div>Rain</div> {{!!}} {{{rain}}} }}
 
|-
 
|-
{{#if: {{{foggyraincommonality|}}} | {{!}} <div>Foggy rain</div> {{!!}} {{{foggyraincommonality}}} (commonality) }}
+
{{#if: {{{foggyrain|}}} | {{!}} <div>Foggy rain</div> {{!!}} {{{foggyrain}}} }}
 
|-
 
|-
{{#if: {{{drythunderstormcommonality|}}} | {{!}} <div>Dry thunderstorm</div> {{!!}} {{{drythunderstormcommonality}}} (commonality) }}
+
{{#if: {{{drythunderstorm|}}} | {{!}} <div>Dry thunderstorm</div> {{!!}} {{{drythunderstorm}}} }}
 
|-
 
|-
{{#if: {{{rainythunderstormcommonality|}}} | {{!}} <div>Rainy thunderstorm</div> {{!!}} {{{rainythunderstormcommonality}}} (commonality) }}
+
{{#if: {{{rainythunderstorm|}}} | {{!}} <div>Rainy thunderstorm</div> {{!!}} {{{rainythunderstorm}}} }}
 
|-
 
|-
{{#if: {{{snowgentlecommonality|}}} | {{!}} <div>Gentle snow</div> {{!!}} {{{snowgentlecommonality}}} (commonality) }}
+
{{#if: {{{snowgentle|}}} | {{!}} <div>Gentle snow</div> {{!!}} {{{snowgentle}}} }}
 
|-
 
|-
{{#if: {{{snowhardcommonality|}}} | {{!}} <div>Hard snow</div> {{!!}} {{{snowhardcommonality}}} (commonality) }}
+
{{#if: {{{snowhard|}}} | {{!}} <div>Hard snow</div> {{!!}} {{{snowhard}}} }}
 
|-
 
|-
 
{{#if: {{{allowedpackanimals|}}} <!-- Do it like this for now -->
 
{{#if: {{{allowedpackanimals|}}} <!-- Do it like this for now -->

Latest revision as of 01:25, 24 April 2023

This template defines the table "Biome". View table.

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage[edit]

{{Infobox biome
| name                 = 
| defname              = 
| image                = 
| description          = 
| description_markup   = 
<!--   General   -->
| canbuildbase         = 
| allowroads           = 
| allowrivers          = 
| impassable           = 
| hasvirtualplants     = 
| movementdifficulty   = 
| animaldensity        = 
| plantdensity         = 
| forageability        = 
| foragedfood          = 
| wildplantsregrowdays = 
| diseasemtbdays       = 
<!-- Weather  -->
| clear                = 
| fog                  = 
| rain                 = 
| foggyrain            = 
| drythunderstorm      = 
| rainythunderstorm    = 
| snowgentle           = 
| snowhard             = 
<!-- Pack animal -->
| allowedpackanimals   = 
<!-- Technical -->
| texturepath          = 
| soundambient         = 
}}