Scripts used on the factorio wiki.
Common.js - Scripts used for more than one module of wiki scripts; location on the wiki.
Infobox-move.js - Scripts used to move the infoboxes. Used once. Currently not on the wiki because they don't need to be used again.
Bot_common.js - All scripts that can only be used by User:BilkaBot because they are located on the bot's common.js page.
Other js files: Misc scripts that are not not used regularly
util.py - Utility functions, such as logging in. Needs the bot-credentials.json file. Format of that file:
{
"username": "<Name of the bot>",
"password": "<Password for the bot, base64encoded>"
}
Encoding the password:
import base64
print(base64.b64encode('<password>'.encode('utf8')).decode('utf8'))
analytics.py - Put the top pages pulled from google analytics onto the wiki. Needs analytics.csv and totals_analytics.csv.
get_analytics.py - Get the analytics from Matomo and save them in analytics.csv and totals_analytics.csv. Needs the matomo-credentials.json file. Format of that file:
{
"token": "<the matomo api token>"
}
new_fff.py - Get the latest FFF and put it on a page if it isn't already on there.
new_version.py - If provided the forum post number and version number it will put it on a page if it isn't already on there.
redirects.py - Generates a list of redirects, including how many pages link to them. Puts the list on a page.
wanted_pages.py - Generates a list of wanted pages (red links), including how many pages link to them and for wanted language pages some info about the English page. Puts the list on a page.
generate_full_types.py - Read the Factorio source files to semi-automatically generate the documentation for a given prototype.
infobox_updating.py - Updates the infoboxes on the wiki. Needs the newest version of these files as input.
misc_scripts.py - Misc scripts that are not not used regularly
Other files in this repo:
prototype-types.json - Mapping of prototype page names to actual prototype types from 2019-01-21, used by (now removed) prototype_types_on_individual_pages() script.
Dependencies: