Jump to content

Template:EquipmentInfobox: Difference between revisions

From Elite Dangerous Wiki
m SpyTec moved page Template:Equipment Infobox to Template:EquipmentInfobox: Consistency with other Infobox names
m Remove unnecessary colons
Line 26: Line 26:
   <header>Information</header>
   <header>Information</header>
<data source="slot">
<data source="slot">
<label>Ship Module Slots:</label>
<label>Ship Module Slots</label>
<format>{{#switch:{{{slot|}}}
<format>{{#switch:{{{slot|}}}
         | Hardpoints | hardpoints = <table><td style="width:20%">[[File:EDO-Icon-Equipment-Hardpoints.png|25px|link=]]</td><td>Hardpoints</td></table>
         | Hardpoints | hardpoints = <table><td style="width:20%">[[File:EDO-Icon-Equipment-Hardpoints.png|25px|link=]]</td><td>Hardpoints</td></table>
Line 38: Line 38:
</data>
</data>
<data source="slot2">
<data source="slot2">
<label>Additional Ship<br/>Module Slots:</label>
<label>Additional Ship<br/>Module Slots</label>
<format>{{#switch:{{{slot2|}}}
<format>{{#switch:{{{slot2|}}}
         | Hardpoints | hardpoints = <table><td style="width:20%">[[File:EDO-Icon-Equipment-Hardpoints.png|25px|link=]]</td><td>Hardpoints</td></table>
         | Hardpoints | hardpoints = <table><td style="width:20%">[[File:EDO-Icon-Equipment-Hardpoints.png|25px|link=]]</td><td>Hardpoints</td></table>
Line 49: Line 49:
             </format>
             </format>
</data>
</data>
<data source="core_compartments"><label>Core Compartments:</label></data><!-- Only for Core Compartments -->
<data source="core_compartments"><label>Core Compartments</label></data><!-- Only for Core Compartments -->
<data source="classes"><label>Classes:</label></data>
<data source="classes"><label>Classes</label></data>
<data source="ratings"><label>Ratings:</label></data>
<data source="ratings"><label>Ratings</label></data>
<data source="refills"><label>Needed<br/>refills:</label></data>
<data source="refills"><label>Needed<br/>refills</label></data>
<data source="refills_cost"><label>Refills<br/>cost, qty:</label><format>{{{refills_cost|}}} Cr</format></data>
<data source="refills_cost"><label>Refills<br/>cost, qty</label><format>{{{refills_cost|}}} Cr</format></data>
<data source="key"><label>Default key:</label>
<data source="key"><label>Default key</label>
</data>
</data>
<data source="synthesis"><label>[[Synthesis]]:</label></data>
<data source="synthesis"><label>[[Synthesis]]</label></data>
<data source="technobroker"><label>[[Technology Broker]]:</label>
<data source="technobroker"><label>[[Technology Broker]]</label>
<format>{{#switch:{{{technobroker|}}}
<format>{{#switch:{{{technobroker|}}}
             | Yes | yes | + = <!-- {{#if: {{NAMESPACE}} || [[Category:Technology Broker]] }} --> Yes
             | Yes | yes | + = <!-- {{#if: {{NAMESPACE}} || [[Category:Technology Broker]] }} --> Yes
Line 71: Line 71:
<header>Engineering</header>
<header>Engineering</header>
<data source="engineering">
<data source="engineering">
<label> [[Engineers|Engineering]]: </label>
<label> [[Engineers|Engineering]]</label>
</data>
</data>
<group row-items="1" name="basic-assembly">
<group row-items="1" name="basic-assembly">
<data source="engineers">
<data source="engineers">
<format>
<format>
<div style="text-align: left;"><b>Engineers who can apply:</b><br/>
<div style="text-align: left;"><b>Engineers who can apply</b><br/>
{{#switch:{{{engineers|}}}
{{#switch:{{{engineers|}}}
            | {{{engineers|}}} = {{{engineers|}}}
            | {{{engineers|}}} = {{{engineers|}}}

Revision as of 12:36, 2 November 2022


Example usage:

{{Equipment_Infobox
 | name              = 
 | image             = 
 | imagecaption      = 
<!-- Section Features -->
 | guardian_module   = 
<!-- Section Information -->
 | slot              = 
 | slot2             = 
 | core_compartments = 
 | classes           = 
 | ratings           = 
 | refills           = 
 | refills_cost      = 
 | key               = 
 | synthesis         = 
 | technobroker      = 
<!-- Section Engineering -->
 | engineering       = 
 | engineers         = 
}}