Template:MaterialInfoBox: Difference between revisions

From CoMakingSpace Wiki

m typo
m Cleanup
 
(6 intermediate revisions by 2 users not shown)
Line 4: Line 4:
|synonyms=DE: Nägel,<br>Drahtstifte
|synonyms=DE: Nägel,<br>Drahtstifte
|available=yes
|available=yes
|donation=3 ct
|location=[[Wood Workshop|wood workshop]]
|location=[[workshop]]
|tools=[[hammers]], [[pincers]],<br>[[Punches#Drift Punch|drift punch]]
|tools=[[hammers]], [[pincers]],<br>[[Punches#Drift Punch|drift punch]]
|used with=[[wood]], [[Wood Glue|wood glue]]
|contains=usually galvanized iron<br>("wire nails") or steel
|contains=usually galvanized iron<br>("wire nails") or steel
|similar=[[screws]], [[staples]], [[rivets]]
|similar=[[screws]], [[staples]], [[rivets]]
Line 20: Line 20:
|synonyms=
|synonyms=
|available=
|available=
|donation=
|location=
|location=
|tools=
|tools=
|used with=
|contains=
|contains=
|similar=
|similar=
Line 35: Line 35:
|synonyms=DE: Nägel,<br>Drahtstifte
|synonyms=DE: Nägel,<br>Drahtstifte
|available=yes
|available=yes
|donation=3 ct
|location=[[Wood Workshop|wood workshop]]
|location=[[workshop]]
|tools=[[hammers]], [[pincers]],<br>[[Punches#Drift Punch|drift punch]]
|tools=[[hammers]], [[pincers]],<br>[[Punches#Drift Punch|drift punch]]
|used with=[[wood]], [[Wood Glue|wood glue]]
|contains=usually galvanized iron<br>("wire nails") or steel
|contains=usually galvanized iron<br>("wire nails") or steel
|similar=[[screws]], [[staples]], [[rivets]]
|similar=[[screws]], [[staples]], [[rivets]]
Line 60: Line 60:
{{!}} On Site?
{{!}} On Site?
{{!}} {{{available}}}
{{!}} {{{available}}}
|}}
|-
{{#if: {{{donation|}}} |
{{!}}-
{{!}} Suggested [[Project:Donation Boxes|Donation]]:
{{!}} {{{donation|}}}
|}}
|}}
|-
|-
Line 76: Line 70:
| Suggested Tools:
| Suggested Tools:
| {{{tools|}}}
| {{{tools|}}}
|-
{{#if: {{{used with|}}} |
{{!}}-
{{!}} Used with:
{{!}}  {{{used with}}}
|}}
|-
|-
{{#if: {{{contains|}}} |
{{#if: {{{contains|}}} |
Line 89: Line 89:
|}}  
|}}  
|}
|}
<noinclude>
== Template Parameters ==
<templatedata>
{
"params": {
"material name": {
"label": "The name of your material",
"description": "The name of your material",
"example": "Nails",
"type": "string",
"required": true
},
"image": {
"label": "An image for your material (example.jpg)",
"description": "The file name of the image which represents your material the best.",
"type": "wiki-file-name",
"suggested": true
},
"synonyms": {
"label": "Synonyms",
"description": "Synonyms for the name of the material which might help others searching for this material. E.g. provide german names.",
"suggested": true
},
"available": {
"label": "Availability indictor",
"description": "An indicator, whether the material is available at the CoMakingSpace",
"type": "boolean"
},
"location": {
"label": "Material location",
"description": "The place the material is located at the CoMakingSpace",
"example": "[[Location::Wood Workshop]]",
"type": "string",
"suggested": true
},
"tools": {
"label": "Tools",
"description": "A list of tools the material can be used with",
"example": "[[hammers]]",
"type": "string"
},
"used with": {
"label": "Used with",
"description": "Anything else (e.g. other materials) the material is used with",
"example": "[[Wood Glue]]",
"type": "string"
},
"contains": {
"label": "Contains",
"description": "Anything the material contains you deem important",
"type": "string"
},
"similar": {
"label": "Similar Material",
"description": "A list of materials that are similar to the one you describe"
}
},
"description": "Provide information about a material you have used or know."
}
</templatedata>
</noinclude>

Latest revision as of 00:44, 2 December 2024

MaterialInfoBox

Example: Nails

Synonyms: DE: Nägel,
Drahtstifte
On Site? yes
Location: wood workshop
Suggested Tools: hammers, pincers,
drift punch
Used with: wood, wood glue
Contains: usually galvanized iron
("wire nails") or steel
Similar (More or Less): screws, staples, rivets

We call everything that is consumed and incorporated into a project a "material" - this InfoBox is intended to provide a quick and easy overview over each material, similar to the MachineInfoBox and ToolInfoBox.

Documentation

To use this template, simply copy this code into your page and enter the relevant parameters:

{{MaterialInfoBox
|material name=
|image=
|synonyms=
|available=
|location=
|tools=
|used with=
|contains=
|similar=
}}

For example, entering the following leads to the box on the right:

{{MaterialInfoBox
|material name=Example: Nails
|image=Alte Nägel.jpg
|synonyms=DE: Nägel,<br>Drahtstifte
|available=yes
|location=[[Wood Workshop|wood workshop]]
|tools=[[hammers]], [[pincers]],<br>[[Punches#Drift Punch|drift punch]]
|used with=[[wood]], [[Wood Glue|wood glue]]
|contains=usually galvanized iron<br>("wire nails") or steel
|similar=[[screws]], [[staples]], [[rivets]]
}}

You can also leave a field empty and it will either disappear or be filled with a default value. Make frequent use of the "Show preview" button while editing and it should be clear.

Please also check whether your page matches one of the material categories and, if so, categorize it so it is found more easily!

MaterialInfoBox

Unnamed Material

Synonyms: or in German?
Suggested Tools:

Template Parameters

Provide information about a material you have used or know.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
The name of your materialmaterial name

The name of your material

Example
Nails
Stringrequired
An image for your material (example.jpg)image

The file name of the image which represents your material the best.

Filesuggested
Synonymssynonyms

Synonyms for the name of the material which might help others searching for this material. E.g. provide german names.

Unknownsuggested
Availability indictoravailable

An indicator, whether the material is available at the CoMakingSpace

Booleanoptional
Material locationlocation

The place the material is located at the CoMakingSpace

Example
[[Location::Wood Workshop]]
Stringsuggested
Toolstools

A list of tools the material can be used with

Example
[[hammers]]
Stringoptional
Used withused with

Anything else (e.g. other materials) the material is used with

Example
[[Wood Glue]]
Stringoptional
Containscontains

Anything the material contains you deem important

Stringoptional
Similar Materialsimilar

A list of materials that are similar to the one you describe

Unknownoptional