跳至內容

模組:Storm categories/categories/doc

對Wikipedia

此頁面為 模組:Storm categories/categories 的說明文件

模板:High-use This page contains the tropical cyclone category data for Module:Storm 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
  • q (to be done) – the Wikidata entity 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"]