Schang1146 (talk | contribs)
Make optional fields blank if no value provided
Schang1146 (talk | contribs)
Remove duplicate (typo)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Important|This is a work in progress}}
This is the "Incident" template used with Cargo and the Wiki extension.
This is the "Incident" template used with Cargo and the Wiki extension.


Line 36: Line 35:
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly><!--
{{#cargo_store:_table=Incident
 
-->{{#cargo_store:_table=Incident
| Company        = {{{Company|}}}
| Company        = {{{Company|}}}
| StartDate      = {{{StartDate|}}}
| StartDate      = {{{StartDate|}}}
Line 47: Line 47:
| Type          = {{{Type|}}}
| Type          = {{{Type|}}}
| Description    = {{{Description|}}}
| Description    = {{{Description|}}}
}}
}}<!--
</includeonly>
 
// add category for incident year ("YYYY incidents")
// if StartDate not populated, will add category as in need of additional work
-->{{#if:{{{StartDate|}}}|[[Category:{{#time: Y|{{{StartDate|}}}}} incidents]]|[[Category:Articles with Incident Cargo missing an entry in the StartDate field]]}}<!--
 
// hacky MediaWiki HTML manipulation to prevent a <br /> tag from showing up
--><div></div></includeonly>