Difference between revisions of "Template:InputOutputParameterTemplate"

From IMAGE
Jump to: navigation, search
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<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]][[-HasInputVar::{{PAGENAME}}]]|format=count}}
+
{{#ifexpr: {{PropertyTestTemplate|prop=HasInputVar|page={{FULLPAGENAME}} }}>0
|{{#ask:[[Category:Variable]][[-HasInputVar::{{PAGENAME}}]]
+
|{{#ask:[[Category:Variable]][[-HasInputVar::{{FULLPAGENAME}}]]
 
   |mainlabel=
 
   |mainlabel=
 
   |?HasDescription=Description
 
   |?HasDescription=Description
  |?-HasOutputVar=Is output of
 
 
   |?HasVariableType=Type
 
   |?HasVariableType=Type
   |userparam=3col
+
   |link=none
 
   |sort=HasVariableType,  
 
   |sort=HasVariableType,  
 
   |format=template
 
   |format=template
Line 21: Line 17:
 
   |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=template
 
   |format=template
   |template=TableMergedColumn3and4Template
+
   |template=ComponentParameterTemplate
   |intro={{TableIntroTemplate|20%|Parameters|60%|Description|20%|Source}}
+
   |intro={{TableIntroTemplate|20%|External datasets|60%|Description|20%|Source}}
 
   |outro=</table>
 
   |outro=</table>
 
   }}
 
   }}
|}}
+
|}}{{#ifexpr:{{PropertyTestTemplate|prop=HasOutputVar|page={{FULLPAGENAME}} }}>0
{{#ifexpr:
+
|<p>Output {{FULLPAGENAME}} component</p>
  {{#ask:[[Category:Variable]][[-HasOutputVar::{{PAGENAME}}]]|format=count}}  
+
{{#ask:[[Category:Variable]][[-HasOutputVar::{{FULLPAGENAME}}]]
|<h2>Outputs</h2>
 
  {{#ask:[[Category:Variable]][[-HasOutputVar::{{PAGENAME}}]]
 
 
   |mainlabel= Variabele
 
   |mainlabel= Variabele
 
   |?HasDescription=Description
 
   |?HasDescription=Description
 
   |?HasVariableType=Type
 
   |?HasVariableType=Type
 
   |link=none
 
   |link=none
 +
  |sort=HasVariableType
 +
  |order=desc
 
   |format=template
 
   |format=template
 
   |template=ComponentOutputTemplate
 
   |template=ComponentOutputTemplate
Line 48: Line 42:
 
   |outro=</table>
 
   |outro=</table>
 
   }}
 
   }}
|}}
+
|}}</includeonly>
</includeonly>
 

Revision as of 12:25, 17 June 2016