A homepage for Wikipedia that can be used for alternative URLs, such as wikipedia.se. Has a search box for Wikipedia and space for information about chapter, user group or similar.
Based on Wikimedia.de developed by Wikimedia Deutschland.
It's recommended to use venv.
Install dependencies:
pip install -r requirements.txt
Start with:
flask run
Add --debug
when developing to make your life easier.
Used internally to fetch search suggestions.
Used internally to go to a Wikipedia page.
Used to get a preview of a banner without saving it. Uses variables
under banner
from config.yaml. Parameters url
and selector
can
be used to use content from another URL in the preview. See
config.yaml for details.
Saves banner content for subsequent visits. Uses variables under
banner
from config.yaml.
These scripts can help with setting up, but aren't used during
runtime. They're located in the maintenance
folder.
Generates the placeholder strings for the search field, e.g. "Search Wikipedia" for English, for each search language in the config. Each string is retrieved from the search field on that language version of Wikipedia.