Jump to content

Template:Printer: Difference between revisions

From Swarthmore Knowledge Base
No edit summary
No edit summary
Line 29: Line 29:
|}}
|}}
<!-- Conditional printing instructions -->
<!-- Conditional printing instructions -->
{{#if: {{#pos:{{{Printer Model|}}}|Dymo}}
{{!}}-- Instruction Template Logic --{{!}}
  | {{Printing Instructions for Dymo LabelWriter}}
{{#ifeq: {{{Printer Model|}}} | {{#replace:{{{Printer Model|}}}|Dymo|}}  
   | test
   | {{#arraymap:{{{Access|}}}|,|@@@|
}}{{#arraymap:{{{Access|}}}|,|@@@|
      {{#ifeq: {{{Printer Model|}}} | {{#replace:{{{Printer Model|}}}|Canon|}}  
  {{#switch:@@@
        | | {{#switch: @@@
    | Employees =
            | Employees = {{Printing Instructions for Employees - Canon}}
        {{#if: {{#pos:{{{Printer Model|}}}|Canon}}|{{Printing Instructions for Employees - Canon}}|}}{{#if: {{#pos:{{{Printer Model|}}}|HP}}|{{Printing Instructions for Employees - HP}}|}}
            | Students  = {{Printing Instructions for Students- Canon}}
    | Students =
          }}
        {{#if: {{#pos:{{{Printer Model|}}}|Canon}}|{{Printing Instructions for Students- Canon}}|}}{{#if: {{#pos:{{{Printer Model|}}}|HP}}|{{Printing Instructions for Students - HP}}|}}
      }}
  }}
      {{#ifeq: {{{Printer Model|}}} | {{#replace:{{{Printer Model|}}}|HP|}}  
|}}
        | | {{#switch: @@@
            | Employees = {{Printing Instructions for Employees - HP}}
            | Students = {{Printing Instructions for Students - HP}}
          }}
      }}
    | }}
  | {{Printing Instructions for Dymo LabelWriter}}  
}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>

Revision as of 14:34, 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

Does this printer have a print release station?

Example
Yes
Booleanoptional