Difference between revisions of "Template:Infobox transport"

From Captain of Industry Wiki
Jump to: navigation, search
m (Error fixing)
 
(26 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><templatestyles src="Template:Infobox material/styles.css" /><!--
--><div style="float:right; clear: right;"><!--
--><div class="infobox-wrapper"><!--
--><div style="display:inline-block; min-width: 250px; max-width: 350px; border: 3px solid rgba(252,162,58,1); border-radius: 15px; margin:10px; font-size:14px; background-color: rgba(46,46,46,1);"><!--
--><div class="outer-box"><!--
   --><div style="width: 100%; vertical-align: middle; text-align: center; background-color: rgba(0,0,0,1); font-size: 20px; color: rgba(252,162,58,1); text-shadow: 0 0 10px rgba(255,162,58,.7); font-family: Georgia, Liberation Serif, Times, serif; border-radius: 15px 15px 0 0; border-bottom: 3px solid rgba(252,162,58,1); padding: 10px 0;"><!--
   --><div class="inner-header"><!--
        -->{{#if: {{{Name|}}} | {{{Name}}} | Unknown Vehicle }}<!--
    --><div class="title"><!--
      -->{{#if: {{{Name|}}}<!--
        -->| {{{Name}}}<!--
          ** This variable is used in footer template **
          -->{{#vardefine:game_object_type|transport}}<!--
        -->| Unknown Transport }}<!--
    --></div><!--
   --></div><!--
   --></div><!--
   --><div style="text-align: center; padding: 10px 10px 0;"><!--
   --><div class="inner-main"><!--
     -->{{#if: {{{Description|}}} | <!--
     -->{{#if: {{{Description|}}} | <!--
       --><div style="font-size:16px; color: rgba(255,255,255,1); padding: 0px 0px 10px 0px;">''“{{{Description}}}”''</div><!--
       --><div class="description">''“{{{Description}}}”''</div><!--
     -->}}<!--
     -->}}<!--
     -->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name|}}} | {{{Name}}} | Placeholder vehicle}}.png}}]]<br/><!--
     -->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name|}}} | {{{Name}}} | Placeholder vehicle}}.png}}]]<br/><!--
   --></div><!--
   --></div><!--
   --><div style="padding: 10px;"><!--
   --><div class="inner-table"><!--
     --><div style="vertical-align:top; width: 100%;"><!--   
     --><div class="inner-inner-table"><!--   
       --><table style="border-collapse: collapse; border-spacing: 0 8px; flex-grow:1; line-height:16px; white-space:nowrap; width: 100%"><!--
       --><table class="table"><!--
        -->{{#if:{{{Cargo|}}}|<!--
          --><tr class="table-tr"><!--
            --><td class="table-td-left">Cargo</td><!--
            --><td class="table-td-right"><!--
              -->{{#ifexist: Category:{{{Cargo}}} | [[:Category:{{{Cargo}}}|{{{Cargo}}}]] | {{{Cargo}}}}}<!--
            --></td><!--
          --></tr>}}<!--
         -->{{#if:{{{Throughput|}}}|<!--
         -->{{#if:{{{Throughput|}}}|<!--
           --><tr style="border-top: 1px solid white; vertical-align: top;"><!--
           --><tr class="table-tr"><!--
             --><td style="text-align: right; font-weight: bold; padding: 5px 5px 5px 0;">Cargo Size</td><!--
             --><td class="table-td-left">Throughput</td><!--
             --><td style="padding: 5px 0 5px 5px;">{{{Throughput}}}</td><!--
             --><td class="table-td-right">{{{Throughput}}} / 60&nbsp;[[File:Clock.png|link=|16x16px]]</td><!--
           --></tr>}}<!--
           --></tr>}}<!--  
         -->{{#if:{{{Cargo|}}}|<!--
         -->{{#if:{{{Variants|}}}|<!--
           --><tr style="border-top: 1px solid white; vertical-align: top;"><!--
           --><tr class="table-tr"><!--
             --><td style="text-align: right; font-weight: bold; padding: 5px 5px 5px 0;">Fuel Tank</td><!--
             --><td class="table-td-left">Variants</td><!--
             --><td style="padding: 5px 0 5px 5px;">{{{Cargo}}} / 60&nbsp;🕓</td><!--
             --><td class="table-td-right">{{{Variants}}}</td><!--
           --></tr>}}<!--              
           --></tr>}}<!--      
       --></table><!--
       --></table><!--
     --></div><!--
     --></div><!--
   --></div><!--
   --></div><!--
    {{#if:{{{Recipes|}}}|<hr style="height:3px; border:0">{{{Recipes}}}}}
--></div><!--
--></div><!--
--></div><!--
--></div><!--
-->{{#if: {{NAMESPACE}} || [[Category:Transports]]}}<!--
--></includeonly><noinclude>{{documentation}}</noinclude>
--></includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 11:25, 2 May 2023

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
U-shape Conveyor
“Optional item description goes here. It can be as long or short as you like.”
U-shape Conveyor.png

TODO: fix category link

Example usage:
{{Infobox transport
| Name          = U-shape Conveyor
| Image         = 
| Description   = Optional item description goes here. It can be as long or short as you like.
| Cargo         = Loose products
| Throughput    = 60
| Variants      = [[U-shape Coveyor II]]</br>[[U-shape Coveyor III]]
}}
The above text is transcluded from Template:Infobox transport/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:Infobox transport/doc. (View all subpages of this page.)