Template:Program: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 7: Line 7:
|ProgramType=
|ProgramType=
|OrgSponsor=
|OrgSponsor=
|TopOrganization=
|CreationLegislation=
|CreationLegislation=
|Purpose=
|Purpose=
Line 22: Line 23:
|ProgramType=Page
|ProgramType=Page
|OrgSponsor=Page
|OrgSponsor=Page
|CreationLegislation=Page
|TopOrganization=Page
|CreationLegislation=String
|Purpose=Wikitext string
|Purpose=Wikitext string
|Website=URL
|Website=URL
Line 35: Line 37:
|ProgramType={{{ProgramType|}}}
|ProgramType={{{ProgramType|}}}
|OrgSponsor={{{OrgSponsor|}}}
|OrgSponsor={{{OrgSponsor|}}}
|TopOrganization={{{TopOrganization|}}}
|CreationLegislation={{{CreationLegislation|}}}
|CreationLegislation={{{CreationLegislation|}}}
|Purpose={{{Purpose|}}}
|Purpose={{{Purpose|}}}
Line 43: Line 46:
|Historic={{{Historic|}}}
|Historic={{{Historic|}}}
}}
}}
 
Stored: {{#cargo_query:|tables=Program|fields=ProgramName|where=ProgramName="{{{ProgramName|}}}"|format=list}}
{{#ifeq: {{#cargo_query:|tables=Program|fields=ProgramName|where=ProgramName="{{{ProgramName|}}}"|format=list}} | No results
  | [[Category:Cargo Storage Failed]] <!-- If query equals "No results", add category -->
  | <!-- If query returns ProgramName or anything else, no 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;">
Line 54: Line 61:
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Sponsor Organization'''</th>
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Sponsor Organization'''</th>
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{#if:{{{OrgSponsor|}}}|[[{{{OrgSponsor}}}]]|N/A}}</td>
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{#if:{{{OrgSponsor|}}}|[[{{{OrgSponsor}}}]]|N/A}}</td>
</tr>
<tr>
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Top Organization'''</th>
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{#if:{{{TopOrganization|}}}|[[{{{TopOrganization}}}]]|N/A}}</td>
</tr>
</tr>
<tr>
<tr>
Line 81: Line 92:
<tr>
<tr>
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Historic'''</th>
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Historic'''</th>
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{#if:{{{Historic|}}}|Yes|No}}</td>
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{#ifeq:{{{Historic|}}}|Yes|Yes|No}}</td>
</tr>
</tr>
</table>
</table>