Difference between revisions of "Template:Infobox device"

From Appropedia
Jump to navigation Jump to search
(Move styling to MediaWiki:Common.css and change wikitable for HTML table for compatibility with future #ifs)
Line 1: Line 1:
<includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
+
<table class="open-know-how-infobox"><tr>
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
+
<th colspan="2" class="open-know-how-infobox-header">{{PAGENAME}}</th>
|-
+
</tr><tr>
 
+
<td colspan="2">{{#if:{{{image|}}}|[[Has image::File:{{{image}}}| ]][[File:{{{image}}}|175x175px|center|frameless|{{{image}}}]]}}</td>
! colspan="2" | {{#if:{{{image|}}}|[[Has image::File:{{{image}}}| ]][[File:{{{image}}}|175x175px|center|frameless|{{{image}}}]]}}
+
</tr><tr>
 
+
<th>Description</th>
|-
+
<td>[[Has description::{{{description|}}}]]</td>
! Description
+
</tr><tr>
| [[Has description::{{{description|}}}]]
+
<th>Intended use</th>
|-
+
<td>[[has intended use::{{{intended-use|}}}]]</td>
! Intended use
+
</tr><tr>
| [[has intended use::{{{intended-use|}}}]]
+
<th>Keywords</th>
|-
+
<td>{{#arraymap:{{{keywords|}}}|,|x|[[Has keywords::x]]}}</td>
! Keywords
+
</tr><tr>
| {{#arraymap:{{{keywords|}}}|,|x|[[Has keywords::x]]}}
+
<th>Documentation language</th>
 
+
<td>{{#arraymap:{{{documentation-language|}}}|,|x|[[Has documentation written in::x]]}}</td>
|-
+
</tr><tr>
! Documentation language
+
<th>Appropedia user</th>
| {{#arraymap:{{{documentation-language|}}}|,|x|[[Has documentation written in::x]]}}
+
<td>{{#arraymap:{{{contact-appropedia-user|}}}|,|x|[[Has Appropedia username::x]]}}</td>
|-
+
</tr><tr>
 
+
<th>Project status</th>
! Appropedia user
+
<td>[[Has development stage::{{{development-stage|}}}]]</td>
| {{#arraymap:{{{contact-appropedia-user|}}}|,|x|[[Has Appropedia username::x]]}}
+
</tr><tr>
|-
+
<th>Project was made</th>
 
+
<td>[[Is made::{{{made|}}}]]</td>
! Project status
+
</tr><tr>
| [[Has development stage::{{{development-stage|}}}]]
+
<th>Date of publication</th>
|-
+
<td>[[Has date of publication::{{{date-published|}}}]]</td>
 
+
</tr><tr>
! Project was made
+
<th>Countries of design</th>
| [[Is made::{{{made|}}}]]
+
<td>{{#arraymap:{{{countries-of-design|}}}|,|x|[[Has country of origin::x]]}}</td>
|-
+
</tr><tr>
! Date of publication
+
<th>Project affiliation</th>
| [[Has date of publication::{{{date-published|}}}]]
+
<td>{{#arraymap:{{{project-afiliation|}}}|,|x|[[Has project affiliation with::x]]}}</td>
|-
+
</tr><tr>
! Countries of design
+
<th>Main materials</th>
| {{#arraymap:{{{countries-of-design|}}}|,|x|[[Has country of origin::x]]}}
+
<td>{{#arraymap:{{{main-materials|}}}|,|x|[[Uses material::x]]}}</td>
|-
+
</tr><tr>
! Project affiliation
+
<th>Estimated cost</th>
| {{#arraymap:{{{project-afiliation|}}}|,|x|[[Has project affiliation with::x]]}}
+
<td>[[Has cost currency::{{{estimated-cost-currency|}}}]] [[Has estimated cost::{{{estimated-cost-amount|}}}]]</td>
|-
+
</tr><tr>
! Main materials
+
<th>SDG</th>
| {{#arraymap:{{{main-materials|}}}|,|x|[[Uses material::x]]}}
+
<td>{{#arraymap:{{{sustainable-development-goal|}}}|,|x|[[Contributes to SDG::x]]}}</td>
 
+
</tr></table>[[Category:OKHManifest]]</includeonly><noinclude>{{Documentation}}</noinclude>
|-
 
! Estimated cost
 
| [[Has cost currency::{{{estimated-cost-currency|}}}]] [[Has estimated cost::{{{estimated-cost-amount|}}}]]
 
|-
 
! SDG
 
| {{#arraymap:{{{sustainable-development-goal|}}}|,|x|[[Contributes to SDG::x]]}}
 
 
 
|}
 
 
 
[[Category:OKHManifest]]
 
</includeonly><noinclude>{{Documentation}}</noinclude>
 

Revision as of 13:19, 27 June 2020

Infobox device
Description
Intended use
Keywords
Documentation language
Appropedia user
Project status
Project was made
Date of publication
Countries of design
Project affiliation
Main materials
Estimated cost
SDG

</includeonly>

Template documentation[edit]

This template is used on devices.

Usage

Basic usage is by clicking on the 'Edit with form' tab on devices.

See also