Difference between revisions of "Template:InputOutputParameterTemplate"

From IMAGE
Jump to: navigation, search
 
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
ComponentInputTemplate<includeonly>
+
<includeonly>__NOEDITSECTION__{{#ifexpr:
__NOEDITSECTION__
+
{{PropertyTestTemplate|prop=HasInputVar|page={{FULLPAGENAME}} }}+
{{#ifexpr:
+
{{PropertyTestTemplate|prop=HasParameter|page={{FULLPAGENAME}} }}+
  {{#ask:[[Category:Variable]][[HasVariableType::driver]][[-HasInputVar::{{PAGENAME}}]]|format=count}} or
+
{{PropertyTestTemplate|prop=HasOutputVar|page={{FULLPAGENAME}} }}> 0
  {{#ask:[[Category:Variable]][[HasVariableType::model (from/to model)]][[-HasInputVar::{{PAGENAME}}]]|format=count}} or
+
|<h2>Input/Output Table</h2><p>Input {{FULLPAGENAME}} component </p>
  {{#ask:[[Category:Variable]][[HasVariableType::parameter]][[-HasParameter::{{PAGENAME}}]]|format=count}} or
 
  {{#ask:[[Category:Variable]][[HasVariableType::historical variable]][[-HasInputVar::{{PAGENAME}}]]|format=count}}  
 
|<h2>Inputs</h2>
 
 
|}}
 
|}}
{{#ifexpr: {{#ask:[[Category:Variable]][[HasVariableType::driver]][[-HasInputVar::{{PAGENAME}}]]|format=count}}
+
{{#ifexpr: {{PropertyTestTemplate|prop=HasInputVar|page={{FULLPAGENAME}} }}>0
  |{{DriverGroupTemplate|{{PAGENAME}} |}}
+
|{{#ask:[[Category:Variable]][[-HasInputVar::{{FULLPAGENAME}}]]
|}}
+
   |mainlabel=
{{#ifexpr: {{#ask:[[Category:Variable]][[-HasInputVar::{{PAGENAME}}]]|format=count}}
 
|{{#ask:[[Category:Variable]][[-HasInputVar::{{PAGENAME}}]]
 
   |mainlabel=Variable
 
 
   |?HasDescription=Description
 
   |?HasDescription=Description
   |?-HasOutputVar=Is output of
+
   |?HasVariableType=Type
   |userparam=3col
+
   |link=none
   |sort=HasVariableType,mainlabel
+
   |sort=HasVariableType  
   |format=template
+
   |format=Plainlist
   |template=TableStandardRowTemplate
+
   |template=ComponentInputTemplate
   |intro={{TableIntroTemplate|20%|IMAGE model divers and variables|60%|Description|20%|Output of}}
+
   |intro={{TableIntroTemplate|20%|IMAGE model drivers and variables|60%|Description|20%|Source}}
 
   |outro=</table>
 
   |outro=</table>
 
   }}
 
   }}
|}}
+
|}}{{#ifexpr:{{PropertyTestTemplate|prop=HasParameter|page={{FULLPAGENAME}} }}>0
{{#ifexpr:{{#ask:[[Category:Variable]][[HasVariableType::parameter]][[-HasParameter::{{PAGENAME}}]]|format=count}}
+
|{{#ask:[[Category:Variable]][[HasVariableType::external parameter]][[-HasParameter::{{FULLPAGENAME}}]]
|{{#ask:[[Category:Variable]][[HasVariableType::parameter]][[-HasParameter::{{PAGENAME}}]]
 
 
   |mainlabel= Parameter
 
   |mainlabel= Parameter
 
   |?HasDescription=Description
 
   |?HasDescription=Description
 
   |?HasSource=Source
 
   |?HasSource=Source
 
   |?HasValuesBasedOn = basedon
 
   |?HasValuesBasedOn = basedon
  |userparam=3col
+
   |format=Plainlist
   |format=template
+
   |template=ComponentParameterTemplate
   |template=TableMergedColumn3and4Template
+
   |intro={{TableIntroTemplate|20%|External datasets|60%|Description|20%|Source}}
   |intro={{TableIntroTemplate|20%|Parameters|60%|Description|20%|Source}}
 
 
   |outro=</table>
 
   |outro=</table>
 
   }}
 
   }}
|}}
+
|}}{{#ifexpr:{{PropertyTestTemplate|prop=HasOutputVar|page={{FULLPAGENAME}} }}>0
{{#ifexpr: {{#ask:[[Category:Variable]][[HasVariableType::historical variable]][[-HasInputVar::{{PAGENAME}}]]|format=count}}
+
|<p>Output {{FULLPAGENAME}} component</p>
|{{#ask:[[Category:Variable]][[HasVariableType::historical variable]][[-HasInputVar::{{PAGENAME}}]]
+
{{#ask:[[Category:Variable]][[-HasOutputVar::{{FULLPAGENAME}}]]
   |mainlabel= historical variable
+
   |mainlabel= Variabele
 
   |?HasDescription=Description
 
   |?HasDescription=Description
   |?HasSource=Source
+
   |?HasVariableType=Type
   |userparam=3col
+
   |link=none
   |format=template
+
  |sort=HasVariableType
   |template=TableStandardRowTemplate
+
  |order=desc
   |intro={{TableIntroTemplate|20%|Historical variable|60%|Description|20%|Source}}
+
   |format=Plainlist
 +
   |template=ComponentOutputTemplate
 +
   |intro={{TableIntroTemplate|20%|IMAGE model variables|60%|Description|20%|Use}}
 
   |outro=</table>
 
   |outro=</table>
 
   }}
 
   }}
|}}
+
|}}</includeonly>
{{#ifexpr:
 
  {{#ask:[[Category:Variable]][[HasVariableType::model (from/to model)]][[-HasOutputVar::{{PAGENAME}}]]|format=count}} or
 
  {{#ask:[[Category:Variable]][[HasVariableType::model (end-indicator)]][[-HasOutputVar::{{PAGENAME}}]]|format=count}}
 
|<h2>Outputs</h2>
 
|}}
 
{{#ifexpr: {{#ask:[[Category:Variable]][[HasVariableType::model (from/to model)]][[-HasOutputVar::{{PAGENAME}}]]|format=count}}
 
|{{#ask:[[Category:Variable]][[HasVariableType::model (from/to model)]][[-HasOutputVar::{{PAGENAME}}]]
 
  |mainlabel= Variabele
 
  |?HasDescription=Description
 
  |?-HasInputVar=Is used in
 
  |userparam=3col
 
  |format=template
 
  |template=TableStandardRowTemplate
 
  |intro={{TableIntroTemplate|20%|IMAGE model variables|60%|Description|20%|Is used in}}
 
  |outro=</table>
 
  }}|}}{{#ifexpr: {{#ask:[[Category:Variable]][[HasVariableType::model (end-indicator)]][[-HasOutputVar::{{PAGENAME}}]]|format=count}}|{{#ask:[[Category:Variable]][[HasVariableType::model (end-indicator)]][[-HasOutputVar::{{PAGENAME}}]]
 
  |mainlabel= Variabele
 
  |?HasDescription=Description
 
  |userparam=2col
 
  |format=template
 
  |template=TableStandardRowTemplate
 
  |intro={{TableIntroTemplate|20%|End-indicators|80%|Description}}
 
  |outro=</table>
 
  }}|}}
 
</includeonly>
 

Latest revision as of 10:18, 20 March 2020