Difference between revisions of "Template:Infobox device"

From Appropedia
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
|form = Infobox device
 
 
|category = Devices
 
|category = Devices
 
|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 = Keywords
|data2 = {{#arraymap:{{{intended-use|}}}|,|@|{{Property|Has intended use|@}}}}
+
|data2 = {{#arraymap:{{{keywords|}}}|,|@|{{Property|Has keyword|@}}}}
|label3 = Keywords
+
|label3 = Uses
|data3 = {{#arraymap:{{{keywords|}}}|,|@|{{Property|Has keyword|@}}}}
+
|data3 = {{#arraymap:{{{uses|}}}|,|@|{{Property|Has use|@}}}}
 +
|label4 = Variant of
 +
|data4 = {{#if:{{{variant-of|}}}|[[{{{variant-of}}}]]}}
 
|label5 = Authors
 
|label5 = Authors
 
|data5 = {{#arraymap:{{{authors|}}}|,|@|{{#ifexist:@|[[@|{{#if:{{#show:@|?Has name}}|{{#show:@|?Has name}}|{{#if:{{REALNAME:@}}|{{REALNAME:@}}|{{PAGENAME:@}}}}}}]]|@}}|<br>}}
 
|data5 = {{#arraymap:{{{authors|}}}|,|@|{{#ifexist:@|[[@|{{#if:{{#show:@|?Has name}}|{{#show:@|?Has name}}|{{#if:{{REALNAME:@}}|{{REALNAME:@}}|{{PAGENAME:@}}}}}}]]|@}}|<br>}}
 
|label6 = Status
 
|label6 = Status
|data6 = {{#if:{{{development-stage|}}}|{{Property|Has development stage|{{{development-stage}}}}}}}
+
|data6 = {{#if:{{{status|}}}|{{Property|Has status|{{{status}}}}}}}
 
|label7 = Made?
 
|label7 = Made?
|data7 = {{#if:{{{made|}}}|{{Property|Is made|{{{made}}}}}}}
+
|data7 = {{#if:{{{made|}}}|{{Property|Was made|{{{made}}}}}}}
 
|label8 = Replicated? {{#info:Was this project made independently by someone other than the authors and without their guidance?}}
 
|label8 = Replicated? {{#info:Was this project made independently by someone other than the authors and without their guidance?}}
|data8 = {{#if:{{{replicated|}}}|{{Property|Is made independently|{{{replicated}}}}}}}
+
|data8 = {{#if:{{{replicated|}}}|{{Property|Was replicated|{{{replicated}}}}}}}
 
|label9 = Published
 
|label9 = Published
 
|data9 = {{{date-published|}}}
 
|data9 = {{{date-published|}}}
Line 32: Line 32:
 
|label13 = Countries of replication
 
|label13 = Countries of replication
 
|data13 = {{#arraymap:{{{countries-of-replication|}}}|,|@|{{Property|Has country of replication|@}}|<br>}}
 
|data13 = {{#arraymap:{{{countries-of-replication|}}}|,|@|{{Property|Has country of replication|@}}|<br>}}
|label14 = Affiliation
+
|label14 = Affiliations
|data14 = {{#arraymap:{{{affiliation|}}}|,|@|[[:@|@]]|<br>}}
+
|data14 = {{#arraymap:{{{affiliations|}}}|,|@|[[:@|@]]|<br>}}
 
|label15 = Materials
 
|label15 = Materials
|data15 = {{#arraymap:{{{materials|}}}|,|@|{{Property|Uses material|@}}|<br>}}
+
|data15 = {{#arraymap:{{{materials|}}}|,|@|{{Property|Has material|@}}|<br>}}
 
|label16 = Estimated cost
 
|label16 = Estimated cost
 
|data16 = {{{estimated-cost-currency|}}} {{#if:{{{estimated-cost-amount|}}}|$ {{{estimated-cost-amount}}}}}
 
|data16 = {{{estimated-cost-currency|}}} {{#if:{{{estimated-cost-amount|}}}|$ {{{estimated-cost-amount}}}}}
Line 68: Line 68:
 
}}{{#set:
 
}}{{#set:
 
|Has description = {{{description|}}}
 
|Has description = {{{description|}}}
|Has intended use = {{{intended-use|}}}|+sep
 
 
|Has keyword = {{{keywords|}}}|+sep
 
|Has keyword = {{{keywords|}}}|+sep
 +
|Has use = {{{uses|}}}|+sep
 +
|Is variant of = {{{variant-of|}}}
 
|Has author = {{{authors|}}}|+sep
 
|Has author = {{{authors|}}}|+sep
|Has development stage = {{{development-stage|}}}
+
|Has status = {{ucfirst:{{{status|}}}}}
 
|Was made = {{{made|}}}
 
|Was made = {{{made|}}}
 
|Was replicated = {{{replicated|}}}
 
|Was replicated = {{{replicated|}}}
Line 77: Line 78:
 
|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 affiliation = {{{affiliation|}}}|+sep
+
|Has affiliation = {{{affiliations|}}}|+sep
 
|Has material = {{{materials|}}}|+sep
 
|Has material = {{{materials|}}}|+sep
 
|Has cost currency = {{{estimated-cost-currency|}}}
 
|Has cost currency = {{{estimated-cost-currency|}}}
Line 83: Line 84:
 
|Contributes to SDG = {{{sdg|}}}|+sep
 
|Contributes to SDG = {{{sdg|}}}|+sep
 
|Type = Device
 
|Type = Device
}}<noinclude>{{Documentation}}</noinclude>
+
}}<noinclude>{{Documentation/infobox|Device|Devices}}</noinclude>

Latest revision as of 18:50, 26 November 2020

Infobox device

Template documentation

This template adds the infobox to pages about devices and adds them to the Category:Devices.

Usage

{{Infobox device
| authors                               = 
| documentation-is-translation-title    = 
| description                           = 
| countries-of-design                   = 
| uses                                  = 
| documentation-is-translation-web      = 
| manifest-author-email                 = 
| countries-of-replication              = 
| status                                = 
| image                                 = 
| estimated-cost-currency               = 
| manifest-date-updated                 = 
| caption                               = 
| manifest-author-name                  = 
| affiliations                          = 
| replicated                            = 
| estimated-cost-amount                 = 
| documentation-language                = 
| documentation-home                    = 
| date-completed                        = 
| documentation-is-translation-manifest = 
| keywords                              = 
| sdg                                   = 
| documentation-is-translation-language = 
| materials                             = 
| manifest-language                     = 
| title                                 = 
| date-updated                          = 
| variant-of                            = 
| date-published                        = 
| made                                  = 
| manifest-author-affiliation           = 
}}

Example

Ecoladrillos
Ecoladrillo.jpg
Finished product.
Status Prototype
Made? Yes
Replicated? Was this project made independently by someone other than the authors and without their guidance? Yes
Published 2019
Completed 2018
Updated 2020
Countries of design Argentina
Countries of replication Mexico
Estimated cost USD $ 123.00
Sustainable Development Goals SDG01 No poverty
SDG13 Climate action
{{Infobox device
| countries-of-design      = Argentina
| countries-of-replication = Mexico
| status                   = Prototype
| image                    = Ecoladrillo.jpg
| estimated-cost-currency  = USD
| caption                  = Finished product.
| replicated               = Yes
| estimated-cost-amount    = 123.00
| date-completed           = 2018
| sdg                      = SDG01 No poverty, SDG13 Climate action
| title                    = Ecoladrillos
| date-updated             = 2020
| date-published           = 2019
| made                     = Yes
}}

See also

Template data

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

Infobox title, if different from the page title.

Example
Ecoladrillos
Stringoptional
Imageimage

Main image of the page

Example
Ecoladrillo.jpg
Filesuggested
Captioncaption

Caption for the main image.

Example
Finished product.
Stringoptional
Descriptiondescription

Brief description of this project

Stringoptional
Keywordskeywords

Search keywords, separated by commas.

Stringoptional
Usesuses

Practical uses of this project, separated by commas.

Stringoptional
Variant ofvariant-of

no description

Pageoptional
Authorsauthors

Authors of this project, separated by commas.

Usersuggested
Statusstatus

Project status.

Example
Prototype
Pageoptional
Made?made

Was this project actually made?

Example
Yes
Booleanoptional
Replicated?replicated

Was this project replicated without the help of the original authors?

Example
Yes
Booleanoptional
Date completeddate-completed

Date on which this project was completed.

Example
2018
Dateoptional
Date publisheddate-published

Date on which this project was published.

Example
2019
Dateoptional
Date updateddate-updated

Date on which this project was last updated.

Example
2020
Dateoptional
Countries of designcountries-of-design

Countries where this project was designed, separated by commas.

Example
Argentina
Pageoptional
Countries of replicationcountries-of-replication

Countries where this project was replicated, separated by commas.

Example
Mexico
Pageoptional
Affiliationsaffiliations

Organizations affiliated to this project, separated by commas.

Stringoptional
Materialsmaterials

Materials involved in this project, separated by commas.

Stringoptional
Estimated cost currencyestimated-cost-currency

Currency of the estimated cost.

Example
USD
Stringoptional
Estimated cost amountestimated-cost-amount

Amount of the estimated cost.

Example
123.00
Numberoptional
Sustainable Development Goalssdg

Sustainable Development Goals to which this project contributes, separated by commas.

Example
SDG01 No poverty, SDG13 Climate action
Pageoptional
Documentation-homedocumentation-home

no description

Unknownoptional
Documentation-languagedocumentation-language

no description

Unknownoptional
Documentation-is-translation-titledocumentation-is-translation-title

no description

Unknownoptional
Documentation-is-translation-manifestdocumentation-is-translation-manifest

no description

Unknownoptional
Documentation-is-translation-webdocumentation-is-translation-web

no description

Unknownoptional
Documentation-is-translation-languagedocumentation-is-translation-language

no description

Unknownoptional
Manifest-languagemanifest-language

no description

Unknownoptional
Manifest-date-updatedmanifest-date-updated

no description

Unknownoptional
Manifest-author-namemanifest-author-name

no description

Unknownoptional
Manifest-author-affiliationmanifest-author-affiliation

no description

Unknownoptional
Manifest-author-emailmanifest-author-email

no description

Unknownoptional