Jump to content

Module:Storm categories/categories/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Anthony Appleyard (talk | contribs) at 00:34, 3 February 2022 (Anthony Appleyard moved page Module:Tropical cyclone categories/categories/doc to Module:Storm categories/categories/doc without leaving a redirect: Requested by Chlod at WP:RM/TR: Module's scope has now expanded to include other non-tropical storms (such as tornadoes). As such, the name "Tropical cyclone categories" is unfitting. This module includes many subpages (some are submodules, others are documentation pages) which require the page mover r...). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This page contains the tropical cyclone category data for Module:Tropical cyclone categories.

Each category is expected to contain the following information:

  • ID – the ID is derived from the key/index of the category in the cats table
    • This ID must be in lowercase and have no special symbols; the module will take care of data sanitization.
  • color – the hexadecimal code of the category's color, without
  • name – the name of the category
  • sortkey – the sortkey of the category
    • Give decent spacing in between keys for future categories.
  • icon (incomplete) – the icon of the category in wikitext
  • basin (to be done) – a table (list) of basins to which this category applies to
  • scale (to be done) – a wikilink (without brackets) leading to the scale of this category

Aliases are defined at the bottom of the module. They are in the following format:, where actual is the ID of the category:

cats["alias"] = cats["actual"]