Template:EquipmentInfobox: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1:
<noinclude>
This is the "Equipment" template.
 
{{#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>
<includeonly>
{{#cargo_store:_table=Equipment|name={{{name|}}}|image={{{image|}}}|model={{{model|}}}|subcat={{{subcat|}}}|status={{{status|}}}|reqtraining={{{reqtraining|}}}|reqsupervision={{{reqsupervision|}}}|owner={{{owner|}}}|origin={{{origin|}}}|location={{{location|}}}|maintainers={{{maintainers|}}} }}
{{ Infobox
| abovestyle = background:#1AB91B;
| labelstyle = background:#a2e0a3;
| above = {{{name|}}}
| image = {{#if:{{{image|}}}|[[file:{{{image}}}|{{px|{{{image size|}}}300px|frameless}}]]}}
| label1 = Model
| data1 = {{{model|}}}
Line 9 ⟶ 16:
| data3 = {{{subcat|}}}
| label4 = Status
| data13data4 = {{{originstatus|}}}
| data4 = {{#ifeq: {{{status|}}} | ACNode controlled | [https://london.hackspace.org.uk/members/tools.php View tool status] | {{{status|}}} }}
| label9label5 = Training requirement
| label7 = Consumables
| data7data5 = {{{consumablesreqtraining|}}}
| label8label6 = AccessoriesTraining link
| data8data6 = {{{accessoriestrainlink|}}}
| label7 = ConsumablesOwner
| label9 = Training requirement
| data9 data7 = {{{reqtrainingowner|}}}
| label10label8 = Training linkOrigin
| data10data8 = {{{trainlinkorigin|}}}
| label11 label9 = ACnodeLocation
| data11 data9 = {{{acnodelocation|}}}
| label12 label10 = OwnerMaintainers
| data12 data10 = {{#arraymap:{owner{{maintainers|}}}|,|x|[[x]] }}
| label13 = Origin
| data13 = {{{origin|}}}
| label14 = Location
| data14 = {{{location|}}}
| label15 = Maintainers
| data15 = {{{maintainers|}}}
 
}}
 
[[Category:Equipment]]
{{#if: {{{subcat|}}} | [[Category:{{{subcat|}}}]] | }}<noinclude>
</includeonly>
 
<noinclude>
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->