Difference between revisions of "Template:Infobox biome"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "<noinclude><!-- Cargo declare section --> {{#cargo_declare:_table = Biome | name = String | defname = String <!-- Technical name --> | image...")
 
 
(7 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 86: Line 86:
 
| {{!}} colspan="2" class="infoboxdescription" {{!}} General }}
 
| {{!}} colspan="2" class="infoboxdescription" {{!}} General }}
 
|-
 
|-
{{#if: {{{canbuildbase|}}} | {{!}} <div>Can build base</div> {{!!}}
+
{{#if: {{{canbuildbase|}}} | {{!}} <div>Can build base</div>
    {{#ifeq: {{{canbuildbase|}}} | yes |[[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
+
    {{!!}} {{#ifeq: {{{canbuildbase|}}} | yes |[[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 
|-
 
|-
{{#if: {{{allowroads|}}} | {{!}} <div>Allow roads</div> {{!!}}
+
{{#if: {{{allowroads|}}} | {{!}} <div>Allow roads</div>
    {{#ifeq: {{{allowroads|}}} | yes |[[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
+
    {{!!}} {{#ifeq: {{{allowroads|}}} | yes |[[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 
|-
 
|-
{{#if: {{{allowrivers|}}} | {{!}} <div>Allow rivers</div> {{!!}}
+
{{#if: {{{allowrivers|}}} | {{!}} <div>Allow rivers</div>
    {{#ifeq: {{{allowrivers|}}} | yes |[[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
+
    {{!!}} {{#ifeq: {{{allowrivers|}}} | yes |[[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 
|-
 
|-
{{#if: {{{impassable|}}} | {{!}} <div>Is impassable</div> {{!!}}
+
{{#if: {{{impassable|}}} | {{!}} <div>Is impassable</div>
    {{#ifeq: {{{impassable|}}} | yes |[[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
+
    {{!!}} {{#ifeq: {{{impassable|}}} | yes |[[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 
|-
 
|-
{{#if: {{{hasvirtualplants|}}} | {{!}} <div>Virtual plants</div> {{!!}}
+
{{#if: {{{hasvirtualplants|}}} | {{!}} <div>Virtual plants</div>
    {{#ifeq: {{{hasvirtualplants|}}} | yes |[[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
+
    {{!!}} {{#ifeq: {{{hasvirtualplants|}}} | yes |[[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 
|-
 
|-
 
{{#if: {{{movementdifficulty|}}} | {{!}} <div>Movement difficulty</div> {{!!}} {{{movementdifficulty}}} }}
 
{{#if: {{{movementdifficulty|}}} | {{!}} <div>Movement difficulty</div> {{!!}} {{{movementdifficulty}}} }}
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 -->
Line 142: Line 142:
 
| {{!}} colspan="2" class="infoboxdescription" {{!}} Technical }}
 
| {{!}} colspan="2" class="infoboxdescription" {{!}} Technical }}
 
|-
 
|-
{{#if: {{{texturepath|}}} | {{!}} <div>Graphics path</div> {{!!}} <span style="word-break: normal;">{{{texturepath}}} </span> }}<!-- break-all may be required -->
+
{{#if: {{{texturepath|}}} | {{!}} <div>Graphics path</div> {{!!}} <span style="word-break: break-word;">{{{texturepath}}} </span> }}<!-- break-all may be required -->
 
|-
 
|-
{{#if: {{{soundambient|}}} | {{!}} <div>Ambient sound</div> {{!!}} <span style="word-break: normal;">{{{soundambient}}} </span> }}<!-- break-all may be required -->
+
{{#if: {{{soundambient|}}} | {{!}} <div>Ambient sound</div> {{!!}} <span style="word-break: break-word;">{{{soundambient}}} </span> }}<!-- break-all may be required -->
 
|}
 
|}
 
<!-- Auto categories --><!--
 
<!-- Auto categories --><!--

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         = 
}}