Help:Navigation

From OS-Tan Collections Wiki

Jump to: navigation, search

div style=color:#000000; border:solid 1px #A8A8A8; padding:0.5em 1em 0.5em 0.7em; margin:0.5em 0.5em 0.5em 0.5em; background-color:#FFFFFF;font-size:95%; vertical-align:middle;

Important note: When you edit this page, you agree to release your contribution into the Public domain. If you don't want this or can't do this because of license restrictions, please don't edit. This page is one of the Public Domain Help Pages, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Help:Contents for an overview of all pages.
/div

noinclude/noinclude If you look at a page in MediaWiki, you'll find three main navigation elements: The sidebar on the left gives you access to important pages in the Wiki like recent changes or file upload. At the top of the page are the links which belong to the page currently displayed: its associated discussion page, the version history, and - most notably - the edit link. In the top right corner you'll find, as an anonymous user, the link to create an account and login (they are on the same page). As a logged-in user you have a collection of personal links, like the one to your user page or your preferences.

Contents

Sidebar

File:M-en-sidebar.png
Example sidebar, shown on the left of the page

The sidebar is displayed on the left edge of the page below the site logo (if using the default MonoBook skin). This sidebar gives you access to important pages in the Wiki like recent changes or file upload.

Navigation

A click on the logo brings you back to the start page of the wiki. The links take you to important pages in the wiki, they can be configured by site administrators of the individual wikis

onlyincludediv style=font-color:#535068; border:solid 1px #A8A8A8; padding:0.5em 1em 0.5em 0.7em; margin:0.5em 0em; background-color:#FFFFFF;font-size:85%;

File:Tools clipart.png Tip for wiki admins: You can customize the links in the navigation section via Special:Allmessages. For example edit MediaWiki:Sitesupport (displayed name) and MediaWiki:Sitesupport-url (target page). Or create a menu on your own in MediaWiki:Sidebar.

/div/onlyinclude

Template

onlyincludediv class=LanguageLinks table width=100% style=clear: both; border: 1px solid #aaaaaa; border-collapse: collapse; padding: 0.2em; margin: 0; font-size: 85%; margin: 0 1px; tr valign=top style=background: #EEF3E2 td style=width: 25px; padding-left: 0.5em;File:Geographylogo.png/td td style=width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;Languages:nbsp;/tdtd style=padding: 1px 1em 0; background: #F6F9ED; English Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang /td/tr/table/div/onlyinclude

Syntax

nowikiPageName/nowiki
  • PageName (optional) - the name of the page to display language links for. If omitted then the English version of the current page is used. This parameter can normally be omitted, as it is only required if you want to link to a page other than the one you place the template on, which is very uncommon. If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on MediaWiki/fr you would need to use codenowikiMediaWiki/nowiki/code and not codenowikiMediaWiki/fr/nowiki/code).

Usage

The template should only be placed on pages that exist in more than one language, and it should be placed in the same location on each translation of the page.

The English version of a page is always the main version, with all other languages as sub-pages, named using the appropriate language code (see below).

For example, on the Main Page you would include the text codenowiki{{{Languages}}}/nowiki/code, both on Main Page itself, and on each of its language sub-pages. The template automatically creates links to any language sub-pages that exist, e.g. ttMain Page/jatt, ttMain Page/fr/tt, and ignores non-existant languages.

See Project:Language policy for further details about translating pages.

Supported languages

This shows you the name of each language's sub-page (using Main Page as an example). Other languages may be added easily as necessary. Please use the appropriate prefix, as used on Wikipedia when adding a new language. Please do not add languages for which no pages exist yet, as this will increase the time needed to include the template without adding any benefit (languages are only displayed to the user when the relevant page exists).

The link on the language names goes to the Wikipedia in that language. If no Wikipedia in your language exists, do not add pages in that language to MediaWiki.org! This wiki is not the place for language advocacy - please go through the correct channels, and once your language has a Wikipedia then please return to add content here.

Page Name Language
Main Page English
Main Page/br Breton
Main Page/de German
Main Page/es Spanish
Main Page/fi Finnish
Main Page/fr French
Main Page/it Italian
Main Page/id Indonesian
Main Page/he Hebrew
Main Page/ja Japanese
Main Page/ko Korean
Main Page/no Norwegian
Main Page/pl Polish
Main Page/pt Portugese
Main Page/ru Russian
Main Page/sq Albanian
Main Page/yue Cantonese
Main Page/zh Chinese
Main Page/zh-hans Chinese (Simplified)
Main Page/zh-hant Chinese (Traditional)

Example

Here is how the language bar looks on the MediaWiki page: Template loop detected: Template:Languages

