Wiki source code of MediaWiki Features

Last modified by Arun Reddy on 2009/07/09 15:37

Show last authors
1 =MediaWiki Features=
2
3 This article explains various features of MediaWiki which have to be taken care of during its import into XWiki.
4
5 ===Structure of MediaWiki===
6
7 ====Pages====
8
9 * Wiki Pages : All the Important Wiki Pages are in Main NameSpace.
10
11 * Wiki Talk Pages : And the respective Talk Pages as sub pages or as comments of the respective pages.
12 ( Discussion pages)
13
14 * User Pages : We can use them to create XWiki User objects.
15
16 * Templates : The contents of any page on wiki can be inserted into other pages. Pages that are to be transcluded are called "templates".\\We can treat them as normal Wiki Pages and handle them using include macro.
17
18 * Redirect pages : We can replace the content with the page redirection code.
19
20 * Special Pages : We dont need them.
21
22 * CSS/JS Pages. : We can use Skin Extensions. Save the pages as JSX or SSX objects.
23
24
25
26 ====Files or Attachements====
27
28 The files like images, pdfs and other formats are saved locally in a folder. The main resources folder further has three sub-folders archive, temp, thumb.
29 * Main Folder : Place for latest versions of the files. ( eg : Boston_City_Flow.jpg)
30 * archive : Place for the original image files, that have been replaced by newer versions. (archived pic : 20090610045842!Boston_City_Flow.jpg - Time stamp as Prefix )
31 * thumb : A copy of thumb nail or orginal image.
32
33
34 {{velocity}}{{html}}#info('All the files have to be mapped to XWiki Attachments. And the user should provide path and access to the resource folder.'){{/html}}{{/velocity}}
35
36 ====Permissions====
37
38 * Users: Normal Users can create, edit, create new revisions of existing ones or revert to older versions.
39 * SysOps(System Operators) : Protecting Pages ( cant be edited by User), deleting, blocking users and patrolled edits.
40 * Bureaucrats : Has right to promote users to be sysops (and demote sysops to normal users).
41
42
43 ====Categories====
44
45 {{velocity}}{{html}}#info('MediaWiki Categories can be mapped to tags.'){{/html}}{{/velocity}}
46
47 ====InterWiki Linking====
48 A system of short-handed link labels are used to refer to different projects, in the context of interproject linking.
49 {{code language=html}}
50
51 [[Wikipedia:XWiki_Page]] --> http://en.wikipedia.org/wiki/XWiki_Page --> [[w:XWiki_Page]]
52
53 Wikipedia is replaced by 'w'.
54
55 {{/code}}
56
57
58
59 ====Parser Functions & MediaWiki Magic Words====
60 [[Media Wiki Parser Functions>>http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions]]
61 [[Media Wiki Magic Words>>http://meta.wikimedia.org/wiki/Help:Magic_words]]
62 //
63 To be handled by the MediaWikiSyntax Parser.
64
65
66 //
67 //
68
69 ===MediaWiki Export Formats===
70
71 MediaWiki can be exported in various formats and tools are available.
72
73 * XML format
74 * Directly from Database
75
76
77 ====XML Format Explained====
78
79 XML dumps contain the content of the wiki (wiki pages with all their revisions), without the **site-related data** (it does not contain user accounts, image metadata, logs, etc).
80
81 A typical XML File :
82
83 {{code language=xml}}
84 <mediawiki xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.3/ http://www.mediawiki.org/xml/export-0.3.xsd" version="0.3" xml:lang="en">
85 <siteinfo>
86 <sitename>MediaWiki</sitename>
87 <base>http://www.mediawiki.org/wiki/MediaWiki</base>
88 <generator>MediaWiki 1.15alpha</generator>
89 <case>first-letter</case>
90 <namespaces>
91 <namespace key="-2">Media</namespace>
92 <namespace key="-1">Special</namespace>
93 <namespace key="0"/>
94 <namespace key="1">Talk</namespace>
95 <namespace key="2">User</namespace>
96 <namespace key="3">User talk</namespace>
97 <namespace key="4">Project</namespace>
98 <namespace key="5">Project talk</namespace>
99 <namespace key="6">File</namespace>
100 <namespace key="7">File talk</namespace>
101 <namespace key="8">MediaWiki</namespace>
102 <namespace key="9">MediaWiki talk</namespace>
103 <namespace key="10">Template</namespace>
104 <namespace key="11">Template talk</namespace>
105 <namespace key="12">Help</namespace>
106 <namespace key="13">Help talk</namespace>
107 <namespace key="14">Category</namespace>
108 <namespace key="15">Category talk</namespace>
109 <namespace key="100">Manual</namespace>
110 <namespace key="101">Manual talk</namespace>
111 <namespace key="102">Extension</namespace>
112 <namespace key="103">Extension talk</namespace>
113 </namespaces>
114 </siteinfo>
115 <page>
116 <title>MediaWiki</title>
117 <id>1</id>
118 <revision>
119 <id>65192</id>
120 <timestamp>2007-01-24T19:51:53Z</timestamp>
121 <contributor>
122 <username>Brion VIBBER</username>
123 <id>79</id>
124 </contributor>
125 <minor/>
126 <comment>
127 Protected "[[MediaWiki]]": add cascade [edit=sysop:move=sysop]
128 </comment>
129 <text xml:space="preserve">
130 {{Main page}}
131 <!-- to edit this page, please see [[Project:Main page templates]] -->
132 </text>
133 </revision>
134 </page>
135 </mediawiki>
136
137 {{/code}}
138 Source : [[MediaWiki Page>>http://www.mediawiki.org/wiki/Special:Export/MediaWiki]]
139
140 What is available :
141 * Namespaces.
142 * Contains complete text of every revision of every page.
143 * Contributor details with comments on the revision.
144
145 Whats Not :
146 * Information on Links.
147 * Image metadata not available.
148 * User Data
149 * Deleted Page Content
150 * MultiLanguage Support.
151
152
153 {{velocity}}{{html}}#info('Importing using XML dump being limited is useful in case of importing small number of pages.Where page content is of main concern.'){{/html}}{{/velocity}}
154
155
156
157
158 ====Directly from Database====
159
160 We can directly connect to the database. And create a full import of Wiki. In this case we have access to all the data.
161
162 Whats Available :
163 * Access to complete page content with all revisions.
164 * User Data
165 * Links.
166 * MultiLanguage Support.
167 * Archived and Deleted Page Content.
168
169
170 Whats Not:
171
172 * Database has metadata information of files only. So the user should supply the details of File Resources folder before we map them to XWiki Attachments.
173 (includes Images and other file types. )
174
175 {{velocity}}{{html}}#info('The task is to query the database get the required content and map them to various XWiki Objects.'){{/html}}{{/velocity}}
176