https://bugzilla.wikimedia.org/show_bug.cgi?id=55561
Web browser: ---
Bug ID: 55561
Summary: Updating existing WikiPage in wikimedia
Product: Datasets
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: General/Unknown
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
Hi,
I need to overwrite an existing Wiki page using Export and Import utility.
I have followed the below steps :
1. Extracted data of an existing Wikipage in XML using the "export utility"
(http://www.mediawiki.org/wiki/Special:Export)
Note : kept the "Include Templates" checkbox untick. Other 2 were ticked.
Eg : abcd.xml
-<mediawiki xmlns="http://www.mediamediawiki.org/wiki "
xmlns:xsl="http://www.w3.org/2001/"
xsl:schemaLocation = "http://www.mediawiki.org/xml/export...." version="0.4"
xml:tang='en">
-<siteinfo>
-<sitename>ABCD</sitename>
-<namespace>Media</namespace>
</siteinfo>
-<page>
<title>NEW</title>
<id>25</id>
-<revision>
<id>12345</id>
<timestamp>2013-10-09</timestamp>
<contributor>
<username>rohi</username>
<id>1</id>
</contributor>
<text xml:space="preserve"> {{ Documenation |name=XYZ
|phonenumber=123456789 }} </text>
</revision>
</page>
</mediawiki>
2. Made below changes in the above XML file.
Changed phonenumber value as"phonenumber=9999999 ".
Deleted the below tags from <revision> tag
<id>12345</id>
<timestamp>2013-10-09</timestamp>
<id>1</id>
Below is updated abcd.xml
-<mediawiki xmlns="http://www.mediamediawiki.org/wiki "
xmlns:xsl="http://www.w3.org/2001/"
xsl:schemaLocation = "http://www.mediawiki.org/xml/export...." version="0.4"
xml:tang='en">
-<siteinfo>
-<sitename>ABCD</sitename>
-<namespace>Media</namespace>
</siteinfo>
-<page>
<title>NEW</title>
<id>25</id>
-<revision>
<contributor>
<username>rohi</username>
</contributor>
<text xml:space="preserve"> {{ Documenation |name=XYZ
|phonenumber=9999999 }} </text>
</revision>
</page>
</mediawiki>
3. Imported the above XML file.
Is this this the correct procedure to overwrite an existing Wikipage?
Do I need to add or remove any tags ?
Thanks
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l