Template:EquipmentInfobox: Difference between revisions

From Teesside Hackspace
Content added Content deleted
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
This is the "Equipment" template.
This is the "Equipment" template.


{{#cargo_declare:_table=Equipment|name=String|image=File|model=String|subcat=Page|status=String|reqtraining=Boolean|reqsupervision=Boolean|owner=String|origin=String|location=Page|maintainers=List (,) of Page}}
{{#cargo_declare:_table=Equipment|name=String|image=String|model=String|subcat=Page|status=String|reqtraining=Boolean|reqsupervision=Boolean|owner=String|origin=String|location=String|maintainers=List (,) of Page}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>
Line 10: Line 10:
| labelstyle = background:#a2e0a3;
| labelstyle = background:#a2e0a3;
| above = {{{name|}}}
| above = {{{name|}}}
| image = {{#if:{{{image|}}}|[[file:{{{image}}}|{{px|{{{image size|}}}|frameless}}]]}}
| image = {{#if:{{{image|}}}|[[file:{{{image}}}|300px|frameless]]}}
| label1 = Model
| label1 = Model
| data1 = {{{model|}}}
| data1 = {{{model|}}}
Line 16: Line 16:
| data3 = {{{subcat|}}}
| data3 = {{{subcat|}}}
| label4 = Status
| label4 = Status
| data4 = {{{status|}}}
| data4 = {{#ifeq: {{{status|}}} | ACNode controlled | [https://wiki.teessidehackspace.org.uk/members/toolsView tool status] | {{{status|}}} }}
| label5 = Training requirement
| label7 = Consumables
| data7 = {{{consumables|}}}
| data5 = {{{reqtraining|}}}
| label8 = Accessories
| label6 = Training link
| data8 = {{{accessories|}}}
| data6 = {{{trainlink|}}}
| label7 = Owner
| label9 = Training requirement
| data9 = {{{reqtraining|}}}
| data7 = {{{owner|}}}
| label10 = Training link
| label8 = Origin
| data10 = {{{trainlink|}}}
| data8 = {{{origin|}}}
| label11 = ACnode
| label9 = Location
| data11 = {{{acnode|}}}
| data9 = {{{location|}}}
| label12 = Owner
| label10 = Maintainers
| data12 = {{{owner|}}}
| data10 = {{#arraymap:{{{maintainers|}}}|,|x|[[x]] }}
| label13 = Origin
| data13 = {{{origin|}}}
| label14 = Location
| data14 = {{{location|}}}
| label15 = Maintainers
| data15 = {{{maintainers|}}}


}}
}}

Latest revision as of 21:14, 16 October 2019

This is the "Equipment" template.

This template defines the table "Equipment". View table.



[view] [edit] [history] [purge] Documentation icon Template documentation