Jump to content

Template:Program: Difference between revisions

add if statement
(Undo revision 31429 by OpenBook (talk))
Tag: Undo
(add if statement)
Line 45: Line 45:
|Duration={{{Duration|}}}
|Duration={{{Duration|}}}
|Historic={{{Historic|}}}
|Historic={{{Historic|}}}
}}Stored: {{#cargo_query:|tables=Program|fields=ProgramName|where=ProgramName="{{{ProgramName|}}}"|format=list}}
}}
Stored: {{#cargo_query:|tables=Program|fields=ProgramName|where=ProgramName="{{{ProgramName|}}}"|format=list}}
{{#if: {{#cargo_query:|tables=Program|fields=ProgramName|where=ProgramName="{{{ProgramName|}}}"|format=list}}
  | <!-- If query returns ProgramName, no category added -->
  | [[Category:Cargo Storage Failed]] <!-- If query returns "No results", add category -->
}}
<div style="clear: both;"></div>
<div style="clear: both;"></div>
<table class="wikitable" style="border: 2px solid #BF0A30; float:right; width:300px; margin-top: 0px; padding: 5px;">
<table class="wikitable" style="border: 2px solid #BF0A30; float:right; width:300px; margin-top: 0px; padding: 5px;">