no edit summary
''"Crear uno, dos, tres... mil Wikipedias" Comandante Ernesto Wales''
=== How to Create a new wikipedia activity or update
a existing activity ===
This page describes how to generate the data files needed to create a wikipedia activity like
and this will show you the content in wiki format of the selected page.
At this stage, the process will be slow, because
need to search for every template
and do all the templates substitutions.
To have faster results we will apply templates substitutions in all the pages.
== Optimze the data and download images ==
To expand the templates need go out of the data directory:
When finish, you need
change again to the data directory:
The option --delete_all is used to remove the old index
If you want include images in your wikipedia activity can go again to your data directory and do:
This command will download the images included in the pages in favorites.txtIf you want include the images in all the pages, should do:
in another directory to acelerate the process.
to point to your new data files or create a new different file, for example activity_pt.py.
If you create a new file, you will need modify the file activity/activity.info to point to this new file.
Now, you can test your changes, starting the wikipedia server:
In any web browser in the same computer you can look to a page, to check if is working:
In this example, look at the page "Energía" pointing to '''http://localhost:8000/wiki/Energía'''
You can create a new icon too, or modify the existing activity/activity-wikipedia-es.svg file.