Difference between revisions of "Template:Infobox device"
m (Text replacement - "Is variant of" to "Variant of") |
|||
(21 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
− | |||
|category = Devices | |category = Devices | ||
|above = [[Device]] | |above = [[Device]] | ||
− | |||
|image = {{{image|}}} | |image = {{{image|}}} | ||
|caption = {{{caption|}}} | |caption = {{{caption|}}} | ||
− | |||
− | |||
|label2 = Keywords | |label2 = Keywords | ||
|data2 = {{#arraymap:{{{keywords|}}}|,|@|{{Property|Has keyword|@}}}} | |data2 = {{#arraymap:{{{keywords|}}}|,|@|{{Property|Has keyword|@}}}} | ||
|label3 = Uses | |label3 = Uses | ||
|data3 = {{#arraymap:{{{uses|}}}|,|@|{{Property|Has use|@}}}} | |data3 = {{#arraymap:{{{uses|}}}|,|@|{{Property|Has use|@}}}} | ||
− | |label4 = Variant of | + | |label4 = Variant of |
|data4 = {{#if:{{{variant-of|}}}|[[{{{variant-of}}}]]}} | |data4 = {{#if:{{{variant-of|}}}|[[{{{variant-of}}}]]}} | ||
|label5 = Authors | |label5 = Authors | ||
− | |data5 = {{#arraymap:{{{authors|}}}|,|@|{{#ifexist | + | |data5 = {{#arraymap:{{{authors|}}}|,|@|{{#ifexist:@|[[@|{{#if:{{#show:@|?Has name}}|{{#show:@|?Has name}}|{{#if:{{REALNAME:@}}|{{REALNAME:@}}|{{PAGENAME:@}}}}}}]]|@}}|<br>}} |
|label6 = Status | |label6 = Status | ||
|data6 = {{#if:{{{status|}}}|{{Property|Has status|{{{status}}}}}}} | |data6 = {{#if:{{{status|}}}|{{Property|Has status|{{{status}}}}}}} | ||
|label7 = Made? | |label7 = Made? | ||
|data7 = {{#if:{{{made|}}}|{{Property|Was made|{{{made}}}}}}} | |data7 = {{#if:{{{made|}}}|{{Property|Was made|{{{made}}}}}}} | ||
− | |label8 = Replicated? | + | |label8 = Replicated? |
|data8 = {{#if:{{{replicated|}}}|{{Property|Was replicated|{{{replicated}}}}}}} | |data8 = {{#if:{{{replicated|}}}|{{Property|Was replicated|{{{replicated}}}}}}} | ||
|label9 = Published | |label9 = Published | ||
Line 29: | Line 25: | ||
|label11 = Updated | |label11 = Updated | ||
|data11 = {{{date-updated|}}} | |data11 = {{{date-updated|}}} | ||
− | |label12 = | + | |label12 = Designed in |
|data12 = {{#arraymap:{{{countries-of-design|}}}|,|@|{{Property|Has country of origin|@}}|<br>}} | |data12 = {{#arraymap:{{{countries-of-design|}}}|,|@|{{Property|Has country of origin|@}}|<br>}} | ||
− | |label13 = | + | |label13 = Replicated in |
|data13 = {{#arraymap:{{{countries-of-replication|}}}|,|@|{{Property|Has country of replication|@}}|<br>}} | |data13 = {{#arraymap:{{{countries-of-replication|}}}|,|@|{{Property|Has country of replication|@}}|<br>}} | ||
|label14 = Affiliations | |label14 = Affiliations | ||
− | |data14 = {{#arraymap:{{{affiliations|}}}|,|@|[[:@|@]]|<br>}} | + | |data14 = {{#arraymap:{{{affiliations|}}}|,|@|[[:@|{{PAGENAME:@}}]]|<br>}} |
|label15 = Materials | |label15 = Materials | ||
|data15 = {{#arraymap:{{{materials|}}}|,|@|{{Property|Has material|@}}|<br>}} | |data15 = {{#arraymap:{{{materials|}}}|,|@|{{Property|Has material|@}}|<br>}} | ||
− | |label16 = | + | |label16 = Cost |
|data16 = {{{estimated-cost-currency|}}} {{#if:{{{estimated-cost-amount|}}}|$ {{{estimated-cost-amount}}}}} | |data16 = {{{estimated-cost-currency|}}} {{#if:{{{estimated-cost-amount|}}}|$ {{{estimated-cost-amount}}}}} | ||
|label17 = Sustainable Development Goals | |label17 = Sustainable Development Goals | ||
− | |data17 = {{#arraymap:{{{sdg|}}}|,|@|{{Property| | + | |data17 = {{#arraymap:{{{sdg|}}}|,|@|{{Property|Sustainable Development Goal|@}}|<br>}} |
+ | |label18 = Location | ||
+ | |data18 = {{#arraymap:{{{location|}}}|,|@|[[@]]}} | ||
+ | |||
+ | |header40 = {{#if:{{{license-hardware|}}}{{{license-documentation|}}}{{{license-software|}}}{{{licensor|}}}|License data}} | ||
+ | |label41 = License hardware | ||
+ | |data41 = {{{license-hardware|}}} | ||
+ | |label42 = License documentation | ||
+ | |data42 = {{{license-documentation|}}} | ||
+ | |label43 = License software | ||
+ | |data43 = {{{license-software|}}} | ||
+ | |label44 = Licensor | ||
+ | |data44 = {{{licensor|}}} | ||
+ | |||
+ | |header50 = {{#if:{{{making-instructions|}}}{{{manufacturing-files|}}}{{{risk-assessment|}}}{{{tool-settings|}}}{{{quality-instructions|}}}{{{quality-instructions|}}}{{{operating-instructions|}}}{{{maintenance-instructions|}}}{{{disposal-instructions|}}}{{{design-files|}}}{{{schematics|}}}{{{bom|}}}{{{tool-list|}}}{{{software|}}}|Instructions data}} | ||
+ | |label51 = Making instructions | ||
+ | |data51 = {{{making-instructions|}}} | ||
+ | |label52 = Manufacturing files | ||
+ | |data52 = {{{manufacturing-files|}}} | ||
+ | |label53 = Risk assessment | ||
+ | |data53 = {{{risk-assessment|}}} | ||
+ | |label54 = Tool settings | ||
+ | |data54 = {{{tool-settings|}}} | ||
+ | |label55 = Quality instructions | ||
+ | |data55 = {{{quality-instructions|}}} | ||
+ | |label56 = Operating instructions | ||
+ | |data56 = {{{operating-instructions|}}} | ||
+ | |label57 = Maintenance instructions | ||
+ | |data57 = {{{maintenance-instructions|}}} | ||
+ | |label58 = Disposal instructions | ||
+ | |data58 = {{{disposal-instructions|}}} | ||
+ | |label59 = Design files | ||
+ | |data59 = {{{design-files|}}} | ||
+ | |label61 = Schematics | ||
+ | |data61 = {{{schematics|}}} | ||
+ | |label62 = BOM | ||
+ | |data62 = {{{bom|}}} | ||
+ | |label63 = Tool list | ||
+ | |data63 = {{{tool-list|}}} | ||
+ | |label64 = Software | ||
+ | |data64 = {{{software|}}} | ||
|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 68: | Line 104: | ||
|data85 = {{{manifest-author-email|}}} | |data85 = {{{manifest-author-email|}}} | ||
}}{{#set: | }}{{#set: | ||
− | |||
|Has keyword = {{{keywords|}}}|+sep | |Has keyword = {{{keywords|}}}|+sep | ||
|Has use = {{{uses|}}}|+sep | |Has use = {{{uses|}}}|+sep | ||
− | | | + | |Variant of = {{{variant-of|}}} |
− | | | + | |Author = {{{authors|}}}|+sep |
|Has status = {{ucfirst:{{{status|}}}}} | |Has status = {{ucfirst:{{{status|}}}}} | ||
|Was made = {{{made|}}} | |Was made = {{{made|}}} | ||
Line 83: | Line 118: | ||
|Has cost currency = {{{estimated-cost-currency|}}} | |Has cost currency = {{{estimated-cost-currency|}}} | ||
|Has estimated cost = {{{estimated-cost-amount|}}} | |Has estimated cost = {{{estimated-cost-amount|}}} | ||
− | | | + | |Sustainable Development Goal = {{{sdg|}}}|+sep |
+ | |Location = {{{location|}}} | ||
+ | |Location cache = {{#if:{{{location|}}}|{{{location}}}~[[{{FULLPAGENAME}}]]~{{#if:{{{image|}}}|[[File:{{{image}}}|200px]]}}}} | ||
|Type = Device | |Type = Device | ||
− | }}<noinclude>{{Documentation}}</noinclude> | + | }}<noinclude>{{Documentation/infobox|Device|Devices}}</noinclude> |
Latest revision as of 14:58, 25 January 2021
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 = | countries-of-design = | uses = | documentation-is-translation-web = | countries-of-replication = | manifest-author-email = | image = | estimated-cost-currency = | status = | caption = | manifest-author-name = | manifest-date-updated = | replicated = | estimated-cost-amount = | affiliations = | documentation-home = | date-completed = | documentation-is-translation-manifest = | keywords = | sdg = | documentation-is-translation-language = | documentation-language = | manifest-language = | materials = | date-updated = | variant-of = | date-published = | made = | manifest-author-affiliation = }}
Example
Status | Prototype |
---|---|
Made? | Yes |
Replicated? | Yes |
Published | 2019 |
Completed | 2018 |
Updated | 2020 |
Designed in | Argentina |
Replicated in | Mexico |
Cost | USD $ 123.00 |
Sustainable Development Goals |
SDG01 No poverty SDG13 Climate action |
{{Infobox device | countries-of-design = Argentina | countries-of-replication = Mexico | image = Ecoladrillo.jpg | estimated-cost-currency = USD | status = Prototype | caption = Finished product. | replicated = Yes | estimated-cost-amount = 123.00 | date-completed = 2018 | sdg = SDG01 No poverty, SDG13 Climate action | date-updated = 2020 | date-published = 2019 | made = Yes }}
See also
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image | Main image of the page
| File | suggested |
Caption | caption | Caption for the main image.
| String | optional |
Keywords | keywords | Search keywords, separated by commas. | String | optional |
Uses | uses | Practical uses of this project, separated by commas. | String | optional |
Variant of | variant-of | no description | Page | optional |
Authors | authors | Authors of this project, separated by commas. | User | suggested |
Status | status | Project status.
| Page | optional |
Made? | made | Was this project actually made?
| Boolean | optional |
Replicated? | replicated | Was this project replicated without the help of the original authors?
| Boolean | optional |
Date completed | date-completed | Date on which this project was completed.
| Date | optional |
Date published | date-published | Date on which this project was published.
| Date | optional |
Date updated | date-updated | Date on which this project was last updated.
| Date | optional |
Countries of design | countries-of-design | Countries where this project was designed, separated by commas.
| Page | optional |
Countries of replication | countries-of-replication | Countries where this project was replicated, separated by commas.
| Page | optional |
Affiliations | affiliations | Organizations affiliated to this project, separated by commas. | String | optional |
Materials | materials | Materials involved in this project, separated by commas. | String | optional |
Estimated cost currency | estimated-cost-currency | Currency of the estimated cost.
| String | optional |
Estimated cost amount | estimated-cost-amount | Amount of the estimated cost.
| Number | optional |
Sustainable Development Goals | sdg | Sustainable Development Goals to which this project contributes, separated by commas.
| Page | optional |
Documentation-home | documentation-home | no description | Unknown | optional |
Documentation-language | documentation-language | no description | Unknown | optional |
Documentation-is-translation-title | documentation-is-translation-title | no description | Unknown | optional |
Documentation-is-translation-manifest | documentation-is-translation-manifest | no description | Unknown | optional |
Documentation-is-translation-web | documentation-is-translation-web | no description | Unknown | optional |
Documentation-is-translation-language | documentation-is-translation-language | no description | Unknown | optional |
Manifest-language | manifest-language | no description | Unknown | optional |
Manifest-date-updated | manifest-date-updated | no description | Unknown | optional |
Manifest-author-name | manifest-author-name | no description | Unknown | optional |
Manifest-author-affiliation | manifest-author-affiliation | no description | Unknown | optional |
Manifest-author-email | manifest-author-email | no description | Unknown | optional |