|
|
| (9 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}}|,}} | | | {{#arraymap:{{{Access|}}}|,|x|[[Access::x]]|,}} |
| |- | | |- |
| ! Print Release Station | | ! Print Release Station |
| Line 24: |
Line 20: |
| {{#arraymap:{{{Access|}}}|,|@@@| | | {{#arraymap:{{{Access|}}}|,|@@@| |
| {{#switch:@@@ | | {{#switch:@@@ |
| | Employees = [[Category:FacStaff Printer]] | | | Employees = [[Category:FacStaff Printer]] |
| | Students = [[Category:Student Printer]] | | | Students = [[Category:Student Printer]] |
| }} | | }} |
| |}} | | |}} |
| [[Category:Printers]]</includeonly> | | [[Category:NoFS]] |
| <noinclude>
| | {{#invoke:PrinterInstructionsLookup|getInstructions}}</includeonly> |
| <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>
| |