Template:Program: Difference between revisions
No edit summary |
No edit summary |
||
(21 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
|ProgramType= | |ProgramType= | ||
|OrgSponsor= | |OrgSponsor= | ||
| | |TopOrganization= | ||
|CreationLegislation= | |||
|Purpose= | |||
|Website= | |Website= | ||
| | |ProgramStart= | ||
|InitialFunding= | |||
|Duration= | |||
|Historic= | |||
}} | }} | ||
</pre> | </pre> | ||
==Cargo declaration== | ==Cargo declaration== | ||
{{#cargo_declare:_table=Program | {{#cargo_declare:_table=Program | ||
|ProgramName=Page | |ProgramName=Page | ||
|ProgramType=Page | |ProgramType=Page | ||
|OrgSponsor=Page | |OrgSponsor=Page | ||
| | |TopOrganization=Page | ||
|CreationLegislation=String | |||
|Purpose=Wikitext string | |||
|Website=URL | |Website=URL | ||
|CreationLegislation= | |ProgramStart=String | ||
|InitialFunding=String | |||
|Duration=String | |||
|Historic=Boolean | |||
}} | |||
</noinclude><includeonly> | |||
{{#cargo_store:_table=Program | |||
|ProgramName={{{ProgramName|}}} | |||
|ProgramType={{{ProgramType|}}} | |||
|OrgSponsor={{{OrgSponsor|}}} | |||
|TopOrganization={{{TopOrganization|}}} | |||
|CreationLegislation={{{CreationLegislation|}}} | |||
|Purpose={{{Purpose|}}} | |||
|Website={{{Website|}}} | |||
|ProgramStart={{{ProgramStart|}}} | |||
|InitialFunding={{{InitialFunding|}}} | |||
|Duration={{{Duration|}}} | |||
|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> | |||
<table class="wikitable" style="border: 2px solid #BF0A30; float:right; width:300px; margin-top: 0px; padding: 5px;"> | |||
<caption style="caption-side: top;">{{#if:{{{ProgramName|}}}|{{{ProgramName}}}|Program}}</caption> | |||
<tr> | |||
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Type'''</th> | |||
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{#if:{{{ProgramType|}}}|[[{{{ProgramType}}}]]|N/A}}</td> | |||
</tr> | |||
<tr> | |||
<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> | |||
</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> | |||
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Creation Legislation'''</th> | |||
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{#if:{{{CreationLegislation|}}}|[[{{{CreationLegislation}}}]]|N/A}}</td> | |||
</tr> | |||
<tr> | |||
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Website'''</th> | |||
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{#if:{{{Website|}}}|[{{{Website}}} Website]|N/A}}</td> | |||
</tr> | |||
<tr> | |||
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Purpose'''</th> | |||
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{{Purpose|}}}</td> | |||
</tr> | |||
<tr> | |||
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Program Start'''</th> | |||
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{{ProgramStart|}}}</td> | |||
</tr> | |||
<tr> | |||
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Initial Funding'''</th> | |||
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{{InitialFunding|}}}</td> | |||
</tr> | |||
<tr> | |||
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Duration'''</th> | |||
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{{Duration|}}}</td> | |||
</tr> | |||
<tr> | |||
<th style="background:#002868; color:#FFFFFF; padding: 5px;">'''Historic'''</th> | |||
<td style="background:#FFFFFF; color:#000000; padding: 5px;">{{#ifeq:{{{Historic|}}}|Yes|Yes|No}}</td> | |||
</tr> | |||
</table> | |||
[[Category:Programs]] | |||
</includeonly><noinclude> | |||
==Table details== | ==Table details== | ||
This section provides additional details about the template usage and structure. | |||
</noinclude> | </noinclude> | ||
Latest revision as of 07:26, 12 March 2025
This is the "Program" template. It should be called in the following format:
{{Program |ProgramName= |ProgramType= |OrgSponsor= |TopOrganization= |CreationLegislation= |Purpose= |Website= |ProgramStart= |InitialFunding= |Duration= |Historic= }}
Cargo declaration
This template defines the table "Program". View table.
Table details
This section provides additional details about the template usage and structure.