Jump to content

Template:Printer: Difference between revisions

From Swarthmore Knowledge Base
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)}}


Uses the <code>PrinterCategoryMapper</code> template to assign proper categories based on access
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.

Template parameters

ParameterDescriptionTypeStatus
DepartmentDepartment

no description

Stringrequired
LocationLocation

no description

Stringsuggested
Print Queue NameQueue Name

no description

Stringoptional
Printer ModelPrinter Model

no description

Stringoptional
AccessAccess

Who is allowed to use this printer?

Suggested values
Students Employees
Stringoptional
Has Print Release?Print Release Station

no description

Booleanoptional