Difference between revisions of "Template:Infobox device"
(35 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
− | |||
|category = Devices | |category = Devices | ||
|above = [[Device]] | |above = [[Device]] | ||
|title = {{{title|}}} | |title = {{{title|}}} | ||
|image = {{{image|}}} | |image = {{{image|}}} | ||
− | |||
|caption = {{{caption|}}} | |caption = {{{caption|}}} | ||
|label1 = Description | |label1 = Description | ||
|data1 = {{{description|}}} | |data1 = {{{description|}}} | ||
− | |label2 = | + | |label2 = Keywords |
− | |data2 = {{#arraymap:{{{ | + | |data2 = {{#arraymap:{{{keywords|}}}|,|@|{{Property|Has keyword|@}}}} |
− | |label3 = | + | |label3 = Uses |
− | |data3 = {{#arraymap:{{{ | + | |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 = | + | |label6 = Status |
− | |data6 = {{#if:{{{ | + | |data6 = {{#if:{{{status|}}}|{{Property|Has status|{{{status}}}}}}} |
− | |label7 = | + | |label7 = Made? |
− | |data7 = {{#if:{{{made|}}}|{{Property| | + | |data7 = {{#if:{{{made|}}}|{{Property|Was made|{{{made}}}}}}} |
− | |label8 = | + | |label8 = Replicated? {{#info:Was this project made independently by someone other than the authors and without their guidance?}} |
− | |data8 = {{#if:{{{ | + | |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 = | + | |label14 = Affiliations |
− | |data14 = {{#arraymap:{{{ | + | |data14 = {{#arraymap:{{{affiliations|}}}|,|@|[[:@|{{PAGENAME:@}}]]|<br>}} |
− | |label15 = | + | |label15 = Materials |
− | |data15 = {{#arraymap:{{{ | + | |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}}}}} | ||
|label17 = Sustainable Development Goals | |label17 = Sustainable Development Goals | ||
− | |data17 = {{#arraymap:{{{ | + | |data17 = {{#arraymap:{{{sdg|}}}|,|@|{{Property|Contributes to SDG|@}}|<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 108: | ||
}}{{#set: | }}{{#set: | ||
|Has description = {{{description|}}} | |Has description = {{{description|}}} | ||
− | |||
|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 | + | |Has status = {{ucfirst:{{{status|}}}}} |
− | | | + | |Was made = {{{made|}}} |
− | | | + | |Was replicated = {{{replicated|}}} |
|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 | + | |Has affiliation = {{{affiliations|}}}|+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 = {{{ | + | |Contributes to SDG = {{{sdg|}}}|+sep |
+ | |Location = {{{location|}}} | ||
+ | |Location cache = {{#if:{{{location|}}}|{{{location}}}~[[{{FULLPAGENAME}}|{{#if:{{{title|}}}|{{{title}}}|{{FULLPAGENAME}}}}]]~{{#if:{{{image|}}}|[[File:{{{image}}}|200px]]}}}} | ||
|Type = Device | |Type = Device | ||
− | }}<noinclude>{{Documentation}}</noinclude> | + | }}<noinclude>{{Documentation/infobox|Device|Devices}}</noinclude> |
Latest revision as of 14:38, 9 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 = | 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
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | Infobox title, if different from the page title.
| String | optional |
Image | image | Main image of the page
| File | suggested |
Caption | caption | Caption for the main image.
| String | optional |
Description | description | Brief description of this project | 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 |