Difference between revisions of "Template:Infobox storage"

From Captain of Industry Wiki
Jump to: navigation, search
(+auto-cat, make cargo capable of detecting existing categories and auto-link if found)
m (Addition of game_object_type variable for future footer usage)
 
(3 intermediate revisions by one other user not shown)
Line 2: Line 2:
--><div class="infobox-wrapper"><!--
--><div class="infobox-wrapper"><!--
--><div class="outer-box"><!--
--><div class="outer-box"><!--
   --><div class="inner-title"><!--
   --><div class="inner-header"><!--
        -->{{#if: {{{Name|}}} | {{{Name}}} | Unknown Item }}<!--
    --><div class="title"><!--
      -->{{#if: {{{Name|}}}<!--
        -->| {{{Name}}}<!--
          ** This variable is used in footer template **
          -->{{#vardefine:game_object_type|storage}}<!--
        -->| Unknown Storage }}<!--
    --></div><!--
   --></div><!--
   --></div><!--
   --><div class="inner-main"><!--
   --><div class="inner-main"><!--
Line 18: Line 24:
             --><td class="table-td-left">Cargo</td><!--
             --><td class="table-td-left">Cargo</td><!--
             --><td class="table-td-right"><!--
             --><td class="table-td-right"><!--
               -->{{#ifexist: Category:{{{Cargo}}} | [[:Category:{{{Cargo}}}|{{{Cargo}}}]] | {{{Cargo}}}}}</td><!--
               -->{{#ifexist: Category:{{{Cargo}}} | [[:Category:{{{Cargo}}}|{{{Cargo}}}]] | {{{Cargo}}}}}<!--
            --></td><!--
           --></tr>}}<!--
           --></tr>}}<!--
         -->{{#if:{{{CargoSize|}}}|<!--
         -->{{#if:{{{CargoSize|}}}|<!--

Latest revision as of 11:21, 2 May 2023

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Loose Storage
“Optional item description goes here. It can be as long or short as you like.”
Loose Storage.png
CargoLoose products
Cargo Size180
VariantsLoose Storage II
Example usage:
{{Infobox storage
| Name          = Loose Storage
| Image         = 
| Description   = Optional item description goes here. It can be as long or short as you like.
| Cargo         = Loose products
| CargoSize     = 180
| Variants      = [[Loose Storage II]]
}}
The above text is transcluded from Template:Infobox storage/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 storage/doc. (View all subpages of this page.)