Template:ComputerModelTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
<pre>
<pre>
{{ComputerModelTemplate
{{ComputerModelTemplate
|ModelType=
|Subject=
|Creator=
|Creator=
|Component=
|Component=
Line 16: Line 16:
{{#ifexpr: {{#if:{{{FrameworkRelation|}}}|1|0}} or {{#if:{{{Component|}}}|1|0}} or {{#if:{{{Creator|}}}|1|0}}|
{{#ifexpr: {{#if:{{{FrameworkRelation|}}}|1|0}} or {{#if:{{{Component|}}}|1|0}} or {{#if:{{{Creator|}}}|1|0}}|
{{PageWidthTableTemplate}}
{{PageWidthTableTemplate}}
{{#ifeq:{{{Subject|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Subject:'''</td>{{PageWidthTableRemainderCellTemplate}}[[HasSubject::{{{Subject|}}}]]</td></tr>
}}
{{#ifeq:{{{Description|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Description:'''</td>{{PageWidthTableRemainderCellTemplate}}[[HasDescription::{{{Description|}}}]]</td></tr>
{{#ifeq:{{{Description|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Description:'''</td>{{PageWidthTableRemainderCellTemplate}}[[HasDescription::{{{Description|}}}]]</td></tr>
}}
{{#ifeq:{{{Subject|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Subject:'''</td>{{PageWidthTableRemainderCellTemplate}}[[HasSubject::{{{Subject|}}}]]</td></tr>
}}
}}
{{#ifeq:{{{FrameworkRelation|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Relation with IMAGE framework:'''</td>{{PageWidthTableRemainderCellTemplate}}[[RelationWithIMAGEFramework::{{{FrameworkRelation|}}}]]</td></tr>
{{#ifeq:{{{FrameworkRelation|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Relation with IMAGE framework:'''</td>{{PageWidthTableRemainderCellTemplate}}[[RelationWithIMAGEFramework::{{{FrameworkRelation|}}}]]</td></tr>
}}
}}
{{#ifeq:{{{Component|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Implementation of component:'''</td>{{PageWidthTableRemainderCellTemplate}}{{#arraymap:{{{Component|}}}|;|x|[[IsImplementationOf::x]]|; }}</td></tr>
{{#ifeq:{{{Component|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Implements:'''</td>{{PageWidthTableRemainderCellTemplate}}{{#arraymap:{{{Component|}}}|;|x|[[IsImplementationOf::x]]|; }}</td></tr>
}}
}}
{{#ifeq:{{{Creator|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Developed by:'''</td>
{{#ifeq:{{{Creator|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Developed by:'''</td>
Line 30: Line 30:
{{PageWidthTableRemainderCellTemplate}}[[HasURL::{{{ExternalURL|}}}]]</td></tr>
{{PageWidthTableRemainderCellTemplate}}[[HasURL::{{{ExternalURL|}}}]]</td></tr>
}}
}}
{{#ifeq:{{{Reference|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Model reference(s):'''</td>
{{#ifeq:{{{Reference|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''References:'''</td>
{{PageWidthTableRemainderCellTemplate}}{{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]|; }}</td></tr>
{{PageWidthTableRemainderCellTemplate}}{{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]|; }}</td></tr>
}}
}}

Revision as of 09:44, 18 October 2013

This is the "ComputerModelTemplate" template. It should be called in the following format:

{{ComputerModelTemplate
|Subject=
|Creator=
|Component=
|FrameworkRelation=
|ExternalURL=
|Description=
}}

Edit the page to see the template text.