Difference between revisions of "Template:Infobox research"

From RimWorld Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 40: Line 40:
 
! 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:Ambox deletion.png|link=]]{{#ifeq: {{NAMESPACE}} | 0 | [[Category:Image wanted]]}} }}  
 
|-
 
|-
 
| colspan="2" | {{#if: {{{description|}}} | ''{{{description}}}'' }}
 
| colspan="2" | {{#if: {{{description|}}} | ''{{{description}}}'' }}
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 --><!--

Latest revision as of 12:23, 10 March 2022

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

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

Usage[edit]

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