Difference between revisions of "Template:Infobox research"

From RimWorld Wiki
Jump to navigation Jump to search
(Undo revision 74634 by Jakek1356theDick (talk))
Tag: Undo
Line 50: Line 50:
 
|-
 
|-
 
{{#if: {{{basecost|}}} | {{!}} <div>Base cost</div> {{!!}} {{{basecost}}} }}
 
{{#if: {{{basecost|}}} | {{!}} <div>Base cost</div> {{!!}} {{{basecost}}} }}
|-{#if:{{#pos: {{{requiredfacilities}}} |,}} | {{#arraymap:{{{requiredfacilities|}}}|,|x|* x|\n}} | {{{requiredfacilities}}} }} }}
+
|-
 +
{{#if: {{{tags|}}} | {{!}} <div>Tags</div> {{!!}} {{#if:{{#pos: {{{tags}}} |,}} | {{#arraymap:{{{tags|}}}|,|x|* x|\n}} | {{{tags}}} }} }}
 +
|-
 +
{{#if: {{{prerequisites|}}} {{{requiredbuilding|}}} {{{requiredfacilities|}}}
 +
| {{!}} colspan="2" class="infoboxdescription" {{!}} Requirements }}
 +
|-
 +
{{#if: {{{prerequisites|}}} | {{!}} <div>Technologies</div> {{!!}} {{#if:{{#pos: {{{prerequisites}}} |,}} | {{#arraymap:{{{prerequisites|}}}|,|x|* x|\n}} | {{{prerequisites}}} }} }}
 +
|-
 +
{{#if: {{{requiredbuilding|}}} | {{!}} <div>Building</div> {{!!}} {{{requiredbuilding}}} }}
 +
|-
 +
{{#if: {{{requiredfacilities|}}} | {{!}} <div>Facilities</div> {{!!}} {{#if:{{#pos: {{{requiredfacilities}}} |,}} | {{#arraymap:{{{requiredfacilities|}}}|,|x|* x|\n}} | {{{requiredfacilities}}} }} }}
 
|}
 
|}
 
<!-- Auto categories --><!--
 
<!-- Auto categories --><!--

Revision as of 08:29, 4 September 2020

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

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

Usage

{{Infobox research
| name               = 
| defname            = 
| image              = 
| description        = 
| description_markup = 
<!--   General   -->
| techlevel          = 
| basecost           = 
| tags               = 
<!--   Requirements   -->
| prerequisites      = 
| requiredbuilding   = 
| requiredfacilities = 
}}