Difference between pages "Template:Infobox machine" and "Template:Infobox machine/sandbox"

(Difference between pages)
Jump to: navigation, search
Page 1
Page 2
m (Rename some categories)
 
(Added new row: "Boost by Unity")
 
Line 2: Line 2:
--><div class="infobox-wrapper"><!--
--><div class="infobox-wrapper"><!--
--><div class="outer-box"><!--
--><div class="outer-box"><!--
 
     
  ** Header: designation image, name of machine, tier **
   --><div class="inner-header"><!--
   --><div class="inner-header"><!--
     --><div class="designation"><!--
     --><div class="designation"><!--
Line 14: Line 13:
     --></div><!--
     --></div><!--
     --><div class="title"><!--
     --><div class="title"><!--
       -->{{#if: {{{Name|}}}<!--
       -->{{#if: {{{Name|}}} | {{#vardefineecho:info_bldg|{{{Name}}}}}{{#vardefine:hidebldg|yes}} | Unknown Machine }}<!--
        -->| {{#vardefineecho:info_bldg|{{{Name}}}}}<!--
          -->{{#vardefine:hidebldg|yes}}<!--
          ** This variable is used in footer template **
          -->{{#vardefine:game_object_type|building}}<!--
        -->| Unknown Machine }}<!--
     --></div><!--
     --></div><!--
     --><div class="tier"><!--
     --><div class="tier"><!--
Line 25: Line 19:
     --></div><!--
     --></div><!--
   --></div><!--
   --></div><!--
  ** Image of machine **
   --><div class="inner-main"><!--
   --><div class="inner-main"><!--
     -->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name|}}} | {{{Name}}} | Placeholder machine}}.png}}]]<br/><!--
     -->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name|}}} | {{{Name}}} | Placeholder machine}}.png}}]]<br/><!--
     -->{{#if: {{{Description|}}} | {{#ifeq: {{lc:{{{Description}}}}} | none | |<!--
     -->{{#if: {{{Description|}}} | {{#ifeq: {{lc:{{{Description}}}}} | none | |<!--
       --><div class="description">{{{Description}}}</div> |<!--
       --><div class="description">{{{Description}}}</div> |<!--
       -->{{#if: {{NAMESPACE}} || {{#ifeq: {{lc:{{{Designation|}}}}} | transports || [[Category:Machine articles missing descriptions]] }} }}<!--
       -->{{#if: {{NAMESPACE}} || {{#ifeq: {{lc:{{{Designation|}}}}} | transports || [[Category:Machine articles missing descriptions]] }} }}<!--
     -->}}}}<!--
     -->}} }}<!--
   --></div><!--
   --></div><!--
   --><div class="inner-table"><!--
   --><div class="inner-table"><!--
     --><div class="inner-inner-table"><!--   
     --><div class="inner-inner-table"><!--   
       --><table class="table"><!--
       --><table class="table"><!--
        ** Recipe for constructing building **
         -->{{#if:{{{Recipe|}}}|<!--
         -->{{#if:{{{Recipe|}}}|<!--
           --><tr class="table-tr"><!--
           --><tr class="table-tr"><!--
Line 46: Line 34:
             --><td class="table-td-right">{{{Recipe}}}</td><!--
             --><td class="table-td-right">{{{Recipe}}}</td><!--
           --></tr>}}<!--  
           --></tr>}}<!--  
        ** Worker, Electricity, Computing, Unity **
         -->{{#if:{{{Workers|}}}|<!--
         -->{{#if:{{{Workers|}}}|<!--
           --><tr class="table-tr"><!--
           --><tr class="table-tr"><!--
Line 90: Line 75:
           --></tr><!--
           --></tr><!--
         -->}}<!--
         -->}}<!--
        ** Research speed for Lab
         -->{{#if:{{{ResearchSpeed|}}}|<!--
         -->{{#if:{{{ResearchSpeed|}}}|<!--
           --><tr class="table-tr"><!--
           --><tr class="table-tr"><!--
Line 98: Line 81:
           --></tr><!--
           --></tr><!--
         -->}}<!--
         -->}}<!--
        ** Maintenance **
         -->{{#if:{{{Maintenance|}}}|<!--
         -->{{#if:{{{Maintenance|}}}|<!--
           --><tr class="table-tr"><!--
           --><tr class="table-tr"><!--
Line 110: Line 91:
                 ** Note, this is a hacky way to get around the Mediawiki ParserFunctions's limitation of being unable to format numbers as fixed-length floats **
                 ** Note, this is a hacky way to get around the Mediawiki ParserFunctions's limitation of being unable to format numbers as fixed-length floats **
               -->&nbsp;/&nbsp;60&nbsp;[[File:Clock.png|link=Time|16x16px]]<!--
               -->&nbsp;/&nbsp;60&nbsp;[[File:Clock.png|link=Time|16x16px]]<!--
              -->{{#if: {{NAMESPACE}} || [[Category: Buildings requesting Maintenance I]]}}<!--
             -->}}<!--
             -->}}<!--
             --></td><!--
             --></td><!--
Line 125: Line 105:
                 ** Note, this is a hacky way to get around the Mediawiki ParserFunctions's limitation of being unable to format numbers as fixed-length floats **
                 ** Note, this is a hacky way to get around the Mediawiki ParserFunctions's limitation of being unable to format numbers as fixed-length floats **
               -->&nbsp;/&nbsp;60&nbsp;[[File:Clock.png|link=Time|16x16px]]<!--
               -->&nbsp;/&nbsp;60&nbsp;[[File:Clock.png|link=Time|16x16px]]<!--
              -->{{#if: {{NAMESPACE}} || [[Category: Buildings requesting Maintenance II]]}}<!--
             -->}}<!--
             -->}}<!--
             --></td><!--
             --></td><!--
