Template:VariableTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(154 intermediate revisions by 10 users not shown)
Line 10: Line 10:
|VariableType=
|VariableType=
|DriverGroup=
|DriverGroup=
|ExternalModelDriver=
|Source=
|Source=
|BasedOn
|Reference
|Source2=
|Source2=
|Model-Database=
|BasedOn2=
|Reference2=
|Source3=
|Source3=
|Reference3=
}}
}}
</pre>
</pre>
Line 55: Line 58:
{{{DriverGroup|}}}</td></tr>
{{{DriverGroup|}}}</td></tr>
}}
}}
{{#ifeq:{{{Source|}}}|||
{{#ifeq:{{{Source|}}}{{{Source2|}}}{{{Source3|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Source:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Source:'''</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
{{{Source|}}}</td></tr>
{{{Source|}}}{{{Source2|}}}{{{Source3|}}}</td></tr>
}}
}}
{{#ifeq:{{{BasedOn|}}}|||
{{#ifeq:{{{BasedOn|}}}{{{BasedOn2|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Values based on:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Values based on:'''</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
{{{BasedOn|}}}</td></tr>
{{{BasedOn|}}}{{{BasedOn2|}}}</td></tr>
}}
}}
{{#ifeq:{{{Reference|}}}|||
{{#ifeq:{{{Reference|}}}{{{Reference2|}}}{{{Reference3|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Reference:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Reference:'''</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
{{{Reference|}}}</td></tr>
{{{Reference|}}}{{{Reference2|}}}{{{Reference3|}}}</td></tr>
}}
}}
{{#ifeq:{{{Source2|}}}|||
</table><br/>
<tr><td class="PageWidthTableFirstCell">'''Source:'''</td>
 
<td class="PageWidthTableRemainderCell">
{{#ifeq:{{{VariableType|}}}
{{#arraymap:{{{Source2|}}}|;|x|[[HasSource::x]]}}</td></tr>
}}
{{#ifeq:{{{BasedOn2|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Values based on:'''</td>
<td class="PageWidthTableRemainderCell">
{{{BasedOn2|}}}</td></tr>
}}
{{#ifeq:{{{Reference2|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Reference:'''</td>
<td class="PageWidthTableRemainderCell">
{{{Reference2|}}}</td></tr>
}}
{{#ifeq:{{{Model-Database|}}}|||
<tr><td class="PageWidthTableFirstCell">'''External model:'''</td>
<td class="PageWidthTableRemainderCell">
{{{Model-Database|}}}</td></tr>
}}
{{#ifeq:{{{Source3|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Source:'''</td>
<td class="PageWidthTableRemainderCell">
{{{Source3|}}}</td></tr>
}}
{{#ifeq:{{{Reference3|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Source:'''</td>
<td class="PageWidthTableRemainderCell">
{{{Reference3|}}}</td></tr>
}}
</table><br/>{{#ifeq:{{{VariableType|}}}
  |driver
  |driver
  |Drivers are described in the {{#ask:[[Category:Component]][[FrameworkElementType::driver component]]|format=list}} component.
  |Drivers are described in the {{#ask:[[Category:Component]][[FrameworkElementType::driver component]]|format=Plainlist}} component.
}}{{#ifexpr:{{PropertyTestTemplate
|}}
 
{{#ifexpr:{{PropertyTestTemplate
   |prop=HasOutputVar
   |prop=HasOutputVar
   |page={{PAGENAME}}
   |page={{PAGENAME}}
   |reverse=1}}>0
   |reverse=1}}>0
   |''Variable is output of model component:''{{#ask:
   |''Variable is output of model component:''{{#ask:
  [[Category:Variable]][[HasPageName::{{PAGENAME}}]][[-HasOutputVar::+]]  
[[{{PAGENAME}}]]  
  | mainLabel=Variable
  | mainLabel=Variable
  | ?-HasOutputVar = output
  | ?IsOutputOf = output
  | format=graph
  | format=graph
| graphname=outputvariable
  | graphcolor=yes
  | graphcolor=yes
  | graphlink=yes
  | graphlink=yes
Line 118: Line 96:
  | arrowdirection=TB
  | arrowdirection=TB
  | relation=parent
  | relation=parent
  | graphsize=4
  | graphsize==
  | limit=200
  | limit=2000
  }}
  }}
|}}<br/>
|}}<br/>
Line 127: Line 105:
   |reverse=1}} >0
   |reverse=1}} >0
   |''Variable is input of model component(s):''{{#ask:
   |''Variable is input of model component(s):''{{#ask:
[[Category:Variable]][[HasPageName::{{PAGENAME}}]][[-HasInputVar::+]]
  [[{{PAGENAME}}]]
   | mainLabel=Variable
   | mainLabel=Variable
   | ?-HasInputVar = input  
   | ?IsInputFor = input  
   | format=graph
   | format=graph
  | graphname=inputvariable
   | graphcolor=yes
   | graphcolor=yes
   | graphlink=yes
   | graphlink=yes
Line 145: Line 124:
   |reverse=1}} > 0  
   |reverse=1}} > 0  
   |''External parameter is input of model component(s):''{{#ask:
   |''External parameter is input of model component(s):''{{#ask:
[[Category:Variable]][[HasPageName::{{PAGENAME}}]][[-HasParameter::+]]
  [[{{PAGENAME}}]]
   | mainLabel=Variable
   | mainLabel=Variable
   | ?-HasParameter = input parameter of
   | ?IsParameterOf = input parameter of
   | format=graph
   | format=graph
  | graphname=inputparameter
   | graphcolor=yes
   | graphcolor=yes
   | graphlink=yes
   | graphlink=yes
Line 160: Line 140:


* Click on a box to open the model component.
* Click on a box to open the model component.
[[Category:Variable]][[HasTalk::Talk:{{FULLPAGENAME}}|]]
[[Category:Variable]]
<!-- property settings
<!-- property settings-->
-->{{#set:HasLabel={{{Label|}}} }}<!--
{{#set:HasLabel={{{Label|}}}
-->{{#ifeq:{{{ShortDescription|}}}
  |HasShortDescription={{{Description|}}}
    ||{{#set:HasShortDescription={{{Description|}}} }}
  |HasDescription={{{Description|}}}
|{{#set:HasShortDescription={{{ShortDescription|}}} }}
  |HasDimension={{{Dimension|}}}|+sep=,
    }}<!--
  |HasDefaultUnit={{{Unit|}}}
-->{{#set:HasDescription={{{Description|}}} }}<!--
  |HasVariableType={{{VariableType|}}}
-->{{#set:HasDimension={{{Dimension|}}}|+sep=,}}<!--
  |DriverGroup={{{DriverGroup|}}}
-->{{#set:HasDefaultUnit={{{Unit|}}} }}<!--
  |HasSource={{{Source|}}}{{{Source2|}}}{{{Source3|}}}|+sep=;
-->{{#set:HasVariableType={{{VariableType|}}} }}<!--
  |HasValuesBasedOn={{{BasedOn|}}}{{{BasedOn2|}}}|+sep=;
-->{{#set:HasDriverGroup={{{DriverGroup|}}} }}<!--
  |HasReference={{{Reference|}}}{{{Reference2|}}}{{{Reference3|}}}|+sep=;
-->{{#set:HasSource=
}}
        {{#ifeq:{{{Source|}}}||
  {{#arraymap:
          {{#ifeq:{{{Source2|}}}||
    {{#ask:[[HasInputVar::{{PAGENAME}}]][[Concept:AllComponentLevels]]|link=none|sep=;}}
    {{#ifeq:{{{Source3|}}}||
    |;|xx
      |{{{Source3|}}}  
    |{{#set:IsInputFor=xx}}
    }}
    |}}
    |{{{Source2|}}}  
  {{#arraymap:
  }}
    {{#ask:[[HasOutputVar::{{PAGENAME}}]][[Concept:AllComponentLevels]]|link=none|sep=;}}
  |{{{Source|}}}
    |;|xx
}}
    |{{#set:IsOutputOf=xx}}
}}<!--
    |}}
-->{{#set:HasValuesBasedOn=
  {{#arraymap:
        {{#ifeq:{{{BasedOn|}}}||
    {{#ask:[[HasParameter::{{PAGENAME}}]][[Concept:AllComponentLevels]]|link=none|sep=;}}
          {{#ifeq:{{{BasedOn2|}}}||
    |;|xx
    |{{{BasedOn2|}}}  
    |{{#set:IsParameterOf=xx}}
  }}
    |}}</includeonly>
  |{{{BasedOn|}}}
}}|+sep=;
}}<!--
-->{{#set:HasReference=
        {{#ifeq:{{{Reference|}}}||
          {{#ifeq:{{{Reference2|}}}||
    {{#ifeq:{{{Reference3|}}}||
      |{{{Reference3|}}}  
    }}
    |{{{Reference2|}}}
  }}
  |{{{Reference|}}}
}}|+sep=;
}}<!--
-->{{#set:HasModelDatabase={{{Model-Database|}}} }}
</includeonly>

Latest revision as of 16:19, 17 April 2024

This is the "VariableTemplate" template. It should be called in the following format:

{{VariableTemplate
|Label=
|Description=
|Dimension=
|Unit=
|VariableType=
|DriverGroup=
|Source=
|BasedOn
|Reference
|Source2=
|BasedOn2=
|Reference2=
|Source3=
|Reference3=
}}

Edit the page to see the template text.