Template:VariableTemplate: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{{ExternalModel" to "{{{Model-Database") |
No edit summary |
||
(158 intermediate revisions by 10 users not shown) | |||
Line 10: | Line 10: | ||
|VariableType= | |VariableType= | ||
|DriverGroup= | |DriverGroup= | ||
|Source= | |Source= | ||
|BasedOn | |||
|Reference | |||
|Source2= | |Source2= | ||
| | |BasedOn2= | ||
|Reference2= | |||
|Source3= | |Source3= | ||
|Reference3= | |||
}} | }} | ||
</pre> | </pre> | ||
Line 23: | Line 26: | ||
<tr><td class="PageWidthTableFirstCell">'''Label:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Label:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Label|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{ShortDescription|}}}|| | {{#ifeq:{{{ShortDescription|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Short description:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Short description:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{ShortDescription|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Description|}}}||| | {{#ifeq:{{{Description|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Description:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Description:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Description|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Dimension|}}}||| | {{#ifeq:{{{Dimension|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Dimensions:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Dimensions:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Dimension|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Unit|}}}||| | {{#ifeq:{{{Unit|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Default unit:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Default unit:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Unit|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{VariableType|}}}||| | {{#ifeq:{{{VariableType|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Variable type:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Variable type:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{VariableType|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{DriverGroup|}}}||| | {{#ifeq:{{{DriverGroup|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Driver group:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Driver group:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{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|}}}{{{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|}}}{{{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|}}}{{{Reference2|}}}{{{Reference3|}}}</td></tr> | ||
}} | }} | ||
</table><br/> | |||
{{#ifeq:{{{VariableType|}}} | |||
|driver | |driver | ||
|Drivers are described in the {{#ask:[[Category:Component]][[FrameworkElementType::driver component]]|format= | |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: | ||
[[{{PAGENAME}}]] | |||
| mainLabel=Variable | | mainLabel=Variable | ||
| ? | | ?IsOutputOf = output | ||
| format=graph | | format=graph | ||
| graphname=outputvariable | |||
| graphcolor=yes | | graphcolor=yes | ||
| graphlink=yes | | graphlink=yes | ||
Line 114: | Line 96: | ||
| arrowdirection=TB | | arrowdirection=TB | ||
| relation=parent | | relation=parent | ||
| graphsize= | | graphsize== | ||
| limit= | | limit=2000 | ||
}} | }} | ||
|}}<br/> | |}}<br/> | ||
Line 123: | Line 105: | ||
|reverse=1}} >0 | |reverse=1}} >0 | ||
|''Variable is input of model component(s):''{{#ask: | |''Variable is input of model component(s):''{{#ask: | ||
[[ | [[{{PAGENAME}}]] | ||
| mainLabel=Variable | | mainLabel=Variable | ||
| ? | | ?IsInputFor = input | ||
| format=graph | | format=graph | ||
| graphname=inputvariable | |||
| graphcolor=yes | | graphcolor=yes | ||
| graphlink=yes | | graphlink=yes | ||
Line 141: | 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: | ||
[[ | [[{{PAGENAME}}]] | ||
| mainLabel=Variable | | mainLabel=Variable | ||
| ? | | ?IsParameterOf = input parameter of | ||
| format=graph | | format=graph | ||
| graphname=inputparameter | |||
| graphcolor=yes | | graphcolor=yes | ||
| graphlink=yes | | graphlink=yes | ||
Line 157: | Line 141: | ||
* Click on a box to open the model component. | * Click on a box to open the model component. | ||
[[Category:Variable]] | [[Category:Variable]] | ||
<!-- property settings--> | |||
[[ | {{#set:HasLabel={{{Label|}}} | ||
</includeonly> | |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 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.