Difference between revisions of "Template:Infobox:Manufacture"

From Cantr II Wiki
Jump to: navigation, search
(adding describable)
 
(15 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{| class="infobox bordered" cellpadding="4" align="right"
+
<includeonly>{{Infobox:ManufactureBase
|-
+
| title    = {{{title|}}}
|
+
| image    = {{{image|}}}
{| class="infobox" style="background-color:#E0E0E0; width:25em; font-size: 95%; margin-left: inherit;" valign="top" cellpadding="1" border="1" cellspacing="0" align="right"
+
| resize  = {{{resize|}}}
! style="background-color: #B0B0B0;" colspan="2" | Manufacturing
+
| comment  = {{{comment|}}}
|-
+
| section1 = {{if|test={{{type|}}}|then=Manufacturing|else=}}
| '''Object type''' || [[:Category:{{{type}}}|{{{type}}}]] [[Category:{{{type}}}]]
+
| item0s1  = Object type
|- class="hiddenStructure{{{skill}}}"
+
| info0s1  = [[:Category:{{{type}}}|{{{type}}}]]
| '''Skill used''' || [[Skills#{{{skill}}}|{{{skill}}}]]
+
| item1s1  = Skill used
|-
+
| info1s1  = {{if|test={{{skill|}}}|then=[[Skills#{{{skill}}}|{{{skill}}}]]|else={{Inc2}}}}
| '''Time''' || {{{time}}} days
+
| item2s1  = Time
|- class="hiddenStructure{{{resources}}}"
+
| info2s1  = {{if|test={{{time|}}}|then={{{time}}}|else=1}} day(s)
| '''Materials''' || {{{resources}}}
+
| item3s1  = {{if|test={{{resources|}}}|then=Materials|else=}}
|- class="hiddenStructure{{{objects}}}"
+
| info3s1  = {{{resources}}}
| '''Objects''' || {{{objects}}}
+
| item4s1  = {{if|test={{{objects|}}}|then=Objects|else=}}
|-
+
| info4s1  = {{{objects}}}
| '''Tools''' || {{{tools|none}}}
+
| item5s1  = {{if|test={{{tools|}}}|then=Tools|else=}}
|- class="hiddenStructure{{{machines}}}"
+
| info5s1  = {{{tools}}}
| '''Machines''' || {{{machines}}}
+
| item6s1  = {{if|test={{{machines|}}}|then=Machines|else=}}
|- class="hiddenStructure{{{location}}}"
+
| info6s1  = {{{machines}}}
| '''Location''' || {{{location}}}
+
| item7s1  = {{if|test={{{location|}}}|then=Location|else=}}
|- class="hiddenStructure{{{rot}}}"
+
| info7s1  = {{{location}}}
| '''[[Rot_and_repair|Rot]] per day''' || {{{rot}}}
+
| item8s1  = {{if|test={{{d-assembly|}}}|then=Disassembly|else=}}
|- class="hiddenStructure{{{userot}}}"
+
| info8s1  = {{{d-assembly}}}
| '''[[Rot_and_repair|Rot]] per day of use''' || {{{userot}}}
+
| item9s1  = {{if|test={{{describable|}}}|then=Describable|else=}}
|- class="hiddenStructure{{{repair}}}"
+
| info9s1  = {{{describable}}}
| '''[[Rot_and_repair|Repair]] per hour''' || {{{repair}}}
+
| section2 = {{if|test={{if|test={{{rot|}}}|then=x|else={{if|test={{{userot|}}}|then=x|else={{if|test={{{repair|}}}|then=x|else=}}}}}}|then=Rot and repair|else=}}
|}
+
| item0s2  = [[Rot and repair|Rot]]
|}
+
| info0s2  = {{if|test={{{rot|}}}|then={{{rot|0}}} points per day|else=per day: {{Inc3}}}}<br>{{if|test={{{userot|}}}|then={{{userot|0}}} points per day of use|else=per day of use: {{Inc3}}}}
 +
| item1s2  = [[Rot and repair|Repair]]
 +
| info1s2  = {{if|test={{{repair|}}}|then={{{repair|0}}} points per hour|else={{Inc3}}}}
 +
| section3 = {{if|test={{{alternative|}}}|then=Alternative manufacturing ({{{alternative}}})|else=}}
 +
| item0s3  = {{if|test={{{skill2|}}}|then=Skill used|else=}}
 +
| info0s3  = {{if|test={{{skill2|}}}|then=[[Skills#{{{skill2}}}|{{{skill2}}}]]|else={{Inc2}}}}
 +
| item1s3  = Time
 +
| info1s3  = {{if|test={{{time2|}}}|then={{{time2}}}|else=1}} day(s)
 +
| item2s3  = {{if|test={{{resources2|}}}|then=Materials|else=}}
 +
| info2s3  = {{{resources2}}}
 +
| item3s3  = {{if|test={{{objects2|}}}|then=Objects|else=}}
 +
| info3s3  = {{{objects2}}}
 +
| item4s3  = {{if|test={{{tools2|}}}|then=Tools|else=}}
 +
| info4s3  = {{{tools2}}}
 +
| item5s3  = {{if|test={{{machines2|}}}|then=Machines|else=}}
 +
| info5s3  = {{{machines2}}}
 +
| item6s3  = {{if|test={{{location2|}}}|then=Location|else=}}
 +
| info6s3  = {{{location2}}}
 +
}}<!-- Object Categories -->{{if|test={{{type|}}}|then=[[Category:{{{type}}}]]|else=}}</includeonly><!-- Template Categories --><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 04:01, 27 February 2022

Template documentation[ view ] [ discuss ] [edit]

{{Infobox:Manufacture}} allows to detail in a single table, all the characteristics of the production of any object.

The table is located in the upper right corner and can contain: an image with its description; information about the object category; the skill used in the manufacture; the time required; the tools, objects and machines needed; the place where you can manufacture the object; the rot and repair rates of the object.

The article is automatically added to the corresponding subcategory of Manufacturing.

Usage

Copy the text below and paste it to the top of the page you are editing. Complete the fields with the information you want to display. Unused fields may be deleted or left incomplete.

{{Infobox:Manufacture
| title       = 
| image       = 
| resize      = 
| comment     = 
| type        = 
| skill       = 
| time        = 
| resources   = 
| objects     = 
| tools       = 
| machines    = 
| location    = 
| rot         = 
| userot      = 
| repair      = 
| alternative = 
| skill2      = 
| time2       = 
| resources2  = 
| objects2    = 
| tools2      = 
| machines2   = 
| location2   = 
| d-assembly  = 
| describable = 
}}

Parameters