Template:EquipmentGallery: Difference between revisions
From CoMakingSpace Wiki
NitramLegov (talk | contribs) (Created page with "{{#if: {{{machines|}}} | == Machines == {{#ask: [[Location::{{PAGENAME}}]] Category:Machines | ?Has image | ?Has caption | format=gallery | navigation=auto | imageproperty=Has image | captionproperty=Has caption | sort=Has caption | redirects=- | widths = 200 | limit=500 }} }} {{#if: {{{tools|}}} | == Other Tools== {{#ask: [[Location::{{PAGENAME}}]] Category:Tools | ?Has image | ?Has caption | format=gallery | navigation=auto | imageproperty=Has image | caption...") |
NitramLegov (talk | contribs) m (debugging :)) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#if: {{{machines|}}} | | {{#if: {{{machines|}}} | | ||
== Machines == | == Machines == | ||
{{#ask: [[Location::{{PAGENAME}}]] [[Category:Machines]] | {{#ask: [[Location::{{#if: {{{location|}}} |{{{location}}}| {{PAGENAME}} }} ]] [[Category:Machines]] | ||
| ?Has image | | ?Has image | ||
| ?Has caption | | ?Has caption | ||
| ?MachineType | |||
| format=gallery | | format=gallery | ||
| navigation=auto | | navigation=auto | ||
Line 9: | Line 10: | ||
| captionproperty=Has caption | | captionproperty=Has caption | ||
| sort=Has caption | | sort=Has caption | ||
| redirects= | | redirects=MachineType | ||
| widths = 200 | | widths = 200 | ||
| limit=500 | | limit=500 | ||
Line 18: | Line 19: | ||
{{#if: {{{tools|}}} | | {{#if: {{{tools|}}} | | ||
== Other Tools== | == Other Tools== | ||
{{#ask: [[Location::{{PAGENAME}}]] [[Category:Tools]] | {{#ask: [[Location::{{#if:{{{location|}}}|{{{location}}}|{{PAGENAME}}}}]] [[Category:Tools]] | ||
| ?Has image | | ?Has image | ||
| ?Has caption | | ?Has caption | ||
Line 32: | Line 33: | ||
}} | }} | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"machines": { | |||
"label": "Machines", | |||
"description": "Show machine gallery?", | |||
"type": "boolean" | |||
}, | |||
"tools": { | |||
"label": "Tools", | |||
"description": "Show Tool gallery?", | |||
"type": "boolean" | |||
} | |||
}, | |||
"description": "This template adds a gallery of tools at the location which equals to {{PAGENAME}}.\n\nYou can control whether it should show a gallery of machines and/or tools by setting the respective parameters:" | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 22:12, 24 October 2022
This template adds a gallery of tools at the location which equals to {{PAGENAME}}. You can control whether it should show a gallery of machines and/or tools by setting the respective parameters:
Parameter | Description | Type | Status | |
---|---|---|---|---|
Machines | machines | Show machine gallery? | Boolean | optional |
Tools | tools | Show Tool gallery? | Boolean | optional |