Template:EquipmentInfobox: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(7 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
| data11data4 = {{{acnodestatus|}}}
| data4 = {{#ifeq: {{{status|}}} | ACNode controlled | [https://london.hackspace.org.uk/members/tools.php View tool status] | {{{status|}}} }}
| label5 = LastTraining updatedrequirement
| data5 = {{#show: {{FULLPAGENAMEreqtraining|}} | ?Modification date}}
| label6 = LastTraining updated bylink
| data6 = {{#show: {{FULLPAGENAMEtrainlink|}} | ?Last editor is}}
| label7 = ConsumablesOwner
| data7 = {{{consumablesowner|}}}
| label8 = AccessoriesOrigin
| data8 = {{{accessoriesorigin|}}}
| label9 = Training requirementLocation
| data9 = {{{reqtraininglocation|}}}
| label10 = Training linkMaintainers
| data10 = {{#arraymap:{trainlink{{maintainers|}}}|,|x|[[x]] }}
| label11 = ACnode
| data11 = {{{acnode|}}}
| label12 = Owner
| data12 = {{{owner|}}}
| 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! -->