Template:Program: Difference between revisions
(add if statement) |
No edit summary |
||
| Line 47: | Line 47: | ||
}} | }} | ||
Stored: {{#cargo_query:|tables=Program|fields=ProgramName|where=ProgramName="{{{ProgramName|}}}"|format=list}} | Stored: {{#cargo_query:|tables=Program|fields=ProgramName|where=ProgramName="{{{ProgramName|}}}"|format=list}} | ||
{{# | {{#ifeq: {{#cargo_query:|tables=Program|fields=ProgramName|where=ProgramName="{{{ProgramName|}}}"|format=list}} | {{{ProgramName|}}} | ||
| <!-- If query | | <!-- If query equals ProgramName, storage succeeded, no category --> | ||
| [[Category:Cargo Storage Failed]] <!-- If query | | [[Category:Cargo Storage Failed]] <!-- If query does not match ProgramName (e.g., "No results"), add category --> | ||
}} | }} | ||
<div style="clear: both;"></div> | <div style="clear: both;"></div> | ||
Revision as of 06:10, 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.