Forum:A new race template from warcraft.huijiwiki.com

From Warcraft Wiki
Jump to navigation Jump to search
Forums: Village pump → A new race template from warcraft.huijiwiki.com
(This topic is archived. Please do not edit this page!)

Hello guys.I'm from a [http--://warcraft.huijiwiki.com Chinese Warcraft Wiki]. We've just finished a new race template, you can visit it [http--://warcraft.huijiwiki.com/p/7235 here] and please feel free to make a copy for wowpedia.

features

  • accept any alias from multiple entry for each race.
    • e.g. annihilan,pitlord,and fatass for anihilan.
  • pick one or multiple subspicies to output multiple icon. If left empty, the template would output a group of default icon from this race.
    • e.g. inputmale;children female to output a male icon and a children female icon from this race.
    • auto-generated template document(supported race list).

maintaining data

  • the data is stored in [http--://warcraft.huijiwiki.com/wiki/MediaWiki:Templatedata/race a json-formatted page]. you may need authority to change content model.
  • the format is shown below:
{
    "data": [
        {
            "id": "cenarius's children", //currently not used, but may be used in the future.
            "alias": ["塞纳留斯的子嗣","cenarius","cenarian","cenarius's children","塞纳留斯","塞纳瑞安"], //any of these aliases could be used to locate this entry.
            "defaultSubtype": ["男性","女性"], //use these subtypes if no subtype parameter are given.
            "link": "塞纳留斯的子嗣", //link to this page
            "text": "塞纳留斯的子嗣", //and show those text
            "subtypes": [
                {
                    "key": "男性",   //subtype name
                    "icon": "IconSmall Cenarian Male.gif"  //and it's icon
                },
                {
                    "key": "女性",
                    "icon": "IconSmall Cenarian Female.gif"
                }
            ]
        },]
}
  • we have the json schema in the document, you can use it to build a json editor.

making a copy

  • to make a copy of this, you need these pages(from warcraft.huijiwiki.com) copied:
    • template:种族, you may need to rename it.
    • module:race, main module.
    • MediaWiki:Templatedata/race, the JSON data source. if you choose another page to put this, remember to modify the pagename in the module.
    • [http--://warcraft.huijiwiki.com/p/658478 project:新版种族模板](optional), the document.

how to contact us


--Chirodsummerset (talk) 05:12, 16 June 2019 (UTC)

Neat, but we're not going to use it. --PcjWowpedia wiki manager (TDrop me a line!C207,729 contributions and counting) 11:30, 16 June 2019 (UTC)