Template:ComputerModelTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
m (Text replace - "{{PageWidthTableTemplate}}" to "<table class="PageWidthTableTemplate">")
m (Text replace - "{{PageWidthTableFirstCellTemplate}}" to "<td class="PageWidthTableFirstCell">")
Line 17: Line 17:
{{#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}}|
<table class="PageWidthTableTemplate">
<table class="PageWidthTableTemplate">
{{#ifeq:{{{Subject|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Subject:'''</td><td class="PageWidthTableRemainderCell">
{{#ifeq:{{{Subject|}}}|||<tr><td class="PageWidthTableFirstCell">'''Subject:'''</td><td class="PageWidthTableRemainderCell">
[[HasSubject::{{{Subject|}}}]]</td></tr>
[[HasSubject::{{{Subject|}}}]]</td></tr>
}}
}}
{{#ifeq:{{{Description|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Description:'''</td><td class="PageWidthTableRemainderCell">
{{#ifeq:{{{Description|}}}|||<tr><td class="PageWidthTableFirstCell">'''Description:'''</td><td class="PageWidthTableRemainderCell">
[[HasDescription::{{{Description|}}}]]</td></tr>
[[HasDescription::{{{Description|}}}]]</td></tr>
}}
}}
{{#ifeq:{{{FrameworkRelation|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Relation with IMAGE framework:'''</td><td class="PageWidthTableRemainderCell">
{{#ifeq:{{{FrameworkRelation|}}}|||<tr><td class="PageWidthTableFirstCell">'''Relation with IMAGE framework:'''</td><td class="PageWidthTableRemainderCell">
[[RelationWithIMAGEFramework::{{{FrameworkRelation|}}}]]</td></tr>
[[RelationWithIMAGEFramework::{{{FrameworkRelation|}}}]]</td></tr>
}}
}}
{{#ifeq:{{{Component|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Implements:'''</td><td class="PageWidthTableRemainderCell">
{{#ifeq:{{{Component|}}}|||<tr><td class="PageWidthTableFirstCell">'''Implements:'''</td><td class="PageWidthTableRemainderCell">
{{#arraymap:{{{Component|}}}|;|x|[[IsImplementationOf::x]]|; }}</td></tr>
{{#arraymap:{{{Component|}}}|;|x|[[IsImplementationOf::x]]|; }}</td></tr>
}}
}}
{{#ifeq:{{{Creator|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''Developed by:'''</td>
{{#ifeq:{{{Creator|}}}|||<tr><td class="PageWidthTableFirstCell">'''Developed by:'''</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
[[HasCreator::{{{Creator|}}}]]</td></tr>
[[HasCreator::{{{Creator|}}}]]</td></tr>
}}
}}
{{#ifeq:{{{ExternalURL|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''External link:'''</td>
{{#ifeq:{{{ExternalURL|}}}|||<tr><td class="PageWidthTableFirstCell">'''External link:'''</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
[[HasURL::{{{ExternalURL|}}}]]</td></tr>
[[HasURL::{{{ExternalURL|}}}]]</td></tr>
}}
}}
{{#ifeq:{{{Reference|}}}|||<tr>{{PageWidthTableFirstCellTemplate}}'''References:'''</td>
{{#ifeq:{{{Reference|}}}|||<tr><td class="PageWidthTableFirstCell">'''References:'''</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
{{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]|; }}</td></tr>
{{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]|; }}</td></tr>

Revision as of 15:37, 13 December 2013

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

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

Edit the page to see the template text.