Help:Cargo: Difference between revisions

Line 82: Line 82:
}}</pre>
}}</pre>
To explain in another way, this template call uses {{temp|BATTD upgrade info}} with the parameter <code>|cost=400</code>. This means the value <code>400</code> is both displayed in the infobox and stored in the <code>cost</code> column of the page, since both the infobox and the cargo store will substitute <code><nowiki>{{{cost|}}}</nowiki></code> with the value of the <code>|cost=</code> parameter. This works the same for every parameter except <code>id</code>, which isn't displayed in the infobox, but is still specified in the template call and stored in the table since it's necessary for cargo queries with other upgrades that use this template.
To explain in another way, this template call uses {{temp|BATTD upgrade info}} with the parameter <code>|cost=400</code>. This means the value <code>400</code> is both displayed in the infobox and stored in the <code>cost</code> column of the page, since both the infobox and the cargo store will substitute <code><nowiki>{{{cost|}}}</nowiki></code> with the value of the <code>|cost=</code> parameter. This works the same for every parameter except <code>id</code>, which isn't displayed in the infobox, but is still specified in the template call and stored in the table since it's necessary for cargo queries with other upgrades that use this template.
You can see a list of Cargo rows that a specific page is storing by going to the "Cargo data" link in the toolbox.


===Attaching to a table===
===Attaching to a table===