Template:Depticon: Difference between revisions

From Yogstation-13
Jump to navigation Jump to search
(Created a template for department-icons to use in tables)
(No difference)

Revision as of 08:51, 20 April 2020


About

Clickable icon for jobs / departments, intended for use in tables like Guide to Research and Development.

Parameter-Usage

Parameters were named for compact use in tables.

Parameter Example Description
size 64px Optional, icon-size. Default: 32px
rd y Optional, department-switch (R&D). Make sure to set a non-empty value. Do not combine with other switches.
engi y Optional, department-switch (Engineering). Make sure to set a non-empty value. Do not combine with other switches.
sec y Optional, department-switch (Security). Make sure to set a non-empty value. Do not combine with other switches.
med y Optional, department-switch (Medical). Make sure to set a non-empty value. Do not combine with other switches.
serv y Optional, department-switch (Service). Make sure to set a non-empty value. Do not combine with other switches.
sup y Optional, department-switch (Supply). Make sure to set a non-empty value. Do not combine with other switches.

Beware: There is no fallback if no department-switch is provided.

Examples

Minimal

{{Depticon|rd=y}}

{{{size}}}

Adjusted icon-size

{{Depticon
|rd=y
|size=48px
}}

Depticon minskyrd.png

Different departments

Code Example
{{Depticon|rd=y}}
{{{size}}}
{{Depticon|engi=y}}
{{{size}}}
{{Depticon|sec=y}}
{{{size}}}
{{Depticon|med=y}}
{{{size}}}
{{Depticon|serv=y}}
{{{size}}}
{{Depticon|sup=y}}
{{{size}}}

Wrong use: Missing department

{{Depticon}}


Wrong use: Multiple departments

{{Depticon
|engi=y
|med=y
}}

{{{size}}}{{{size}}}