|MediaWiki Handbook: Contents, Readers, Editors, Moderators, System admins +/-|
Downloading a MediaWiki page
w:Webpage#Saving_a_web_page shows the possibilities for saving a local copy of a webpage. Alternatively (or in addition) one can copy the wikitext, i.e. the text in the edit box (the source code within the database).
Information in the webpage but not in the wikitext:
- content of templates referred to
- values of variables
- existence at the time of saving of linked internal pages
- date and time of the last edit before saving
- in the Image namespace (Image description pages): the image itself, the image history and the list of pages linking to the image
- in the Category namespace: the lists of subcategories and pages in the category.
Information in the wikitext but not in the webpage:
- comments (even though HTML also allows comments)
When saving a local copy of some MediaWiki pages, note the following.
A link to e.g. the train article in Wikipedia is given in the HTML-code as /wiki/Train . This refers to http://en.wikipedia.org/wiki/Train . Depending on your browser settings the former may be changed into the latter when saving the page. To avoid this, apply View Source and save that.
Put the copy in folder C:\wiki (another drive letter is also possible, but wiki should not be a subfolder) and do not use any file name extension. This way the links work. Inconvenient is that you can not open a file in a folder listing by clicking on it, because of the lack of a file name extension.
A problem with saving the source code is that images are not saved automatically with the page. Saving them separately in a place corresponding to the HTML code is cumbersome, e.g. the first image of the train article would have to be C:/upload/thumb/c/c2/250px-Tile_Hill_train_550.jpg
If the images are more important than the mutual links, then use the browser option to save the webpage with images.
Of course variations are possible by changing the HTML-code oneself, e.g. changing http://en.wikipedia.org to C: and/or adding the file name extension .htm .
On some sites outside Wikimedia, instead of "\wiki" another folder has to be used, see Help:URL.
When downloading pages from different sites to the same folder \wiki on the same drive, note that a page name can only be used once.
Links to other help pages
- Help contents | search (all help pages)
- Meta | Wikinews | Wikipedia | Wikiquote | Wiktionary | commons: | mw: | b: | s:
- Go | Search | Stop words | URL | Namespace | Page name | Section
- Backlinks | Link | Piped link | Interwiki link | Redirect | Category | Image page
- Logging in and preferences
- Logging in | Preferences | User style
- Advanced editing | Editing FAQ | Edit toolbar | Export
- Editing shortcuts
- Tracking changes
- Recent changes (enhanced) | Related changes | Watching pages | Diff
- Page history | Edit summary | User contributions | Minor edit | Patrolled edit
- Style & formatting
- Wikitext examples | Reference card
- HTML in wikitext | HTML elements
- List | Table | Sorting
- Mathematical symbols on English Wikipedia
- Special input and output
- Inputbox | Special characters | Displaying a formula | Images and other uploaded files | EasyTimeline
- Advanced functioning
- Template | Advanced templates | Parser function | ParserFunctions | Parameter default | Variable | Magic word | System message | Substitution
- Array | Calculation
- Page management
- Starting a new page | Renaming (moving) a page | Maintenance | Merging and moving pages | Protecting pages
- Resolving disputes | Deleting a page
- Special pages
- Talk page | Testing | Sandbox
- Lists of resources
- Lists of Categories | Copyrights | Infobox
- Redirect | Reference Desk | Shortcuts | Stub types
Other languages: English (en) +/-