Template:InfoBoxTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Oostenrijr (talk | contribs) No edit summary |
||
(107 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
It should be called in the following format: | It should be called in the following format: | ||
<pre> | <pre> | ||
{{InfoBoxtemplate | {{InfoBoxtemplate}} | ||
}} | |||
</pre> | </pre> | ||
</noinclude><includeonly> | </noinclude><includeonly><!-- | ||
{{# | check the need for an infobox on this page (most recent version is the norm) | ||
<div | -->{{#ifeq:{{InfoboxTestTemplate|basepage={{ROOTPAGENAME}}|subpage={{SUBPAGENAME}} }}|0|| <!-- | ||
existing data for infobox | |||
{{# | --><div class="InfoBoxTemplateClear"><table class="InfoBoxStyle"> <!-- | ||
-->{{#ifeq:{{PropertyTestTemplate|prop=IsImplementationOf|page={{ROOTPAGENAME}}|reverse=1 }}|0|| | |||
<tr><td class="InfoBoxCellStyleTemplate">Component is implemented in:</td></tr> | |||
<tr><td>{{#arraymap: | |||
{{#ask:[[{{ | {{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none|sep=;}} | ||
{{#ask: [[ | |;|yy | ||
|{{#arraymap: {{#ask:[[Category:ModelVersion]][[IsVersionOf::yy]]|link=none|sep=;}} | |||
|;|xx | |||
|{{#ifeq:{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy]]|link=none}}|xx | |||
{{#ifeq:{{{ | |<ul><li>[[yy]] (version {{#ask:[[xx]]|format=Plainlist}})</li></ul> | ||
{{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]] | |||
|intro=Aggregated component:|format=ul | |||
}}{{#ask:[[Category:Component]][[-IsImplementationOf::yy]] | |||
|intro=Components:|format=ul}} | |||
|}} | |||
|}} | |||
}} | | and }} | ||
{{#ifeq:{{{ | </td></tr><!-- | ||
-->{{#ifeq:{{PropertyTestTemplate|prop=HasIMAGEComponent|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0|| | |||
<tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr> | |||
<tr ><td>{{#ask:[[-HasIMAGEComponent::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}} | |||
</td></tr>}} | |||
}}<!-- | |||
-->{{#ifeq:{{PropertyTestTemplate|prop=HasApplication|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0|| | |||
}} | <tr><td class="InfoBoxCellStyleTemplate">Projects/Applications</td></tr> | ||
{{#ifeq:{{{ | <tr><td>{{#ask:[[-HasApplication::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}} | ||
</td></tr>}}<!-- | |||
-->{{#ifeq:{{PropertyTestTemplate|prop=HasModelDatabase|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0|| | |||
<tr><td class="InfoBoxCellStyleTemplate">Models/Databases</td></tr> | |||
<tr><td>{{#ask:[[-HasModelDatabase::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}} | |||
</td></tr>}}<!-- | |||
-->{{#ifeq:{{PropertyTestTemplate|prop=HasOverview|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0|| | |||
}} | <tr><td class="InfoBoxCellStyleTemplate">Relevant overviews</td></tr> | ||
{{#ifeq:{{# | <tr><td>{{#ask:[[-HasOverview::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}} | ||
</td></tr>}}<!-- | |||
-->{{#ifeq:{{PropertyTestTemplate|prop=HasKeyReference|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0|| | |||
<tr><td class="InfoBoxCellStyleTemplate">Key publications</td></tr> | |||
<tr><td><tr><td>{{#ask:[[-HasKeyReference::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}} | |||
</td></tr>}}<!-- | |||
}} | -->{{#ifeq:{{PropertyTestTemplate|prop=HasReference|page={{FULLPAGENAME}} }}|0|| | ||
{{#ifeq:{{{ | <tr><td class="InfoBoxCellStyleTemplate">References</td></tr> | ||
<tr><td class="mw-collapsible mw-collapsed"> | |||
{{#ask:[[-HasReference::{{FULLPAGENAME}}]]|format=ul}} | |||
</td></tr> | |||
}} | |||
{{#ifeq:{{{ | |||
}} | }} | ||
</table> | </table> | ||
</div> | </div> | ||
}}<!-- | |||
</includeonly> | --></includeonly> |
Latest revision as of 16:41, 24 March 2020
It should be called in the following format:
{{InfoBoxtemplate}}