Toolbox

The toolbox contains a selection of links which change depending on what type of page you are viewing.

On all pages (except special pages):

  • What links here takes you to a special page that lists the pages on this wiki which contain a link to the current page. This is helpful when you are looking for pages of related information. The What links here information can also be useful when you are refactoring wiki pages and need to check whether links to this page are still relevant after changes in the current page.
  • The Related changes tool lists all recent changes in the pages linked to from the current page. Recent changes to all relevant template pages are included in the resulting page list. The Hide minor edits option that can be set in the user preferences applies, among other things, to Related Changes.

On all pages (including special pages):

  • Upload file displays a special page that allows logged-in users to upload images and other files to the wiki. Uploaded files can be linked-from or embedded-in wiki pages. Uploading files, viewing files on the server, including them in wiki pages and managing the uploaded files is discussed in the managing files section of this manual. This is not displayed if file uploading has been disabled or not enabled in the first place.

onlyincludediv style=font-color:#535068; border:solid 1px #A8A8A8; padding:0.5em 1em 0.5em 0.7em; margin:0.5em 0em; background-color:#FFFFFF;font-size:85%;

File:Tools clipart.png Tip for wiki admins: To enable file uploading someone with access to the MediaWiki installation files needs to edit the codeLocalSettings.php/code file and uncomment or add the option code$wgEnableUploads = true;/code. Uploaded files will be stored in the images folder specified by the code$wgUploadPath/code variable in the codeLocalSettings.php/code. This directory must be writable if file uploads is enabled. The upload location and image uploads settings are described in more detail on the MetaWiki LocalSettings.php page.

/div/onlyinclude

Template

onlyincludediv class=LanguageLinks table width=100% style=clear: both; border: 1px solid #aaaaaa; border-collapse: collapse; padding: 0.2em; margin: 0; font-size: 85%; margin: 0 1px; tr valign=top style=background: #EEF3E2 td style=width: 25px; padding-left: 0.5em;File:Geographylogo.png/td td style=width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;Languages:nbsp;/tdtd style=padding: 1px 1em 0; background: #F6F9ED; English Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang /td/tr/table/div/onlyinclude

Syntax

nowikiPageName/nowiki
  • PageName (optional) - the name of the page to display language links for. If omitted then the English version of the current page is used. This parameter can normally be omitted, as it is only required if you want to link to a page other than the one you place the template on, which is very uncommon. If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on MediaWiki/fr you would need to use codenowikiMediaWiki/nowiki/code and not codenowikiMediaWiki/fr/nowiki/code).

Usage

The template should only be placed on pages that exist in more than one language, and it should be placed in the same location on each translation of the page.

The English version of a page is always the main version, with all other languages as sub-pages, named using the appropriate language code (see below).

For example, on the Main Page you would include the text codenowiki{{{Languages}}}/nowiki/code, both on Main Page itself, and on each of its language sub-pages. The template automatically creates links to any language sub-pages that exist, e.g. ttMain Page/jatt, ttMain Page/fr/tt, and ignores non-existant languages.

See Project:Language policy for further details about translating pages.

Supported languages

This shows you the name of each language's sub-page (using Main Page as an example). Other languages may be added easily as necessary. Please use the appropriate prefix, as used on Wikipedia when adding a new language. Please do not add languages for which no pages exist yet, as this will increase the time needed to include the template without adding any benefit (languages are only displayed to the user when the relevant page exists).

The link on the language names goes to the Wikipedia in that language. If no Wikipedia in your language exists, do not add pages in that language to MediaWiki.org! This wiki is not the place for language advocacy - please go through the correct channels, and once your language has a Wikipedia then please return to add content here.

Page Name Language
Main Page English
Main Page/br Breton
Main Page/de German
Main Page/es Spanish
Main Page/fi Finnish
Main Page/fr French
Main Page/it Italian
Main Page/id Indonesian
Main Page/he Hebrew
Main Page/ja Japanese
Main Page/ko Korean
Main Page/no Norwegian
Main Page/pl Polish
Main Page/pt Portugese
Main Page/ru Russian
Main Page/sq Albanian
Main Page/yue Cantonese
Main Page/zh Chinese
Main Page/zh-hans Chinese (Simplified)
Main Page/zh-hant Chinese (Traditional)

Example

Here is how the language bar looks on the MediaWiki page: Template loop detected: Template:Languages

  • The Special pages tool lists the MediaWiki special pages. In MediaWiki terminology, a special page is one that presents information about the Wiki and/or allows access to administration activities for the wiki. For example, a list of users registered with the wiki, statistics about the wiki such as the number of pages and number of page edits, system logs, a list of orphaned pages, and so on. These special pages are commonly generated when the special page is loaded rather than being stored in the wiki database.
