Difference between revisions of "Template:Infobox device"

From Appropedia
Jump to navigation Jump to search
m
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
|headerstyle = background: #cef2ce;
+
|category = Devices
|above = {{{above|[[Device]]}}}
+
|above = [[Device]]
 
|title = {{{title|}}}
 
|title = {{{title|}}}
 
|image = {{{image|}}}
 
|image = {{{image|}}}
 +
|image-size = {{{image-size|}}}
 
|caption = {{{caption|}}}
 
|caption = {{{caption|}}}
 +
 
|label1 = Description
 
|label1 = Description
 
|data1 = {{{description|}}}
 
|data1 = {{{description|}}}
 
|label2 = Intended use
 
|label2 = Intended use
|data2 = {{{intended-use|}}}
+
|data2 = {{#arraymap:{{{intended-use|}}}|,|@|{{Property|Has intended use|@}}}}
 
|label3 = Keywords
 
|label3 = Keywords
|data3 = {{{keywords|}}}
+
|data3 = {{#arraymap:{{{keywords|}}}|,|@|{{Property|Has keyword|@}}}}
|label5 = Appropedia user
+
|label5 = Authors
|data5 = {{#if:{{{contact-appropedia-user|}}}|[[{{{contact-appropedia-user}}}]]}}
+
|data5 = {{#arraymap:{{{authors|}}}|,|@|{{#ifexist:@|[[@|{{#if:{{#show:@|?Has name}}|{{#show:@|?Has name}}|{{#if:{{REALNAME:@}}|{{REALNAME:@}}|{{PAGENAME:@}}}}}}]]|@}}|<br>}}
 
|label6 = Project status
 
|label6 = Project status
|data6 = {{#if:{{{development-stage|}}}|[[{{{development-stage}}}]]}}
+
|data6 = {{#if:{{{development-stage|}}}|{{Property|Has development stage|{{{development-stage}}}}}}}
 
|label7 = Project was made?
 
|label7 = Project was made?
|data7 = {{{made|}}}
+
|data7 = {{#if:{{{made|}}}|{{Property|Is made|{{{made}}}}}}}
 
|label8 = Project was made independently?
 
|label8 = Project was made independently?
|data8 = {{{made-indpendently|}}}
+
|data8 = {{#if:{{{made-independently|}}}|{{Property|Is made independently|{{{made-independently}}}}}}}
 
|label9 = Date of publication
 
|label9 = Date of publication
 
|data9 = {{{date-published|}}}
 
|data9 = {{{date-published|}}}
 
|label10 = Countries of design
 
|label10 = Countries of design
|data10 = {{#arraymap:{{{countries-of-design|}}}|,|@|[[@]]|<br>}}
+
|data10 = {{#arraymap:{{{countries-of-design|}}}|,|@|{{Property|Has country of origin|@}}|<br>}}
 
|label11 = Countries of replication
 
|label11 = Countries of replication
|data11 = {{#arraymap:{{{countries-of-replication|}}}|,|@|[[@]]|<br>}}
+
|data11 = {{#arraymap:{{{countries-of-replication|}}}|,|@|{{Property|Has country of replication|@}}|<br>}}
 
|label12 = Project affiliation
 
|label12 = Project affiliation
|data12 = {{#if:{{{project-affiliation|}}}|[[{{{project-affiliation}}}]]}}
+
|data12 = {{#arraymap:{{{project-affiliation|}}}|,|@|[[:@|@]]|<br>}}
 
|label13 = Main materials
 
|label13 = Main materials
|data13 = {{#arraymap:{{{main-materials|}}}|,|@|[[@]]}}
+
|data13 = {{#arraymap:{{{main-materials|}}}|,|@|{{Property|Uses material|@}}|<br>}}
 
|label14 = Estimated cost
 
|label14 = Estimated cost
 
|data14 = {{{estimated-cost-currency|}}} {{{estimated-cost-amount|}}}
 
|data14 = {{{estimated-cost-currency|}}} {{{estimated-cost-amount|}}}
 
|label15 = SDG
 
|label15 = SDG
|data15 = {{#arraymap:{{{sustainable-development-goal|}}}|,|@|[[@]]}}
+
|data15 = {{#arraymap:{{{sustainable-development-goal|}}}|,|@|{{Property|Contributes to SDG|@}}|<br>}}
|label16 = {{{label14|}}}
 
|data16 = {{{data14|}}}
 
|label17 = {{{label15|}}}
 
|data17 = {{{data15|}}}
 
|label18 = {{{label16|}}}
 
|data18 = {{{data16|}}}
 
|label19 = {{{label17|}}}
 
|data19 = {{{data17|}}}
 
|label20 = {{{label18|}}}
 
|data20 = {{{data18|}}}
 
|label21 = {{{label19|}}}
 
|data21 = {{{data19|}}}
 
  
 
|header70 = {{#if:{{{documentation-home|}}}{{{documentation-language|}}}{{{documentation-is-translation-title|}}}{{{documentation-is-translation-manifest|}}}{{{documentation-is-translation-web|}}}{{{documentation-is-translation-language|}}}|Documentation data}}
 
|header70 = {{#if:{{{documentation-home|}}}{{{documentation-language|}}}{{{documentation-is-translation-title|}}}{{{documentation-is-translation-manifest|}}}{{{documentation-is-translation-web|}}}{{{documentation-is-translation-language|}}}|Documentation data}}
Line 71: Line 61:
 
|label85 = Author email
 
|label85 = Author email
 
|data85 = {{{manifest-author-email|}}}
 
|data85 = {{{manifest-author-email|}}}
}}<includeonly>{{#set:
+
}}{{#set:
 
|Has description = {{{description|}}}
 
|Has description = {{{description|}}}
 
|Has intended use = {{{intended-use|}}}|+sep
 
|Has intended use = {{{intended-use|}}}|+sep
|Has keywords = {{{keywords|}}}|+sep
+
|Has keyword = {{{keywords|}}}|+sep
|Has language = {{{documentation-language|}}}|+sep
+
|Has author = {{{authors|}}}|+sep
|Has documentation written in = {{{documentation-language|}}}|+sep
 
|Has Appropedia username = {{{contact-appropedia-user|}}}|+sep
 
 
|Has development stage = {{{development-stage|}}}
 
|Has development stage = {{{development-stage|}}}
 
|Is made = {{{made|}}}
 
|Is made = {{{made|}}}
 +
|Is made independently = {{{made-independently|}}}
 
|Has date of publication = {{{date-published|}}}
 
|Has date of publication = {{{date-published|}}}
 
|Has country of origin = {{{countries-of-design|}}}|+sep
 
|Has country of origin = {{{countries-of-design|}}}|+sep
Line 88: Line 77:
 
|Has estimated cost = {{{estimated-cost-amount|}}}
 
|Has estimated cost = {{{estimated-cost-amount|}}}
 
|Contributes to SDG = {{{sustainable-development-goal|}}}|+sep
 
|Contributes to SDG = {{{sustainable-development-goal|}}}|+sep
|Has category = Devices
+
|Type = Device
}}{{#if:{{NAMESPACE}}||[[Category:Devices]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 22:30, 19 October 2020

Device
Infobox device

Template documentation[edit]

This template is used on devices.

Usage[edit source]

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

See also[edit source]