Template:VariableTemplate: Difference between revisions
Jump to navigation
Jump to search
Oostenrijr (talk | contribs) No edit summary |
Oostenrijr (talk | contribs) No edit summary |
||
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|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Source:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Source:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Source|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{BasedOn|}}}||| | {{#ifeq:{{{BasedOn|}}}||| | ||
<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> | |||
}} | }} | ||
{{#ifeq:{{{Reference|}}}||| | {{#ifeq:{{{Reference|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Reference:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Reference:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Reference|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Source2|}}}||| | {{#ifeq:{{{Source2|}}}||| | ||
Line 79: | Line 81: | ||
<tr><td class="PageWidthTableFirstCell">'''Values based on:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Values based on:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{BasedOn2|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Reference2|}}}||| | {{#ifeq:{{{Reference2|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Reference:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Reference:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{{Reference2|}}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{ | {{#ifeq:{{{Source3|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">''' | <tr><td class="PageWidthTableFirstCell">'''Source:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{ | {{{Source3|}}}</td></tr> | ||
}} | }} | ||
{{#ifeq:{{{ | {{#ifeq:{{{Reference3|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Source:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Source:'''</td> | ||
<td class="PageWidthTableRemainderCell"> | <td class="PageWidthTableRemainderCell"> | ||
{{ | {{{Reference3|}}}</td></tr> | ||
}} | }} | ||
</table><br/>{{#ifeq:{{{VariableType|}}} | </table><br/>{{#ifeq:{{{VariableType|}}} | ||
Line 157: | Line 159: | ||
* 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]][[HasTalk::Talk:{{FULLPAGENAME}}|]] | ||
<!-- property settings | |||
-->{{#ifeq:{{{Label|}}}|||{{#set:HasLabel={{{Label|}}}}} }}<!-- | |||
-->{{#ifeq:{{{ShortDescription|}}} | |||
||{{#set:HasShortDescription={{{Description|}}}}} | |||
|{{#set:HasShortDescription={{{ShortDescription|}}}}} | |||
}}<!-- | |||
-->{{#ifeq:{{{Description|}}}|||{{#set:HasDescription={{{Description|}}}}} }}<!-- | |||
-->{{#arraymap:{{{Dimension|}}} | |||
|,|xx | |||
|{{#set:HasDimension=xx}} | |||
|}}<!-- | |||
-->{{#ifeq:{{{Unit|}}}|||{{#set:HasDefaultUnit={{{Unit|}}}}} }}<!-- | |||
-->{{#ifeq:{{{VariableType|}}}|||{{#set:HasVariableType={{{VariableType|}}}}} }}<!-- | |||
-->{{#ifeq:{{{DriverGroup|}}}|||{{#set:DriverGroup={{{DriverGroup|}}}}} }}<!-- | |||
-->{{#ifeq:{{{Source|}}}|| | |||
{{#ifeq:{{{Source2|}}}|| | |||
{{#ifeq:{{{Source3|}}}|| | |||
|{{#arraymap:{{{Source3|}}}|;|xx|{{#set:HasSource=xx|}} }} | |||
}} | |||
|{{#arraymap:{{{Source2|}}}|;|xx|{{#set:HasSource=xx|}} }} | |||
}} | |||
|{{#arraymap:{{{Source|}}}|;|xx|{{#set:HasSource=xx|}} }} | |||
}}<!-- | |||
-->{{#ifeq:{{{BasedOn|}}}|| | |||
{{#ifeq:{{{BasedOn2|}}}|| | |||
|{{#arraymap:{{{BasedOn2|}}}|;|xx|{{#set:HasValuesBasedOn=xx}} |}} | |||
}} | |||
|{{#arraymap:{{{BasedOn|}}} |;|xx|{{#set:HasValuesBasedOn=xx}} |}} | |||
}}<!-- | |||
-->{{#ifeq:{{{Reference|}}}|| | |||
{{#ifeq:{{{Reference2|}}}|| | |||
{{#ifeq:{{{Reference3|}}}|| | |||
|{{#arraymap:{{{Reference3|}}} |;|xx|{{#set:HasReference=xx}} |}} | |||
}} | |||
|{{#arraymap:{{{Reference2|}}} |;|xx|{{#set:HasReference=xx}} |}} | |||
}} | |||
|{{#arraymap:{{{Reference|}}} |;|xx|{{#set:HasReference=xx}} |}} | |||
}}<!-- | |||
</includeonly> | </includeonly> |
Revision as of 15:01, 7 October 2016
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.