Template:VariableTemplate: Difference between revisions
Jump to navigation
Jump to search
PascaldeVink (talk | contribs) m (Text replace - "{{PageWidthTableRemainderCellTemplate}}" to "<td class="PageWidthTableRemainderCell"> ") |
No edit summary |
||
(226 intermediate revisions by 14 users not shown) | |||
Line 10: | Line 10: | ||
|VariableType= | |VariableType= | ||
|DriverGroup= | |DriverGroup= | ||
|Source= | |Source= | ||
|BasedOn | |||
|Reference | |||
|Source2= | |Source2= | ||
| | |BasedOn2= | ||
|Reference2= | |||
|Source3= | |||
|Reference3= | |||
}} | }} | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<table class="PageWidthTableTemplate"> | |||
{{#ifeq:{{{Label|}}}||| | {{#ifeq:{{{Label|}}}||| | ||
<tr> | <tr><td class="PageWidthTableFirstCell">'''Label:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Label|}}}</td></tr> | |||
}} | |||
{{#ifeq:{{{ShortDescription|}}}||| | |||
<tr><td class="PageWidthTableFirstCell">'''Short description:'''</td> | |||
<td class="PageWidthTableRemainderCell"> | |||
{{{ShortDescription|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Description|}}}||| | {{#ifeq:{{{Description|}}}||| | ||
<tr> | <tr><td class="PageWidthTableFirstCell">'''Description:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Description|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Dimension|}}}||| | {{#ifeq:{{{Dimension|}}}||| | ||
<tr> | <tr><td class="PageWidthTableFirstCell">'''Dimensions:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Dimension|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Unit|}}}||| | {{#ifeq:{{{Unit|}}}||| | ||
<tr> | <tr><td class="PageWidthTableFirstCell">'''Default unit:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Unit|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{VariableType|}}}||| | {{#ifeq:{{{VariableType|}}}||| | ||
<tr> | <tr><td class="PageWidthTableFirstCell">'''Variable type:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{VariableType|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{DriverGroup|}}}||| | {{#ifeq:{{{DriverGroup|}}}||| | ||
<tr> | <tr><td class="PageWidthTableFirstCell">'''Driver group:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{DriverGroup|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Source|}}}||| | {{#ifeq:{{{Source|}}}{{{Source2|}}}{{{Source3|}}}||| | ||
<tr> | <tr><td class="PageWidthTableFirstCell">'''Source:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Source|}}}{{{Source2|}}}{{{Source3|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{ | {{#ifeq:{{{BasedOn|}}}{{{BasedOn2|}}}||| | ||
<tr> | <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> | <tr><td class="PageWidthTableFirstCell">'''Reference:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Reference|}}}{{{Reference2|}}}{{{Reference3|}}}</td></tr> | |||
}} | }} | ||
</table><br/> | </table><br/> | ||
{{#ask:[[Category: | {{#ifeq:{{{VariableType|}}} | ||
[[ | |driver | ||
[[ | |Drivers are described in the {{#ask:[[Category:Component]][[FrameworkElementType::driver component]]|format=Plainlist}} component. | ||
| mainLabel=Variable | |}} | ||
| ? | |||
| | {{#ifexpr:{{PropertyTestTemplate | ||
| ? | |prop=HasOutputVar | ||
| format=graph | |page={{PAGENAME}} | ||
| graphcolor=yes | |reverse=1}}>0 | ||
| graphlink=yes | |''Variable is output of model component:''{{#ask: | ||
| graphlabel=yes | [[{{PAGENAME}}]] | ||
| nodeshape=box | | mainLabel=Variable | ||
| arrowdirection=TB | | ?IsOutputOf = output | ||
| format=graph | |||
| graphsize= | | graphname=outputvariable | ||
| limit=200 | | 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]] | [[Category:Variable]] | ||
[[ | <!-- property settings--> | ||
[[ | {{#set:HasLabel={{{Label|}}} | ||
|HasShortDescription={{{Description|}}} | |||
</includeonly> | |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.