The function and use of the default special pages can be found in the special pages section of this manual.

Page Tabs

File:M-en-pagetabs.png
Default page tabs at the top of the page

The page tabs are displayed at the top of the article to the right of the site logo (if using the default MonoBook skin). These tabs allow you to perform actions or view pages that are related to the current article. The available default actions include: viewing, editing, and discussing the current article. The specific tabs displayed on your pages depend on whether or not you are logged into the wiki and whether you have sysop (administrator) privileges on the wiki. On special pages only the namespace tab is displayed.


Default for all users
namespace (article, help, special page, template, user page etc.)
discussion
edit (may be view source if anonymous editing is enabled, the page is in the MediaWiki namespace or the page is protected)
history
Extra tabs for logged in users
move
watch
Extra tabs for sysops
protect
delete

Extra tabs may be added, or some taken away, by wiki administrators using JavaScript or adding extensions so these may be different depending on which wiki you are using.

User Links

File:M-en-userlinks.png
Default user links at the top right of the page

The user links are displayed at the top far right of the article (if using the default MonoBook skin). These tabs allow the logged-in user to view and edit their user page and wiki preferences. Additionally, the user links allow the user to quickly access their contributions to the wiki and logout.

For anonymous users the user links is replaced by a link to the wiki login page or, if enabled, a link to your ip address and your ip address's talk page.

  • username
    This links to your user page which is where you can put information about yourself, store bits of information you want to remember or whatever else you fancy.
  • my talk
    This links to your discussion page, where people can leave messages for you.
  • preferences
    Allows you to change your personal site preferences.
  • my watchlist
    A list of all pages that you are watching. Pages can be added to this list by clicking 'watch' at the top of the page.
  • my contributions
    A list of all contributions you have made to the wiki.
  • log out
    Click this link to log out of the wiki.

Template

onlyincludediv class=LanguageLinks table width=100% style=clear: both; border: 1px solid #aaaaaa; border-collapse: collapse; padding: 0.2em; margin: 0; font-size: 85%; margin: 0 1px; tr valign=top style=background: #EEF3E2 td style=width: 25px; padding-left: 0.5em;File:Geographylogo.png/td td style=width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;Languages:nbsp;/tdtd style=padding: 1px 1em 0; background: #F6F9ED; English Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang Template:Languages/Lang /td/tr/table/div/onlyinclude

Syntax

nowikiPageName/nowiki
  • PageName (optional) - the name of the page to display language links for. If omitted then the English version of the current page is used. This parameter can normally be omitted, as it is only required if you want to link to a page other than the one you place the template on, which is very uncommon. If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on MediaWiki/fr you would need to use codenowikiMediaWiki/nowiki/code and not codenowikiMediaWiki/fr/nowiki/code).

Usage

The template should only be placed on pages that exist in more than one language, and it should be placed in the same location on each translation of the page.

The English version of a page is always the main version, with all other languages as sub-pages, named using the appropriate language code (see below).

For example, on the Main Page you would include the text codenowiki{{{Languages}}}/nowiki/code, both on Main Page itself, and on each of its language sub-pages. The template automatically creates links to any language sub-pages that exist, e.g. ttMain Page/jatt, ttMain Page/fr/tt, and ignores non-existant languages.

See Project:Language policy for further details about translating pages.

Supported languages

This shows you the name of each language's sub-page (using Main Page as an example). Other languages may be added easily as necessary. Please use the appropriate prefix, as used on Wikipedia when adding a new language. Please do not add languages for which no pages exist yet, as this will increase the time needed to include the template without adding any benefit (languages are only displayed to the user when the relevant page exists).

The link on the language names goes to the Wikipedia in that language. If no Wikipedia in your language exists, do not add pages in that language to MediaWiki.org! This wiki is not the place for language advocacy - please go through the correct channels, and once your language has a Wikipedia then please return to add content here.

Page Name Language
Main Page English
Main Page/br Breton
Main Page/de German
Main Page/es Spanish
Main Page/fi Finnish
Main Page/fr French
Main Page/it Italian
Main Page/id Indonesian
Main Page/he Hebrew
Main Page/ja Japanese
Main Page/ko Korean
Main Page/no Norwegian
Main Page/pl Polish
Main Page/pt Portugese
Main Page/ru Russian
Main Page/sq Albanian
Main Page/yue Cantonese
Main Page/zh Chinese
Main Page/zh-hans Chinese (Simplified)
Main Page/zh-hant Chinese (Traditional)

Example

Here is how the language bar looks on the MediaWiki page: Template loop detected: Template:Languages

Personal tools