Help:Links/cs

Na MediaWiki existuje pět typů odkazů:


 * 1) Interní odkazy na jiné stránky ve wiki
 * 2) Externí odkazy na jiné webové stránky
 * 3) Externí odkazy na interní stránky  ve wiki
 * 4) Interwiki odkazy na jiné webové stránky registrované na wiki předem
 * 5) Interjazykové odkazy na jiné webové stránky registrované jako ostatní jazykové verze wiki

Interní odkazy
Pro přidání interního odkazu vložte jméno cílové stránky ve dvojitých hranatých závorkách. Když editovanou stránku uložíte, uvidíte nový odkaz odkazující na cílovou stránku. Pokud cílová stránka už existuje bude její jméno zobrazené modře, pokud ne, červeně. Je-li cílová stránka totožná s editovanou stránkou, místo odkazu bude text v závorkách zobrazen tučně. (Pokud opravdu potřebujete aby stránka odkazovala sama na sebe, použijte kotvu (viz níže), nebo current page, což vždy odkazuje na začátek zobrazené stránky.)

The first letter of the target page is usually case-insensitive, unless configured otherwise by wiki admins, meaning links can be capitalized or not. The case of every subsequent letter must match exactly. Spaces in the page title may be represented as underscores (i.e., typing an underscore in a link will have the same effect as typing a space), but using underscores in links is not recommended since they will be visible in the page text (this can be prevented by using a pipe; again, examples are shown below).

Externí odkazy
To add an external link, enclose the URL followed by space and the name of the page you want to link to in single square brackets. When you save the page, you'll see the new link pointing to your page, with an arrow icon after it to show that it was coded with single bracket external link syntax, and thus may lead to another site.

Externí odkazy na interní stránky
Pokud chcete přidat odkaz na stránku na té samé wiki za použití URL query parametrů, budete zřejmě muset použít syntaxi externího odkazu.

External link icons
Some MediaWiki installations are set up to use special icons to denote external links to specific file types or using specific protocols. None of these special icons are enabled here on MediaWiki.org, but we present them here for the sake of completeness.

Jak se zbavit automatických odkazů
When you put a URL on a wiki page, it will be automatically converted into an external link, like this:

https://mediawiki.org

To avoid that effect, put the URL between  tags, like this:

&lt;nowiki&gt;https://mediawiki.org&lt;/nowiki&gt;

To get this:

https://mediawiki.org

Odkazy Interwiki
Interwiki links are links with the internal link markup to a website registered in advance. For example, you can link to the article http://en.wikipedia.org/wiki/Sunflower by typing, which will result in a link Sunflower. This works because by default MediaWiki configures  as an "interwiki prefix" that turns into http://en.wikipedia.org/wiki/ when used inside. (It may not work if the admin of your wiki has changed the setting.) Unlike internal links, interwiki links do not use page existence detection, so an interwiki link will appear blue even if the page does not exist on the remote wiki.

Similar to internal page links, you can create piped links, with alternate link label, e.g.  is the link big yellow flower and   is the link Sunflower.

Basically, interwiki links are abbreviations for commonly-used longer external links. A very similar link could be created as.

More details are at Manual:Interwiki and m:Help:Interwiki linking. Your wiki may have a Special:Interwiki page listing the interwiki prefixes it supports;. You can edit the Manual:Interwiki table on your site.

Mezijazykové odkazy
If your wiki has other language versions, you may find “interlanguage links” in the sidebar, just below toolbox in a section titled “.”

Interlanguage links behave similarly to interwiki links (or category links), except that they appear as a list in the sidebar and not within the content of the page (or below it in the categories bar). To create an interlanguage link to the corresponding page in another language, type  anywhere in the page (preferably at the bottom, like category links); the language prefix is the prefix specified at your wiki for the other language version (typically the ISO 639-1 language code). The interlanguage link is unilateral, it does not point back from that page in the other language. For that purpose, an equivalent back-link needs to be placed there as well. It does not work like the "Edit links" in the languages section of Wikipedia-language versions. But it can be used across all name spaces, including 'User:' to point to ones other profiles in other languages.

If you want to make the interlanguage link appear at a specific place in the content of the page rather than in the sidebar, add a colon before the language prefix:
 * &rarr; en:Sunflower

Pokud je odkaz zároveň mezijazykový a interwiki, musí vypadat nějak takto: Sunflower

For more information, see m:Help:Interlanguage link.

Viz též

 * Linked images