Help:Links

From STIQ

Jump to: navigation, search
PD
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.

There are four sorts of links in MediaWiki:

  1. internal links to other pages in the wiki
  2. external links to websites
  3. inter-wiki links (links to other wikis)
  4. inter-language links to other language versions of the same wiki

To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already, it is displayed in blue, empty pages are displayed in red. Selflinks to the current page are not transformed in URLs but displayed in bold.

The first letter of the target page is automatically capitalized and spaces are represented as underscores (typing an underscore in the link will have a similar effect as typing a space, but is not recommended, since the underscore will also be shown in the text).

Contents

How to link

Description You type You get
Internal link [[Main Page]] Main Page
Category link [[:Category:Help]] Category:Help
Piped link [[Main Page|different text]] different text
Anchor link [[#External links|Anchor link]] Anchor link
External link http://mediawiki.org http://mediawiki.org
Internal link to image file [[media:example.jpg]] media:example.jpg
External link,

different title

[http://mediawiki.org MediaWiki] MediaWiki
External link,

unnamed

[http://mediawiki.org] [1]
External link,

same host unnamed

[http://{{SERVERNAME}}/pagename] [2]
Interwiki link [[Wikipedia:MediaWiki]] Wikipedia:MediaWiki
mailto mailto:info@example.org mailto:info@example.org
mailto unnamed [mailto:info@example.org] [3]
mailto named [mailto:info@example.org info] info
redirect #REDIRECT [[Main Page]] Main Page
Tip for wiki admins: Which protocols (like http:) are allowed for links is controlled by the $wgUrlProtocols setting.
Tip for wiki admins: To remove the 'external link image' from next to each of the external links, add the following to the page located at MediaWiki:Monobook.css on your wiki.
#bodyContent a.external,
#bodyContent a[href ^="gopher://"] {
        background: none;
        padding-right: 0;
}

External links

MetaWiki: Help:Link

>== Template == <onlyinclude><div class="LanguageLinks"> <table width="100%"> <tr valign="top" style="background: #EEF3E2"> <td style="width: 25px; padding-left: 0.5em;">Languages</td> <td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;">Languages:&nbsp;</td><td style="padding: 1px 1em 0; background: #F6F9ED;"> English {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/ar |  • {{#if: Help:Links|العربية| العربية}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/br |  • {{#if: Help:Links|Brezhoneg| Brezhoneg}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/ca |  • {{#if: Help:Links|Català| Català}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/cs |  • {{#if: Help:Links|Česky| Česky}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/de |  • {{#if: Help:Links|Deutsch| Deutsch}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/el |  • {{#if: Help:Links|Ελληνικά| Ελληνικά}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/es |  • {{#if: Help:Links|Español| Español}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/fa |  • {{#if: Help:Links|فارسی| فارسی}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/fi |  • {{#if: Help:Links|Suomi| Suomi}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/fr |  • {{#if: Help:Links|Français| Français}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/he |  • {{#if: Help:Links|עברית| עברית}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/hu |  • {{#if: Help:Links|Magyar| Magyar}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/id |  • {{#if: Help:Links|Bahasa Indonesia| Bahasa Indonesia}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/it |  • {{#if: Help:Links|Italiano| Italiano}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/ja |  • {{#if: Help:Links|日本語| 日本語}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/ko |  • {{#if: Help:Links|한국어| 한국어}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/mr |  • {{#if: Help:Links|मराठी| मराठी}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/nl |  • {{#if: Help:Links|Nederlands| Nederlands}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/no |  • {{#if: Help:Links|‪Norsk (bokmål)‬| ‪Norsk (bokmål)‬}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/oc |  • {{#if: Help:Links|Occitan| Occitan}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/pl |  • {{#if: Help:Links|Polski| Polski}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/pt |  • {{#if: Help:Links|Português| Português}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/ro |  • {{#if: Help:Links|Română| Română}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/ru |  • {{#if: Help:Links|Русский| Русский}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/sq |  • {{#if: Help:Links|Shqip| Shqip}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/sr |  • {{#if: Help:Links|Српски / Srpski| Српски / Srpski}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/sv |  • {{#if: Help:Links|Svenska| Svenska}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/th |  • {{#if: Help:Links|ไทย| ไทย}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/vi |  • {{#if: Help:Links|Tiếng Việt| Tiếng Việt}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/yue |  • {{#if: Help:Links|粵語| 粵語}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/zh |  • {{#if: Help:Links|中文| 中文}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/zh-hans |  • {{#if: Help:Links|‪中文(简体)‬| ‪中文(简体)‬}}|}} {{#ifexist: {{#if: Help:Links | Help:Links | {{#if: Help | Help:}}Links}}/zh-hant |  • {{#if: Help:Links|‪中文(繁體)‬| ‪中文(繁體)‬}}|}} </td></tr></table></div></onlyinclude>



Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page


CLICK HERE


Syntax

{{{Languages|PageName}}}
  • 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 {{{Languages|MediaWiki}}} and not {{{Languages|MediaWiki/fr}}}).

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 {{{Languages}}}, 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. Main Page/ja<tt>, <tt>Main Page/fr, 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/ar Arabic
Main Page/br Breton
Main Page/ca Catalan
Main Page/cs Czech
Main Page/de German
Main Page/el Greek
Main Page/es Spanish
Main Page/fa Persian
Main Page/fi Finnish
Main Page/fr French
Main Page/he Hebrew
Main Page/hu Hungarian
Main Page/id Indonesian
Main Page/it Italian
Main Page/ja Japanese
Main Page/ko Korean
Main Page/mr Marathi
Main Page/nl Nederlands
Main Page/no Norwegian
Main Page/oc Occitan
Main Page/pl Polish
Main Page/pt Portugese
Main Page/ro Romanian
Main Page/ru Russian
Main Page/sq Albanian
Main Page/sr Serbian
Main Page/sv Swedish
Main Page/th Thai
Main Page/vi Vietnamese
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: Languages

Personal tools
Noteworthy