Jump to content

Template:Printer: Difference between revisions

From Swarthmore Knowledge Base
No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{| class="wikitable"
{{#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"
! Department
! Department
| [[Department::{{{Department|}}}]]
| [[Department::{{{Department|}}}]]
Line 17: Line 13:
|-
|-
! Access
! Access
| {{#arraymap:{{{Access|}}}|,|x|[[Access::x]] {{PrinterCategoryMapper|x}} |<br />}}
| {{#arraymap:{{{Access|}}}|,|x|[[Access::x]]|,}}
|-
|-
! Print Release Station
! Print Release Station
| [[Print Release Station::{{{Print Release Station|}}}]]
| [[Print Release Station::{{{Print Release Station|}}}]]
|}
|}
 
{{#arraymap:{{{Access|}}}|,|@@@|
[[Category:Printers]]</includeonly>
  {{#switch:@@@
<noinclude>
    | Employees = [[Category:FacStaff Printer]]
<templatedata>
    | Students  = [[Category:Student Printer]]
{
  }}
"params": {
|}}
"Department": {
[[Category:NoFS]]
"type": "string",
{{#invoke:PrinterInstructionsLookup|getInstructions}}</includeonly>
"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>

Latest revision as of 21:36, 22 July 2026