Jump to content

Help:Downloading pages

From Wikinews, the free news source you can write!
This is a copy of m:Help:Downloading pages using Wikinews-specific templates. Don't edit this page, except to replace the contents with the current version of that master page. To make changes applicable on all projects, edit the master page; to change Wikinews-specific content, edit the templates; to make demos work, copy templates to this project, and images to Wikimedia Commons. Please see the history of the master page for author details. Please note that all meta content is licensed under the GFDL. As a result this page is licensed under the GFDL. - Edit this template

Downloading a MediaWiki page

[edit]

w:Webpage#Saving_a_webpage 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:

  • images
  • 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)

See also XML export, MediaWiki architecture.

Downloading some linked pages

[edit]

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 the 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 MediaWiki User's Guide: URLs.

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.

See also

[edit]
[edit]
Help contents

Reading: Go | Search | URL | Namespace | Page name | Section | Link | Backlinks | Piped link | Interwiki link | Redirect | Variable | Category
Tracking changes: Recent | (enhanced) | Related | Watching pages | Page history | Diff | User contributions | Edit summary | Minor edit
Logging in and preferences: Logging in | Preferences | User style
Editing: Overview | New page | Images/files | Image description page | Special characters | Formula | Table | EasyTimeline | Template | Renaming (moving) a page | Automatic conversion of wikitext | Talk page | Testing || rlc | Meta | Wikibooks | Wikicommons | Wikipedia | Wikiquote | Wikisource | Wiktionary

This is a copy of m:Help:Downloading pages using Wikinews-specific templates. Don't edit this page, except to replace the contents with the current version of that master page. To make changes applicable on all projects, edit the master page; to change Wikinews-specific content, edit the templates; to make demos work, copy templates to this project, and images to Wikimedia Commons. Please see the history of the master page for author details. Please note that all meta content is licensed under the GFDL. As a result this page is licensed under the GFDL. - Edit this template