Line 140: Line 119:
                 ** Note, this is a hacky way to get around the Mediawiki ParserFunctions's limitation of being unable to format numbers as fixed-length floats **
                 ** Note, this is a hacky way to get around the Mediawiki ParserFunctions's limitation of being unable to format numbers as fixed-length floats **
               -->&nbsp;/&nbsp;60&nbsp;[[File:Clock.png|link=Time|16x16px]]<!--
               -->&nbsp;/&nbsp;60&nbsp;[[File:Clock.png|link=Time|16x16px]]<!--
              -->{{#if: {{NAMESPACE}} || [[Category: Buildings requesting Maintenance III]]}}<!--
             -->}}<!--
             -->}}<!--
             --></td><!--
             --></td><!--
Line 146: Line 124:
         -->}}<!--
         -->}}<!--
         -->{{#if: {{{Maintenance}}}{{{MaintenanceII}}}{{{MaintenanceIII}}} || {{#if: {{NAMESPACE}} || {{#ifeq: {{lc:{{{Designation|}}}}} | transports || [[Category:Machine articles missing maintenance]] }} }} }}<!--
         -->{{#if: {{{Maintenance}}}{{{MaintenanceII}}}{{{MaintenanceIII}}} || {{#if: {{NAMESPACE}} || {{#ifeq: {{lc:{{{Designation|}}}}} | transports || [[Category:Machine articles missing maintenance]] }} }} }}<!--
        ** Footprint **
         -->{{#if:{{{Footprint|}}}|<!--
         -->{{#if:{{{Footprint|}}}|<!--
           --><tr class="table-tr"><!--
           --><tr class="table-tr"><!--
Line 156: Line 132:
           -->{{#if: {{NAMESPACE}} || {{#ifeq: {{lc:{{{Designation|}}}}} | transports || [[Category:Machine articles missing footprint]] }} }}<!--
           -->{{#if: {{NAMESPACE}} || {{#ifeq: {{lc:{{{Designation|}}}}} | transports || [[Category:Machine articles missing footprint]] }} }}<!--
         -->}}<!--
         -->}}<!--
        ** Parameters for storage **
         -->{{#if:{{{Cargo|}}}|<!--
         -->{{#if:{{{Cargo|}}}|<!--
           --><tr class="table-tr"><!--
           --><tr class="table-tr"><!--
Line 172: Line 146:
             --><td class="table-td-left">Throughput</td><!--
             --><td class="table-td-left">Throughput</td><!--
             --><td class="table-td-right">{{{Throughput}}} / 60&nbsp;[[File:Clock.png|link=Time|16x16px]]</td><!--
             --><td class="table-td-right">{{{Throughput}}} / 60&nbsp;[[File:Clock.png|link=Time|16x16px]]</td><!--
           --></tr>}}<!--
           --></tr>}}<!--  
 
        ** Required technology **
         -->{{#if:{{{Research|}}}|<!--
         -->{{#if:{{{Research|}}}|<!--
           --><tr class="table-tr"><!--
           --><tr class="table-tr"><!--
             --><td class="table-td-left">Required Research</td><!--
             --><td class="table-td-left">Required Research</td><!--
             --><td class="table-td-right"><!--
             --><td class="table-td-right"><!--
               -->{{#ifeq: {{lc:{{{Research}}}}} | none | None | {{ResearchLink|{{{Research}}}}} }}<!--
               -->{{#ifeq: {{lc:{{{Research}}}}} | none | None | [[{{{Research}}}]] }}<!--
               -->{{#if:{{{Research2|}}} | <br/>''or'' {{ResearchLink|{{{Research2}}}}} }}<!--
               -->{{#if:{{{Research2|}}} | <br/>''or'' [[{{{Research2}}}]] }}<!--
               -->{{#if:{{{Research3|}}} | <br/>''or'' {{ResearchLink|{{{Research3}}}}} }}<!--
               -->{{#if:{{{Research3|}}} | <br/>''or'' [[{{{Research3}}}]] }}<!--
             --></td><!--
             --></td><!--
           --></tr> | [[Category:Machine articles missing research]] }}<!--
           --></tr> | [[Category:Machine articles missing research]] }}<!--
Line 189: Line 161:
             --><td class="table-td-right"><!--
             --><td class="table-td-right"><!--
               -->{{ #ifeq: {{{BoostByUnity}}} | yes <!--
               -->{{ #ifeq: {{{BoostByUnity}}} | yes <!--
                 --> | Available {{#if: {{NAMESPACE}} || [[Category:Boostable Buildings]]}} | <!--
                 --> | Available [[Category:Boostable Building]] | <!--
                 --> {{ #ifeq: {{{BoostByUnity}}} | no <!--
                 --> {{ #ifeq: {{{BoostByUnity}}} | no <!--
                   --> | Not Available {{#if: {{NAMESPACE}} || [[Category:Unboostable Buildings]]}} <!--
                   --> | Not Available [[Category:Unboostable Building]]<!--
                   --> | <font color="red">'''ERROR: Input "yes" or "no"'''</font> <!--
                   --> | <font color="red">'''ERROR: Input "yes" or "no"'''</font> <!--
                 -->}}<!--
                 -->}}<!--
Line 197: Line 169:
             --></td><!--
             --></td><!--
           --></tr>}}<!--
           --></tr>}}<!--
        ** Designation and variants **
         -->{{#if:{{{Designation|}}}|<!--
         -->{{#if:{{{Designation|}}}|<!--
           --><tr class="table-tr"><!--
           --><tr class="table-tr"><!--
Line 222: Line 192:
--></div><!--
--></div><!--
--></div><!--
--></div><!--
--></includeonly><noinclude>{{documentation}}</noinclude>
--></includeonly><noinclude>
 
{{Infobox machine/sandbox
| Name          = Groundwater Pump
| Tier          = 1
| Image        =
| Description  = In-game building description goes here. The template will handle even very long text gracefully.
| Recipe        =
  {{Machine Recipe
    | Input1Name  = Construction Parts
    | Input1Qty  = 12
    | Input2Name  = Iron
    | Input2Qty  = 12
    }}
| Workers      = 10
| Electricity  = 20 KW
| Maintenance  = 5
| Footprint    = 6x4
| Research      = Cement Production <!-- What tech is required for this building to be unlocked -->
| Cargo        = [[Water]]
| Storage      = 5000
| BoostByUnity  = yes
| Designation  = General Machines
| DesigImgOverride = Fuel Gas.png <!-- only used if needed to override the automatic image -->
| Variants      = [[Blast Furnace II]]
}}
 
</noinclude>