Module:Class/doc

Usage
This module implements Template:Class, Template:Class/icon and Template:Class/colour.

Documentation for Module:Class/definition.json
Following are notes documenting the model for the class definition JSON.


 * The top-level JSON object contains a number of objects. Each is either a class definition, or an alias. The keys are "class codes" that can be used as input. The keys containing class definitions are the canonical class codes. Class codes should be lowercase (except the special code ) and canonical class codes are, so far, strictly alphabetic (, not  )
 * An alias should be an object with exactly one property   that contains the canonical class code string.
 * A class definition can have a number of properties:
 * : (string) The root of a category name for articles of the quality class. For example, the top-level category for featured articles is Category:FA-Class articles, and subject-level categories might exist at "Category:FA-Class subject articles", so its root is.
 * (object) An object containing colour-related properties; each value within should be a string that can be used as a CSS colour value, e.g.
 * (object) An object containing colour-related properties; each value within should be a string that can be used as a CSS colour value, e.g.


 * : (string) a colour string reflecting a base background colour
 * : (string) a colour string reflecting a suitable colour to use for text on a black background
 * : (string) a colour string reflecting a suitable colour to use for text on a white background
 * (object) An object containing icon-related properties:
 * : (string) A filename, without  prefix, preferably formatted with underscores, e.g.
 * : (boolean) Whether the icon should be displayed by default—usually only high quality ranks display icons by default
 * : (boolean)  if the   property refers to a file that is not public domain or CC0-licensed. When a file is PD/CC0 and thus this property , we can disable image linking and alt text, which is good for accessibility for purely-decorative images.
 * (object) An object containing label strings. All the label properties are particularly tentative.
 * : (string) A label string describing an adjective that could be used to describe a page with this class. Prefer lowercase or title case. This property is highly tentative.
 * : (string) A label string describing a noun phrase that could be used to describe a page with this class. Prefer lowercase or title case. This property is highly tentative.
 * : (string) A label string describing a short name for the class that can be used in context. This may frequently be the same as the class code, but should usually be capitalized (e.g.  or  ). One particular precedent imported to this property is that class code   uses   as its short label. This property is highly tentative.
 * : (string) A label string with a tooltip that should be used to describe the class if more details are needed. This property is optional and probably should only be specified if needed.
 * : (string) The full page name of a wiki page describing the quality class, preferably formatted with spaces, e.g.
 * At the moment, there's no definition of which properties might be mandatory or optional for class definitions; for now, it's probably safest to assume that "label" properties are mandatory.
 * Tentatively a special  object, using capitalization to separate it from other keys, defines defaults that can be used. This should either be a complete object (all properties mandatory) or an alias to a complete object. In English Wikipedia's case this is currently an alias to the   class definition.
 * At the moment, there's no definition of which properties might be mandatory or optional for class definitions; for now, it's probably safest to assume that "label" properties are mandatory.
 * Tentatively a special  object, using capitalization to separate it from other keys, defines defaults that can be used. This should either be a complete object (all properties mandatory) or an alias to a complete object. In English Wikipedia's case this is currently an alias to the   class definition.