User:Edward Chernenko/How the bot works

How are the pages about items ("How to obtain", "Used for", top-right infobox, etc.) automatically updated?


 * 1) this bot - https://github.com/edwardspec/fudocgenerator - reads sources of both FU and vanilla assets, and creates a file   - this file contains instructions like "create page A with contents B". It's plaintext and can be opened in any text editor.
 * 2) you feed this file to   - https://www.mediawiki.org/wiki/Manual:Pywikibot - and it autocreates (or edits if they already exist) pages like.
 * 3) after these pages are saved in the wiki, the following tables of Cargo database become filled - Special:CargoTables - where each  line turns into 1 line in the database.
 * 4) this database is then queried by Lua scripts like Module:AutomaticInfoboxItem or Module:ListRecipes - they are indirectly included into articles about items (via those lines like " ")

Precreation of (empty, infobox only) articles about items, as well as uploading their inventory icons and placed object image, happens the same way - bot (1) provides the "import file" for pywikibot to upload them to the wiki.