I uploaded a set of icons to my wiki using the SpecialUploadLocal extension. The target folder by default is the images folder of the local wiki. I moved those uploaded (hash sorted) directories and image files to a shared folder. (I have an upload.subdomain to serve the images from that shared folder. I figured such an arrangement would be useful for servicing future wikis. ) However, the Image: page for each icon still has a link to the image path of the local wiki. How do I update these links to reflect the new path? ($wgSharedPath, etc have been set properly.)
rebuildImages.php in the maintenance folder didn't fix (or change) anything for me. And imagetransfer.py of pywikipedia seems to only move or copy images between wikis.
And how do I make these changes in bulk?
Thanks.
Hi,
Is there anyway to generate a batch of wiki pages from scripting directly?
I have a database with thousands of entries and I can display the database contents by some extensions if I create new pages in wiki. The problem is that I need to generate a page for each entry in the external database, which means create thousands of new pages, if not more than that. Since mediawiki stores the contents in a database also, I am wondering whether there is a tool to directly add contents into the wiki database. If no such tools exists, can anyone point me the database schema of wiki database?
Thanks!
Bin
On 21/03/2008, Bin Hu hubin@sfc.keio.ac.jp wrote:
Is there anyway to generate a batch of wiki pages from scripting directly? I have a database with thousands of entries and I can display the database contents by some extensions if I create new pages in wiki. The problem is that I need to generate a page for each entry in the external database, which means create thousands of new pages, if not more than that. Since mediawiki stores the contents in a database also, I am wondering whether there is a tool to directly add contents into the wiki database. If no such tools exists, can anyone point me the database schema of wiki database?
The way that springs to mind is:
1. Generate wikitext from the data. 2. Wrap it in MediaWiki XML. 3. Import.
- d.
On Fri, Mar 21, 2008 at 9:17 AM, David Gerard dgerard@gmail.com wrote:
On 21/03/2008, Bin Hu hubin@sfc.keio.ac.jp wrote:
Is there anyway to generate a batch of wiki pages from scripting directly?
The way that springs to mind is:
- Generate wikitext from the data.
- Wrap it in MediaWiki XML.
- Import.
Or you may want to try pagefromfile.py, part of the pywikipediabot framework:
http://meta.wikimedia.org/wiki/Pagefromfile.py
Joshua
Thank you, David and Joshua. I will test both of them.
Bin
If your sharing variables are set properly, could it be a caching issue?
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Ming Sent: Thursday, March 20, 2008 6:33 PM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] moving image links
I uploaded a set of icons to my wiki using the SpecialUploadLocal extension. The target folder by default is the images folder of the local wiki. I moved those uploaded (hash sorted) directories and image files to a shared folder. (I have an upload.subdomain to serve the images from that shared folder. I figured such an arrangement would be useful for servicing future wikis. ) However, the Image: page for each icon still has a link to the image path of the local wiki. How do I update these links to reflect the new path? ($wgSharedPath, etc have been set properly.)
rebuildImages.php in the maintenance folder didn't fix (or change) anything for me. And imagetransfer.py of pywikipedia seems to only move or copy images between wikis.
And how do I make these changes in bulk?
Thanks.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org