Template:ComputerModelTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>
{{#ifexpr: {{#if:{{{FrameworkRelation|}}}|1|0}} or {{#if:{{{Component|}}}|1|0}} or {{#if:{{{Creator|}}}|1|0}}|
{{#ifeq:{{{FrameworkRelation|}}}{{{Component|}}}{{{Creator|}}}||
<table class="PageWidthTableTemplate">
<table class="PageWidthTableTemplate">
{{#ifeq:{{{Subject|}}}|||<tr><td class="PageWidthTableFirstCell">'''Subject:'''</td><td class="PageWidthTableRemainderCell">
{{#ifeq:{{{Subject|}}}|||<tr><td class="PageWidthTableFirstCell">'''Subject:'''</td><td class="PageWidthTableRemainderCell">
[[HasSubject::{{{Subject|}}}]]
[[HasSubject::{{{Subject|}}}]]</td></tr>
</td></tr>
}}
}}
{{#ifeq:{{{Description|}}}|||<tr><td class="PageWidthTableFirstCell">'''Description:'''</td><td class="PageWidthTableRemainderCell">
{{#ifeq:{{{Description|}}}|||<tr><td class="PageWidthTableFirstCell">'''Description:'''</td><td class="PageWidthTableRemainderCell">
[[HasDescription::{{{Description|}}}]]
[[HasDescription::{{{Description|}}}]]</td></tr>
</td></tr>
}}
}}
{{#ifeq:{{{FrameworkRelation|}}}|||<tr><td class="PageWidthTableFirstCell">'''Relation with IMAGE framework:'''</td><td class="PageWidthTableRemainderCell">
{{#ifeq:{{{FrameworkRelation|}}}|||<tr><td class="PageWidthTableFirstCell">'''Relation with IMAGE framework:'''</td><td class="PageWidthTableRemainderCell">
[[RelationWithIMAGEFramework::{{{FrameworkRelation|}}}]]
[[RelationWithIMAGEFramework::{{{FrameworkRelation|}}}]]</td></tr>
</td></tr>
}}
}}
{{#ifeq:{{{Component|}}}|||<tr><td class="PageWidthTableFirstCell">'''Implements:'''</td><td class="PageWidthTableRemainderCell">
{{#ifeq:{{{Component|}}}|||<tr><td class="PageWidthTableFirstCell">'''Implements:'''</td>
{{#arraymap:{{{Component|}}}|;|x|[[IsImplementationOf::x]]|; }}
<td class="PageWidthTableRemainderCell">
</td></tr>
{{#arraymap:{{{Component|}}}|;|x|[[IsImplementationOf::x]]|;&nbsp;}}</td></tr>
}}
}}
{{#ifeq:{{{Creator|}}}|||<tr><td class="PageWidthTableFirstCell">'''Developed by:'''</td>
{{#ifeq:{{{Creator|}}}|||<tr><td class="PageWidthTableFirstCell">'''Developed by:'''</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
{{#arraymap:{{{Creator|}}}|;|x|[[HasCreator::x]]|}}
{{#arraymap:{{{Creator|}}}|;|x|[[HasCreator::x]]|;&nbsp;}}</td></tr>
</td></tr>
 
}}
}}
{{#ifeq:{{{ExternalURL|}}}|||<tr><td class="PageWidthTableFirstCell">'''External link:'''</td>
{{#ifeq:{{{ExternalURL|}}}|||<tr><td class="PageWidthTableFirstCell">'''External link:'''</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
[[HasURL::{{{ExternalURL|}}}]]
[[HasURL::{{{ExternalURL|}}}]]</td></tr>
</td></tr>
}}
}}
{{#ifeq:{{{Reference|}}}|||<tr><td class="PageWidthTableFirstCell">'''References:'''</td>
{{#ifeq:{{{Reference|}}}|||<tr><td class="PageWidthTableFirstCell">'''References:'''</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
{{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]|; }}
{{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]|;&nbsp;}}</td></tr>
</td></tr>
}}
}}
</table>
</table>

Revision as of 20:01, 23 May 2014

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.