Template:Printer: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#template_params:Department (property=Department)|Location (property=Location)|Queue Name (property=Queue Name)|Printer Model (property=Printer Model)|Access (list;property=Access)}} | {{#template_params:Department (property=Department)|Location (property=Location)|Queue Name (property=Queue Name)|Printer Model (property=Printer Model)|Access (list;property=Access)|Print Release Station (property=Print Release Station)}} | ||
This template defines a printer. It stores data in Semantic MediaWiki and automatically categorizes the page based on the Access field. | |||
</noinclude><includeonly>{| class="wikitable" | </noinclude><includeonly>{| class="wikitable" | ||
! Department | ! Department | ||
| Line 17: | Line 17: | ||
|- | |- | ||
! Access | ! Access | ||
| {{#arraymap:{{{Access|}}}|,|x|[[Access::x]]}} | | {{#arraymap:{{{Access|}}}|,|x|[[Access::x]] {{PrinterCategoryMapper|x}} |<br />}} | ||
|- | |- | ||
! Print Release Station | ! Print Release Station | ||
| [[Print Release Station::{{{Print Release Station|}}}]] | | [[Print Release Station::{{{Print Release Station|}}}]] | ||
|} | |} | ||
[[Category:Printers]]</includeonly> | [[Category:Printers]]</includeonly> | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"Department": { | |||
"type": "string", | |||
"required": true | |||
}, | |||
"Location": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"Queue Name": { | |||
"type": "string", | |||
"label": "Print Queue Name" | |||
}, | |||
"Printer Model": { | |||
"type": "string" | |||
}, | |||
"Access": { | |||
"type": "string", | |||
"description": "Who is allowed to use this printer?", | |||
"suggestedvalues": [ | |||
"Students", | |||
"Employees" | |||
] | |||
}, | |||
"Print Release Station": { | |||
"type": "boolean", | |||
"label": "Has Print Release?" | |||
} | |||
}, | |||
"description": "Template for managing printer infrastructure data." | |||
} | |||
</templatedata> | |||
</noinclude> | |||
Revision as of 13:53, 14 May 2026
This is the "Printer" template.
It should be called in the following format:
{{Printer
|Department=
|Location=
|Queue Name=
|Printer Model=
|Access=
|Print Release Station=
}}
Edit the page to see the template text.
This template defines a printer. It stores data in Semantic MediaWiki and automatically categorizes the page based on the Access field.
Template for managing printer infrastructure data.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Department | Department | no description | String | required |
| Location | Location | no description | String | suggested |
| Print Queue Name | Queue Name | no description | String | optional |
| Printer Model | Printer Model | no description | String | optional |
| Access | Access | Who is allowed to use this printer?
| String | optional |
| Has Print Release? | Print Release Station | no description | Boolean | optional |