-template i'm about to delete with
Bythmusters (talk | contribs)
m Infoboxes: Replaced Infobox documentation with Cargo
 
Line 5: Line 5:
If you see previewed templates wrapped in double curly braces, that means it is an required argument.
If you see previewed templates wrapped in double curly braces, that means it is an required argument.


Templates basically act as reusable building blocks that power everything from infoboxes to banners. Think of them like functions in code: you create them once, then use them anywhere with a simple call like <code><nowiki>{{TemplateName}}</nowiki></code>. It's efficient, consistent, and easy to maintain. Reduce, Reuse, Recycle.
Templates basically act as reusable building blocks that power everything from cargo to banners. Think of them like functions in code: you create them once, then use them anywhere with a simple call like <code><nowiki>{{TemplateName}}</nowiki></code>. It's efficient, consistent, and easy to maintain. Reduce, Reuse, Recycle.


Isn’t that cool?
Isn’t that cool?
Line 79: Line 79:
|}
|}


==Infoboxes==
==Cargo==
Previously, infobox templates were used, but are being phased out for new Cargo templates. See [[Projects:Cargo-complete]].
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
!Template Name!!Template Code!!Template Preview
!Template Name!!Template Code!!Template Preview
|-
|-
|[[Template:InfoboxProductLine|InfoboxProductLine]]||<pre>{{InfoboxProductLine}}</pre>||{{InfoboxProductLine}}
|[[Template:IncidentCargo|IncidentCargo]]||
<nowiki>{{IncidentCargo}}</nowiki>
|{{IncidentCargo}}
|-
|-
|[[Template:InfoboxCompany|InfoboxCompany]]||<pre>{{InfoboxCompany}}</pre>||{{InfoboxCompany}}
|[[Template:CompanyCargo|CompanyCargo]]||<pre>{{CompanyCargo}}</pre>||{{CompanyCargo}}
|-
|[[Template:ProductCargo|ProductCargo]]
|<pre>{{ProductCargo}}</pre>
|{{ProductCargo}}
|-
|[[Template:ProductLineCargo|ProductLineCargo]]
|<pre>{{ProductLineCargo}}</pre>
|{{ProductLineCargo}}
|}
|}