Difference between revisions of "Template:Infobox device"

From Appropedia
Jump to navigation Jump to search
 
(40 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
|headerstyle = background: #cef2ce;
+
|form = Infobox device
|above = {{{above|[[Device]]}}}
+
|category = Devices
 +
|above = [[Device]]
 
|title = {{{title|}}}
 
|title = {{{title|}}}
 
|image = {{{image|}}}
 
|image = {{{image|}}}
 +
|image-size = {{{image-size|}}}
 +
|caption = {{{caption|}}}
 +
 
|label1 = Description
 
|label1 = Description
 
|data1 = {{{description|}}}
 
|data1 = {{{description|}}}
|label2 = Intended use
+
|label2 = Uses
|data2 = {{{intended-use|}}}
+
|data2 = {{#arraymap:{{{uses|}}}|,|@|{{Property|Has 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 = Status
|data6 = {{#if:{{{development-stage|}}}|[[{{{development-stage}}}]]}}
+
|data6 = {{#if:{{{status|}}}|{{Property|Has status|{{{status}}}}}}}
|label7 = Project was made?
+
|label7 = Made?
|data7 = {{{made|}}}
+
|data7 = {{#if:{{{made|}}}|{{Property|Was made|{{{made}}}}}}}
|label8 = Project was made indpendently?
+
|label8 = Replicated? {{#info:Was this project made independently by someone other than the authors and without their guidance?}}
|data8 = {{{made-indpendently|}}}
+
|data8 = {{#if:{{{replicated|}}}|{{Property|Was replicated|{{{replicated}}}}}}}
|label9 = Date of publication
+
|label9 = Published
 
|data9 = {{{date-published|}}}
 
|data9 = {{{date-published|}}}
|label10 = Countries of design
+
|label10 = Completed
|data10 = {{#arraymap:{{{countries-of-design|}}}|,|@|[[@]]|<br>}}
+
|data10 = {{{date-completed|}}}
|label11 = Countries of replication
+
|label11 = Updated
|data11 = {{#arraymap:{{{countries-of-replication|}}}|,|@|[[@]]|<br>}}
+
|data11 = {{{date-updated|}}}
|label12 = Project affiliation
+
|label12 = Countries of design
|data12 = {{#if:{{{project-affiliation|}}}|[[{{{project-affiliation}}}]]}}
+
|data12 = {{#arraymap:{{{countries-of-design|}}}|,|@|{{Property|Has country of origin|@}}|<br>}}
|label13 = Main materials
+
|label13 = Countries of replication
|data13 = {{#arraymap:{{{main-materials|}}}|,|@|[[@]]}}
+
|data13 = {{#arraymap:{{{countries-of-replication|}}}|,|@|{{Property|Has country of replication|@}}|<br>}}
|label14 = Estimated cost
+
|label14 = Affiliations
|data14 = {{{estimated-cost-currency|}}} {{{estimated-cost-amount|}}}
+
|data14 = {{#arraymap:{{{affiliations|}}}|,|@|[[:@|@]]|<br>}}
|label15 = SDG
+
|label15 = Materials
|data15 = {{#arraymap:{{{sustainable-development-goal|}}}|,|@|[[@]]}}
+
|data15 = {{#arraymap:{{{materials|}}}|,|@|{{Property|Has material|@}}|<br>}}
|label16 = {{{label14|}}}
+
|label16 = Estimated cost
|data16 = {{{data14|}}}
+
|data16 = {{{estimated-cost-currency|}}} {{#if:{{{estimated-cost-amount|}}}|$ {{{estimated-cost-amount}}}}}
|label17 = {{{label15|}}}
+
|label17 = Sustainable Development Goals
|data17 = {{{data15|}}}
+
|data17 = {{#arraymap:{{{sdg|}}}|,|@|{{Property|Contributes to SDG|@}}|<br>}}
|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 70: Line 66:
 
|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 use = {{{uses|}}}|+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 status = {{ucfirst:{{{status|}}}}}
|Has Appropedia username = {{{contact-appropedia-user|}}}|+sep
+
|Was made = {{{made|}}}
|Has development stage = {{{development-stage|}}}
+
|Was replicated = {{{replicated|}}}
|Is made = {{{made|}}}
 
 
|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
 
|Has country of replication = {{{countries-of-replication|}}}|+sep
 
|Has country of replication = {{{countries-of-replication|}}}|+sep
|Has project affiliation with = {{{project-affiliation|}}}|+sep
+
|Has affiliation = {{{affiliations|}}}|+sep
|Uses material = {{{main-materials|}}}|+sep
+
|Has material = {{{materials|}}}|+sep
 
|Has cost currency = {{{estimated-cost-currency|}}}
 
|Has cost currency = {{{estimated-cost-currency|}}}
 
|Has estimated cost = {{{estimated-cost-amount|}}}
 
|Has estimated cost = {{{estimated-cost-amount|}}}
|Contributes to SDG = {{{sustainable-development-goal|}}}|+sep
+
|Contributes to SDG = {{{sdg|}}}|+sep
|Has category = Devices
+
|Type = Device
}}{{#if:{{NAMESPACE}}||[[Category:Devices]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 00:48, 24 October 2020

Edit the infobox
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]