New function Language::getParentLanguage().
[mediawiki.git] / docs / export-demo.xml
blob591f675c581109e54cd59cd79af4cbc634aa873d
1 <mediawiki xmlns="http://www.mediawiki.org/xml/export-0.8/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.8/ http://www.mediawiki.org/xml/export-0.8.xsd" version="0.8" xml:lang="en">
2   
3   <!-- Optional global configuration info -->
4   <siteinfo>
5     <!-- Site name, as set in $wgSitename -->
6     <sitename>DemoWiki</sitename>
7     
8     <!-- Forgot where you got this set? -->
9     <base>http://example.com/wiki/Main_Page</base>
10     
11     <!-- Source software version -->
12     <generator>MediaWiki 1.20</generator>
13     
14     <!-- Title case sensitivity options of the wiki this data came from -->
15     <!-- May be 'first-letter', 'case-sensitive', or 'case-insensitive' -->
16     <case>first-letter</case>
17     
18     <!-- Defined namespace keys on the source wiki. -->
19     <namespaces>
20       <namespace key="-2" case="first-letter">Media</namespace>
21       <namespace key="-1" case="first-letter">Special</namespace>
22       <namespace key="0" case="first-letter" />
23       <namespace key="1" case="first-letter">Talk</namespace>
24       <namespace key="2" case="first-letter">User</namespace>
25       <namespace key="3" case="first-letter">User talk</namespace>
26       <namespace key="4" case="first-letter">DemoWiki</namespace>
27       <namespace key="5" case="first-letter">DemoWIki talk</namespace>
28       <namespace key="6" case="first-letter">File</namespace>
29       <namespace key="7" case="first-letter">File talk</namespace>
30       <namespace key="8" case="first-letter">MediaWiki</namespace>
31       <namespace key="9" case="first-letter">MediaWiki talk</namespace>
32       <namespace key="10" case="first-letter">Template</namespace>
33       <namespace key="11" case="first-letter">Template talk</namespace>
34       <namespace key="12" case="first-letter">Help</namespace>
35       <namespace key="13" case="first-letter">Help talk</namespace>
36       <namespace key="14" case="first-letter">Category</namespace>
37       <namespace key="15" case="first-letter">Category talk</namespace>
38     </namespaces>
39   </siteinfo>
40   
41   <!-- The rest of the data will be a series of page records -->
42   <page>
43     <!-- Titles are listed here in text form, with namespace prefix   -->
44     <!-- if any, and spaces rather than the underscores used in URLs. -->
45     <title>Page title</title>
46     
47     <!-- Namespace in canonical form -->
48     <ns>0</ns>
49     
50     <!-- The page's immutable page_id number in the source database.  -->
51     <!-- Page ID numbers are kept across page moves, but may change   -->
52     <!-- if a page is deleted and recreated.                          -->
53     <id>1</id>
54     
55     <!-- Tag wether this article is a redirect and its target -->
56     <!-- This corresponds to the page_is_redirect in the page table -->
57     <redirect title="Target" />
58     
59     <!-- If restricted, the ACL is listed here raw. -->
60     <restrictions>edit=sysop:move=sysop</restrictions>
61     
62     <!-- With a series of revision records... -->
63     
64     <!-- Remember this is XML; if you must use a regex-based extractor -->
65     <!-- in place of a standard XML parser, be very careful.           -->
66     <!-- * Don't forget to decode character entities!                  -->
67     <!-- * If using a 'loose' XML parser, ensure that whitespace is    -->
68     <!--    preserved in the <text> elements.                          -->
69     <revision>
70       <!-- Unique revision ID number (rev_id) in the source database.  -->
71       <!-- This number uniquely identifies the revision on that wiki.  -->
72       <id>100</id>
73       <!-- revision id of the parent revision -->
74       <parentid>99</parentid>
75       <timestamp>2001-01-15T13:15:00Z</timestamp>
76       <contributor>
77         <username>Foobar</username>
78         <id>42</id>
79       </contributor>
80       <minor />
81       <comment>I have just one thing to say!</comment>
82       <text xml:space="preserve" bytes="25">A bunch of [[text]] here.</text>
83       <sha1>5x0ux8iwjrbmfzgv6pkketxgkcnpr7h</sha1>
84       <model>wikitext</model>
85       <format>text/x-wiki</format>
86     </revision>
87     
88     <revision>
89       <id>99</id>
90       <timestamp>2001-01-15T13:10:27Z</timestamp>
91       <contributor>
92         <ip>10.0.0.2</ip>
93       </contributor>
94       <comment>new!</comment>
95       <text xml:space="preserve" bytes="24">An earlier [[revision]].</text>
96       <sha1>etaxt3shcge6igz1biwy3d4um2pnle4</sha1>
97       <model>wikitext</model>
98       <format>text/x-wiki</format>
99     </revision>
100   </page>
101   
102   <page>
103     <title>Talk:Page title</title>
104     <ns>1</ns>
105     <id>2</id>
106     <revision>
107       <id>101</id>
108       <timestamp>2001-01-15T14:03:00Z</timestamp>
109       <contributor><ip>10.0.0.2</ip></contributor>
110       <comment>hey</comment>
111       <text xml:space="preserve" bytes="47">WHYD YOU LOCK PAGE??!!! i was editing that jerk</text>
112       <sha1>ml80vmyjlixdstnywwihx003exfzq9j</sha1>
113       <model>wikitext</model>
114       <format>text/x-wiki</format>
115     </revision>
116   </page>
117   
118   <page>
119     <title>File:Some image.jpg</title>
120     <ns>6</ns>
121     <id>3</id>
122     <revision>
123       <id>102</id>
124       <timestamp>2001-01-15T20:34:12Z</timestamp>
125       <contributor><username>Foobar</username><id>42</id></contributor>
126       <comment>My awesomeest image!</comment>
127       <text xml:space="preserve" bytes="52">This is an awesome little imgae. I lurves it. {{PD}}</text>
128       <sha1>mehom37npwkpzhaiwu3wyr0egalumki</sha1>
129       <model>wikitext</model>
130       <format>text/x-wiki</format>
131     </revision>
132     <upload>
133       <timestamp>2001-01-15T20:34:12Z</timestamp>
134       <contributor><username>Foobar</username><id>42</id></contributor>
135       <comment>My awesomeest image!</comment>
136       <filename>Some_image.jpg</filename>
137       <src>http://upload.wikimedia.org/commons/2/22/Some_image.jpg</src>
138       <size>12345</size>
139     </upload>
140   </page>
141   
142   <!-- or a series of logitem records, but normaly page and logitem never exist both in one file -->
143   <logitem>
144     <id>15</id>
145     <timestamp>2008-10-23T03:20:32Z</timestamp>
146     <contributor>
147       <username>Wikimedian</username>
148       <id>12345</id>
149     </contributor>
150     <comment>content was: 'I think this was a silly edit'</comment>
151     <type>delete</type>
152     <action>delete</action>
153     <logtitle>Silly page name</logtitle>
154     <params xml:space="preserve" />
155   </logitem>
156   
157 </mediawiki>