Template:ComputerModelTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
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><td class="PageWidthTableFirstCell">
{{#ifeq:{{{Subject|}}}|||<tr><td class="PageWidthTableFirstCell">'''Subject:'''</td><td class="PageWidthTableRemainderCell">
'''Subject:'''
</td><td class="PageWidthTableRemainderCell">
[[HasSubject::{{{Subject|}}}]]
[[HasSubject::{{{Subject|}}}]]
</td></tr>
</td></tr>
}}
}}
{{#ifeq:{{{Description|}}}|||<tr><td class="PageWidthTableFirstCell">
{{#ifeq:{{{Description|}}}|||<tr><td class="PageWidthTableFirstCell">'''Description:'''</td><td class="PageWidthTableRemainderCell">
'''Description:'''
</td><td class="PageWidthTableRemainderCell">
[[HasDescription::{{{Description|}}}]]
[[HasDescription::{{{Description|}}}]]
</td></tr>
</td></tr>
}}
}}
{{#ifeq:{{{FrameworkRelation|}}}|||<tr><td class="PageWidthTableFirstCell">
{{#ifeq:{{{FrameworkRelation|}}}|||<tr><td class="PageWidthTableFirstCell">'''Relation with IMAGE framework:'''</td><td class="PageWidthTableRemainderCell">
'''Relation with IMAGE framework:'''
</td><td class="PageWidthTableRemainderCell">
[[RelationWithIMAGEFramework::{{{FrameworkRelation|}}}]]
[[RelationWithIMAGEFramework::{{{FrameworkRelation|}}}]]
</td></tr>
</td></tr>
}}
}}
{{#ifeq:{{{Component|}}}|||<tr><td class="PageWidthTableFirstCell">
{{#ifeq:{{{Component|}}}|||<tr><td class="PageWidthTableFirstCell">'''Implements:'''</td><td class="PageWidthTableRemainderCell">
'''Implements:'''
{{#arraymap:{{{Component|}}}|;|x|[[IsImplementationOf::x]]|; }}
</td><td class="PageWidthTableRemainderCell">
{{#arraymap:{{{Component|}}}|;|x|[[IsImplementationOf::x]]|;&nbsp;}}
</td></tr>
</td></tr>
}}
}}
{{#ifeq:{{{Creator|}}}|||<tr><td class="PageWidthTableFirstCell">
{{#ifeq:{{{Creator|}}}|||<tr><td class="PageWidthTableFirstCell">'''Developed by:'''</td>
'''Developed by:'''
</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
{{#arraymap:{{{Creator|}}}|;|x|[[HasCreator::x]]|;&nbsp;}}
{{#arraymap:{{{Creator|}}}|;|x|[[HasCreator::x]]|}}
</td></tr>
</td></tr>
}}
}}
{{#ifeq:{{{ExternalURL|}}}|||<tr><td class="PageWidthTableFirstCell">
{{#ifeq:{{{ExternalURL|}}}|||<tr><td class="PageWidthTableFirstCell">'''External link:'''</td>
'''External link:'''
</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
[[HasURL::{{{ExternalURL|}}}]]
[[HasURL::{{{ExternalURL|}}}]]
</td></tr>
</td></tr>
}}
}}
{{#ifeq:{{{Reference|}}}|||<tr><td class="PageWidthTableFirstCell">
{{#ifeq:{{{Reference|}}}|||<tr><td class="PageWidthTableFirstCell">'''References:'''</td>
'''References:'''
</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
{{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]|;&nbsp;}}
{{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]|; }}
</td></tr>
</td></tr>
}}
}}

Revision as of 19:58, 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.