Template:VariableTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 75: | Line 75: | ||
</table><br/> | </table><br/> | ||
{{# | {{#ifeq:{{{VariableType|}}} | ||
| | |driver | ||
| | |Drivers are described in the {{#ask:[[Category:Component]][[FrameworkElementType::driver component]]|format=Plainlist}} component. | ||
| format= | |}} | ||
| | |||
}} | |||
{{# | {{#ifexpr:{{PropertyTestTemplate | ||
{{#ask: [[{{PAGENAME}}]] | |prop=HasOutputVar | ||
| mainLabel=Variable | |page={{PAGENAME}} | ||
| ? | |reverse=1}}>0 | ||
| | |''Variable is output of model component:''{{#ask: | ||
[[{{PAGENAME}}]] | |||
| mainLabel=Variable | |||
| ?IsOutputOf = output | |||
| format=graph | |||
| graphname=outputvariable | |||
| graphcolor=yes | |||
| graphlink=yes | |||
| graphlabel=yes | |||
| nodeshape=box | |||
| arrowdirection=TB | |||
| relation=parent | |||
| graphsize== | |||
| limit=2000 | |||
}} | |||
|}}<br/> | |||
{{#ifexpr:{{PropertyTestTemplate | |||
|prop=HasInputVar | |||
|page={{PAGENAME}} | |||
|reverse=1}} >0 | |||
|''Variable is input of model component(s):''{{#ask: | |||
[[{{PAGENAME}}]] | |||
| mainLabel=Variable | |||
| ?IsInputFor = input | |||
| format=graph | |||
| graphname=inputvariable | |||
| graphcolor=yes | |||
| graphlink=yes | |||
| graphlabel=yes | |||
| nodeshape=box | |||
| arrowdirection=TB | |||
| graphsize=9 | |||
| limit=200 | |||
}} | }} | ||
|}} | |||
{{#ifexpr:{{PropertyTestTemplate | |||
|prop=HasParameter | |||
|page={{PAGENAME}} | |||
|reverse=1}} > 0 | |||
|''External parameter is input of model component(s):''{{#ask: | |||
[[{{PAGENAME}}]] | |||
| mainLabel=Variable | |||
| ?IsParameterOf = input parameter of | |||
| format=graph | |||
| graphname=inputparameter | |||
| graphcolor=yes | |||
| graphlink=yes | |||
| graphlabel=yes | |||
| nodeshape=box | |||
| arrowdirection=TB | |||
| graphsize=9 | |||
| limit=200 | |||
}} | }} | ||
|}}<br/> | |||
{{ | * Click on a box to open the model component. | ||
[[Category:Variable]] | |||
<!-- property settings--> | |||
{{#set:HasLabel={{{Label|}}} | |||
|HasShortDescription={{{Description|}}} | |||
|HasDescription={{{Description|}}} | |||
|HasDimension={{{Dimension|}}}|+sep=, | |||
|HasDefaultUnit={{{Unit|}}} | |||
|HasVariableType={{{VariableType|}}} | |||
|DriverGroup={{{DriverGroup|}}} | |||
|HasSource={{{Source|}}}{{{Source2|}}}{{{Source3|}}}|+sep=; | |||
|HasValuesBasedOn={{{BasedOn|}}}{{{BasedOn2|}}}|+sep=; | |||
|HasReference={{{Reference|}}}{{{Reference2|}}}{{{Reference3|}}}|+sep=; | |||
}} | |||
{{#arraymap: | |||
{{#ask:[[HasInputVar::{{PAGENAME}}]][[Concept:AllComponentLevels]]|link=none|sep=;}} | |||
|;|xx | |||
|{{#set:IsInputFor=xx}} | |||
|}} | |||
{{#arraymap: | |||
{{#ask:[[HasOutputVar::{{PAGENAME}}]][[Concept:AllComponentLevels]]|link=none|sep=;}} | |||
|;|xx | |||
|{{#set:IsOutputOf=xx}} | |||
|}} | |||
{{#arraymap: | |||
{{#ask:[[HasParameter::{{PAGENAME}}]][[Concept:AllComponentLevels]]|link=none|sep=;}} | |||
|;|xx | |||
|{{#set:IsParameterOf=xx}} | |||
|}}</includeonly> | |||
Latest revision as of 15: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.