Template:VariableTemplate: Difference between revisions
Jump to navigation
Jump to search
PascaldeVink (talk | contribs) m (Text replace - "{{PageWidthTableFirstCellTemplate}}" to "<td class="PageWidthTableFirstCell">") |
PascaldeVink (talk | contribs) m (Text replace - "PageWidthTableRemainderCellTemplate" to "<td class="PageWidthTableRemainderCell"> ") |
||
Line 21: | Line 21: | ||
{{#ifeq:{{{Label|}}}||| | {{#ifeq:{{{Label|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Label:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Label:'''</td> | ||
{{ | {{<td class="PageWidthTableRemainderCell"> | ||
}}[[HasLabel::{{{Label|}}}]]</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Description|}}}||| | {{#ifeq:{{{Description|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Description:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Description:'''</td> | ||
{{ | {{<td class="PageWidthTableRemainderCell"> | ||
}}[[HasDescription::{{{Description|}}}]]</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Dimension|}}}||| | {{#ifeq:{{{Dimension|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Dimensions:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Dimensions:'''</td> | ||
{{ | {{<td class="PageWidthTableRemainderCell"> | ||
}}{{#arraymap:{{{Dimension|}}}|,|x|[[HasDimension::x]]}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Unit|}}}||| | {{#ifeq:{{{Unit|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Default unit:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Default unit:'''</td> | ||
{{ | {{<td class="PageWidthTableRemainderCell"> | ||
}}[[HasDefaultUnit::{{{Unit|}}}]]</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{VariableType|}}}||| | {{#ifeq:{{{VariableType|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Variable type:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Variable type:'''</td> | ||
{{ | {{<td class="PageWidthTableRemainderCell"> | ||
}}[[HasVariableType::{{{VariableType|}}}]]</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{DriverGroup|}}}||| | {{#ifeq:{{{DriverGroup|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Driver group:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Driver group:'''</td> | ||
{{ | {{<td class="PageWidthTableRemainderCell"> | ||
}}[[DriverGroup::{{{DriverGroup|}}}]]</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Source|}}}||| | {{#ifeq:{{{Source|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Source:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Source:'''</td> | ||
{{ | {{<td class="PageWidthTableRemainderCell"> | ||
}}[[HasSource::{{{Source|}}}]]</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Source2|}}}||| | {{#ifeq:{{{Source2|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Source:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Source:'''</td> | ||
{{ | {{<td class="PageWidthTableRemainderCell"> | ||
}}[[HasSource::{{{Source2|}}}]]</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Reference|}}}||| | {{#ifeq:{{{Reference|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''Reference:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Reference:'''</td> | ||
{{ | {{<td class="PageWidthTableRemainderCell"> | ||
}}{{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]}}</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{VariableType|}}}|model| | {{#ifeq:{{{VariableType|}}}|model| | ||
<tr><td class="PageWidthTableFirstCell">'''Impact indicator:'''</td> | <tr><td class="PageWidthTableFirstCell">'''Impact indicator:'''</td> | ||
{{ | {{<td class="PageWidthTableRemainderCell"> | ||
}}[[IsImpactIndicator::{{{IsImpactIndicator|false}}}]]</td></tr>| | |||
}} | }} | ||
{{#ifeq:{{{ExternalModel|}}}||| | {{#ifeq:{{{ExternalModel|}}}||| | ||
<tr><td class="PageWidthTableFirstCell">'''External model:'''</td> | <tr><td class="PageWidthTableFirstCell">'''External model:'''</td> | ||
{{ | {{<td class="PageWidthTableRemainderCell"> | ||
}}{{#arraymap:{{{ExternalModel|}}}|;|y|[[HasExternalModel::y]]|; }}</td></tr> | |||
}} | }} | ||
</table><br/> | </table><br/> |
Revision as of 15:13, 13 December 2013
This is the "VariableTemplate" template. It should be called in the following format:
{{VariableTemplate |Label= |Description= |Dimension= |Unit= |VariableType= |DriverGroup= |ExternalModelDriver= |Source= |Source2= |ExternalModel= }}
Edit the page to see the template text.