Module:Role

From Space Station 14 Wiki
Revision as of 02:27, 15 March 2025 by Aliser (talk | contribs) (Created blank page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Module documentation
View or edit this documentation (about module documentation)
Uses JSON data
This module uses JSON data pages:

Implements {{Role}}.

How to add/edit/remove a role

Go to the roles JSON file (linked at the top).

Each key is a role name that can be used in the template. These must all be lowercase.

Each value is an object with properties:

{
	"display": "[required] display name aka the label that would be displayed, for example: Atmospheric Technician",
	"icon": "[optional] icon file name, for example: File:JobIconStationEngineer.png",
	"link": "[optional] page name to link to, for example: Station Engineer"
}

Value can also be a string. This is used to make abbreviations. Note that abbreviations are only used to lookup roles, they cannot be displayed.

To make an abbreviation, put the key of another role as a value. For example, to add a an atmosian abbreviation for an Atmospheric Technician:

{
	"atmosian": "atmospheric technician",
	"atmospheric technician": {
		"display": "Atmospheric Technician",
		"icon": "File:JobIconAtmosphericTechnician.png",
		"link": "Atmospheric Technician"
	}
}