Views

Difference between revisions of "How do I link to other contents or URLs?"

The Wiki of Unify contains information on clients and devices, communications systems and unified communications. - Unify GmbH & Co. KG is a Trademark Licensee of Siemens AG.

Jump to: navigation, search
(Abweichende Linktexte)
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="breadcrumb">
+
{{Breadcrumb|en|Wie verlinke ich auf andere Inhalte oder URLs?|Getting started}}
{{up}} [[Getting started]] | {{de}} [[Wie verlinke ich auf andere Inhalte oder URLs?]]
 
</div>
 
  
 
__TOC__
 
__TOC__
 +
== Internal Links ==
  
 +
Internal links are links to other parts of this Wiki. These can be:
  
== Interne Links ==
+
* Links to "normal" other articles and pages within the Wiki
 +
* Links to sections/subsections in one's own article or own page
 +
* Links to sections/subsections in other articles or pages
 +
* Links to special pages and other pages from other namespaces
 +
* Links to articles or pages not yet in existence
  
Interne Links sind Links zu anderen Stellen dieses Wikis. Im einzelnen können das sein:
+
All internal links have one thing in common: they are always annotated in the form <tt><nowiki>[[link content]]</nowiki></tt>. In other words, two open square brackets, then the link content and finally two closing square brackets.
  
* Links zu "normalen" anderen Artikeln bzw. Seiten innerhalb des Wikis
+
To generate such links, you can click the following symbol in the format bar above the edit field:
* Links zu Abschnitten/Unterabschnitten des eigenen Artikels bzw. der eigenen Seite
 
* Links zu Abschnitten/Unterabschnitten innerhalb anderer Artikel bzw. Seiten
 
* Links zu Spezialseiten und anderen Seiten aus anderen Namensräumen
 
* Links zu noch nicht existierenden Artikeln bzw. Seiten
 
 
 
Eines haben alle internen Links gemeinsam: sie werden stets in der Form <tt><nowiki>[[Link-Inhalt]]</nowiki></tt> notiert. D.h. zwei öffnende eckige Klammern, dann der Link-Inhalt, und abschließend zwei schließende eckige Klammern.
 
 
 
Um solche Links zu erzeugen, können Sie aus der Formatierleiste oberhalb des Bearbeitungsfeldes folgendes Symbol anklicken:
 
  
 
[[Image:Formatierleiste-internlink.gif]]  
 
[[Image:Formatierleiste-internlink.gif]]  
  
=== Der einfachste Fall ===
+
=== Simplest Scenario ===
  
Der Link-Inhalt besteht im einfachsten Fall einfach aus dem Titel einer anderen Seite des Wikis. So erzeugen Sie mit <tt><nowiki>[[Sandbox]]</nowiki></tt> den Link [[Sandbox]]. Da es innerhalb dieses Wikis eine Seite mit genau diesem Titel gibt, ist der Link in der Präsentationsansicht blau gefärbt und führt beim Anklicken direkt zu der Seite mit dem entsprechenden Titel.
+
The link content in its simplest form comprises the title of another page in the Wiki. For example you create the link [[Sandbox]] with <tt><nowiki>[[Sandbox]]</nowiki></tt>. Because there is a page with precisely this title within this Wiki, the link in the presentation view is colored blue and leads directly to the page with the corresponding title when clicked.
  
Existiert eine so verlinkte Seite nicht, wird der Links rotfarbig dargstellt. So wird beispielsweise der Link <tt><nowiki>[[sandbox]]</nowiki></tt> in der Präsentationsansicht als [[sandbox]] (diese Seite bitte nicht anlegen - danke!) angezeigt. Da unser Wiki zwischen Groß- und Kleinschreibung unterscheidet, ist "Sandbox" ein anderer Titel als "sandbox".
+
If such a linked page does not exist, the link will be colored red. For example, the link <tt><nowiki>[[sandbox]]</nowiki></tt> in the presentation view will therefore be displayed as [[sandbox]] (please do not create this page - thank you!). Because our Wiki is case sensitive, "Sandbox" is a different title to "sandbox".
  
=== Abweichende Linktexte ===
+
=== Variant Link Text ===
  
Häufig kommt es vor, dass der Titel einer zu verlinkenden Seite sprachlich nicht in den aktuellen Fließtext passt. In solchen Fällen können Sie einen abweichenden anklickbaren Linktext angeben. So erzeugen Sie mit <tt><nowiki>[[Sandbox|editing tests]]</nowiki></tt> den Link [[Sandbox|editing tests]], der aber auf die Seite mit dem Titel [[Sandbox]] führt.
+
It often happens that the title of a page that is being linked does not fit linguistically with the current running text. In such cases, you can specify a variant clickable link text. For example, you could create the link [[Sandbox|editing tests]] with <tt><nowiki>[[Sandbox|editing tests]]</nowiki></tt>, which would lead however to the page with the title [[Sandbox]].
  
Um einen abweichenden Linktext anzugeben, notieren Sie zunächst den vollständigen Titel der zu verlinkenden Seite, dahinter einen Senkrechtstrich, und dahinter den gewünschten Linktext.
+
To specify a variant link text, first add the complete title of the page being linked, followed by a vertical bar, followed by the desired link text.
  
Um einen Artikel zu verlinken, dessen Titel als deutschsprachig gekennzeichnet ist (siehe [[How do I create an article?#Article's title|Hinweise zu Artikel-Titeln]]), wird durch Schreiben von <tt><nowiki>[[SIP (de)|]]</nowiki></tt> (Titel mit Senkrechtstrich) das de-Kennzeichen im sichtbaren Linktext nicht übernommen, Beispiel: [[SIP (de)|SIP]].
+
To link an article whose title indicates it is German (see [[How do I create an article?#Article's title|Notes on Article Titles]]), the 'de' identifier is not transferred to the visible link text if you insert <tt><nowiki>[[SIP (de)|]]</nowiki></tt> (title with vertical bar), example: [[SIP (de)|SIP]].
  
=== Links zu Abschnitten/Unterabschnitten ===
+
=== Links to Sections/Subsections ===
  
Jeder Abschnitt, der durch eine <tt><nowiki>== Überschrift wie diese ==</nowiki></tt> oder <tt><nowiki>=== Überschrift wie diese ===</nowiki></tt> eingeleitet wird, wird automatisch zu einem Anker für Links. Das gilt sowohl für die aktuelle Seite als auch für alle anderen Seiten des Wikis. Um einen Link innerhalb einer Seite (also z.B. innerhalb eines eigenen Artikels) zu einem anderen Abschnitt oder Unterabschnitt zu setzen, notieren Sie <tt><nowiki>[[#Überschrift_des_Abschnitts]]</nowiki></tt>. So führt beispielsweise auf dieser Seite ein Link, der in der Form <tt><nowiki>[[#External_links|external links]]</nowiki></tt> notiert ist, zum Abschnitt [[#External_links|external links]] weiter unten auf der Seite. Um einen entsprechenden Link zu einer anderen Seite zu setzen, notieren Sie zunächst den Titel der Seite, dann das Gatterzeichen (#), und dahinter den Ankernamen. So erzeugen Sie beispielsweise mit <tt><nowiki>[[How do I format my contents?#Tables|How do I create tables?]]</nowiki></tt> den folgenden Link: [[How do I format my contents?#Tables|How do I create tables?]]. Er führt direkt zum Unterabschnitt über Tabellen.
+
Each section introduced by a <tt><nowiki>== heading such as ==</nowiki></tt> or a <tt><nowiki>=== heading such as ===</nowiki></tt> automatically becomes an anchor for links. This applies both for the current page and for all other pages in the Wiki. To create a link within a page (for example within one's own article) to another section or subsection, enter the notation <tt><nowiki>[[#heading_of_section]]</nowiki></tt>. Therefore, for example, a link on this page, which is entered in the form <tt><nowiki>[[#External_links|external links]]</nowiki></tt> will lead to the section [[#External_links|external links]] further down the page. To create an appropriate link to a different page, first add the title of the page, then the hash sign and finally the anchor name. You could therefore, for example, create the following link with <tt><nowiki>[[How do I format my contents?#Tables|How do I create tables?]]</nowiki></tt>: [[How do I format my contents?#Tables|How do I create tables?]]. This leads directly to the subsection on tables.
  
Das Problem bei Links zu Ankern ist, dass Sie nicht die normale Überschrift des Abschnitts oder Unterabschnitts notieren können. Der Ankername wird zwar aus dem Überschriftentext gebildet, darf jedoch beispielsweise keine Leerzeichen enthalten. Diese werden durch Unterstriche (_) ersetzt. Auch Sonderzeichen usw. werden ersetzt. Im Zweifelsfall müssen Sie in der Präsentationsansicht der Seite die HTML-Quelltextansicht in Ihrem Browser öffnen. Dort suchen Sie dann nach h2- und h3-Überschriften. Davor werden die zugehörigen Anker definiert.
+
The problem with links to anchors is that they cannot annotate the normal heading of the section or subsection. While the anchor name is generated from the heading text, it may not for example contain any blanks. These are replaced by underscores (_). Special characters etc. are also replaced. If in doubt, open the HTML source text view in the presentation view of the page in your browser. Then search here for h2 and h3 headings. The respective anchors are defined before this.
  
 
[[Image:Wiki-ankernamen.gif]]
 
[[Image:Wiki-ankernamen.gif]]
  
Die Abbildung zeigt einen Ausschnitt aus dem HTML-Quelltext dieser Seite hier. Die Ankernamen sind das, was in den hier blau dargestellten Passagen steht. Kopieren Sie diese Inhalte und übernehmen Sie sie in Ihre Links zu Ankern.
+
The figure shows an excerpt from the HTML source text of this page here. The anchor names are those from the passages highlighted here in blue. Copy this content and paste it into your links to anchors.
  
== Interwiki-Links ==
+
== Interwiki Links ==
  
Zahlreiche Wikis verwenden die gleiche Wiki-Software wie unser Wiki: [http://www.mediawiki.org/ MediaWiki]. Dazu gehört natürlich zuallererst das berühmte Vorbild [http://en.wikipedia.org/ Wikipedia]. Wikipedia wird von der [http://wikimediafoundation.org/ Wikimedia Stiftung] getragen, die auch für andere Wikis verantwortlich ist, beispielsweise für [http://en.wiktionary.org/ Wiktionary] (Wörterbuch für Wortschatz, Wortherkunft usw.), [http://en.wikinews.org/ Wikinews] (News) oder [http://en.wikibooks.org/ Wikibooks] (Sammlung von Sach- und Handbüchern in Wiki-Form). Daneben verwenden aber auch viele unabhängige Anbieter die gleiche Software. Ein Beispiel ist [http://wikiindex.com/ WikiIndex] (a wiki about wikis).
+
Numerous Wikis use the same Wiki software as our Wiki: [http://www.mediawiki.org/ MediaWiki]. First and foremost here of course is the famous example [http://en.wikipedia.org/ Wikipedia]. Wikipedia is supported by the [http://wikimediafoundation.org/ Wikimedia Foundation], which is also responsible for other Wikis, for example for [http://en.wiktionary.org/ Wiktionary] (dictionary for vocabulary, word extractions, etc.), [http://en.wikinews.org/ Wikinews] (News) or [http://en.wikibooks.org/ Wikibooks] (collection of specialized books and manuals in Wiki form). In addition, however, many independent providers also use the same software. An example is [http://wikiindex.com/ WikiIndex] (a wiki about wikis).
  
Um Links zu Inhalten anderer Wikis dieser Art nicht in Form langer URL-Adressen notieren zu müssen, bietet die MediaWiki-Software die Möglichkeit sogenannter Interwiki-Links an. Solche Links werden wie interne Links notiert, besitzen jedoch ein Präfix. Das Präfix gibt an, welches andere Wiki-Projekt adressiert werden soll. Rufen Sie unsere [[Interwiki map]] auf, um zu sehen, welche Präfixe in diesem Wiki aktuell erkannt werden. Wenn Sie andere Wiki-Projekte vorschlagen möchten, die wir in die Liste aufnehmen sollen, dann melden Sie die entsprechenden Projekte auf der [[Talk:Interwiki map|Diskussionsseite zur Seite "Interwiki map"]].
+
In order not to have to annotate links to contents of other Wikis of this type in the form of long URL addresses, the MediaWiki software offers so-called Interwiki links. Such links are annotated like internal links but have a prefix. The prefix indicates which other Wiki project is to be addressed. Call up our [[Interwiki map]] to see which prefixes are currently recognized in this Wiki. If you would like to propose other Wiki projects that we can add to the list, then simply register the relevant projects on the [[Talk:Interwiki map|Discussion page for the page "Interwiki map"]].
  
Angenommen, Sie möchten einen Interwiki-Link auf das Wiki-Book [http://en.wikibooks.org/wiki/XML:_Managing_Data_Exchange XML: Managing Data Exchange] setzen (der voranstehende Link hier ist ein externer Link, kein Interwiki-Link). In diesem Fall können Sie notieren:
+
Assuming you would like to define an Interwiki link to the Wiki book [http://en.wikibooks.org/wiki/XML:_Managing_Data_Exchange XML: Managing Data Exchange] (the link in question here is an external link, not an Interwiki link). You can enter the following notation in this case:
  
 
  <nowiki>[[wikibooks:XML: Managing Data Exchange|XML: Managing Data Exchange]]</nowiki>.  
 
  <nowiki>[[wikibooks:XML: Managing Data Exchange|XML: Managing Data Exchange]]</nowiki>.  
  
Das erzeugt in der Präsentationsansicht folgenden Link: [[wikibooks:XML: Managing Data Exchange|XML: Managing Data Exchange]]. Der Link erscheint also ohne das für externe Links typische Symbol. Das verwendete Präfix <tt>wikibooks</tt> finden wir in der [[Interwiki map]]. Um im obigen Beispiel das Präfix beim Linktext zu unterdrücken, notieren wir, durch Senkrechtstrich getrennt, den Titel des Wikibooks ohne das Präfix noch einmal.
+
This produces the following link in the presentation view: [[wikibooks:XML: Managing Data Exchange|XML: Managing Data Exchange]]. The link therefore appears without the typical symbol for external links. The <tt>wikibooks</tt> prefix used can be found in the [[Interwiki map]]. To suppress the prefix in the link text in the example above, we annotate the title of the Wiki book again without the prefix, separated by a vertical bar.
  
== Externe Links ==
+
== External Links ==
  
Wenn Sie im Text eine vollständige URL-Adresse notieren, die von der Wiki-Software als solche erkannt wird, dann wird in der Präsentationsansicht automatisch ein externer Link daraus. Wenn Sie also beispielsweise notieren:
+
If you annotate a complete URL address in the text, which is recognized as such by the Wiki software, this will be converted automatically to an external link in the presentation view. For example, if you enter the notation:
  
   Was 'bibbern' auf Englisch heißt, erfahren Sie unter <nowiki>http://dict.tu-chemnitz.de/dings.cgi?lang=de&query=bibbern&dlink=self</nowiki>
+
   To find out what 'bibbern' means in English, refer to <nowiki>http://dict.tu-chemnitz.de/dings.cgi?lang=de&query=bibbern&dlink=self</nowiki>
  
Daraus wird in der Präsentationsansicht:
+
This looks as follows in the presentation view:
  
Was 'bibbern' auf Deutsch heißt, erfahren Sie unter http://dict.tu-chemnitz.de/dings.cgi?lang=de&query=bibbern&dlink=self
+
To find out what 'bibbern' means in English, refer to http://dict.tu-chemnitz.de/dings.cgi?lang=de&query=bibbern&dlink=self
  
Um diesen Automatismus zu unterdrücken, müssen Sie die betroffene URL-Adresse in <tt>&lt;nowiki&gt;(URL-Adresse)&lt;/nowiki&gt;</tt> setzen. Beispiel:
+
To suppress the automatic conversion, you have to place the relevant URL address in <tt>&lt;nowiki&gt;(URL address)&lt;/nowiki&gt;</tt>. Example:
  
   Die Startseite ist unter &lt;nowiki&gt;<nowiki>http://127.0.0.1:803/</nowiki>&lt;/nowiki&gt; erreichbar
+
   The start page can be accessed under &lt;nowiki&gt;<nowiki>http://127.0.0.1:803/</nowiki>&lt;/nowiki&gt;
  
Daraus wird in der Präsentationsansicht:
+
This looks as follows in the presentation view:
  
Die Startseite ist unter <nowiki>http://127.0.0.1:803/</nowiki> erreichbar
+
The start page can be accessed under <nowiki>http://127.0.0.1:803/</nowiki>
  
Selbstverständlich können Sie für externe Links anstelle der URL-Adresse auch eigene Linktexte notieren. Dazu setzen Sie die URL in einfache eckige Klammern und notieren dahinter, durch ein Leerzeichen getrennt, den gewünschten Linktext. Beispiel:
+
You can of course also annotate your own link texts instead of the URL address for external links. To do this, place the URL in simple square brackets followed by the relevant link text, separated by blanks. Example:
  
   <nowiki>[http://dict.tu-chemnitz.de/dings.cgi?lang=de&query=bibbern&dlink=self 'bibbern' auf Englisch]</nowiki>
+
   <nowiki>[http://dict.tu-chemnitz.de/dings.cgi?lang=de&query=bibbern&dlink=self 'bibbern' in English]</nowiki>
  
Das erzeugt in der Präsentationsansicht die Ausgabe: [http://dict.tu-chemnitz.de/dings.cgi?lang=de&query=bibbern&dlink=self 'bibbern' auf Englisch]
+
This looks as follows in the presentation view: [http://dict.tu-chemnitz.de/dings.cgi?lang=de&query=bibbern&dlink=self 'bibbern' in English]
  
== Weitere Informationen ==
+
== Additional Information ==
  
Weitere Informationen finden Sie im offiziellen MediaWiki-Handbuch auf der Seite [http://meta.wikimedia.org/wiki/Help:Link Help:Link].
+
You will find further information in the official MediaWiki manual on the page [http://meta.wikimedia.org/wiki/Help:Link Help:Link].

Latest revision as of 07:34, 27 April 2011

Internal Links

Internal links are links to other parts of this Wiki. These can be:

  • Links to "normal" other articles and pages within the Wiki
  • Links to sections/subsections in one's own article or own page
  • Links to sections/subsections in other articles or pages
  • Links to special pages and other pages from other namespaces
  • Links to articles or pages not yet in existence

All internal links have one thing in common: they are always annotated in the form [[link content]]. In other words, two open square brackets, then the link content and finally two closing square brackets.

To generate such links, you can click the following symbol in the format bar above the edit field:

Formatierleiste-internlink.gif

Simplest Scenario

The link content in its simplest form comprises the title of another page in the Wiki. For example you create the link Sandbox with [[Sandbox]]. Because there is a page with precisely this title within this Wiki, the link in the presentation view is colored blue and leads directly to the page with the corresponding title when clicked.

If such a linked page does not exist, the link will be colored red. For example, the link [[sandbox]] in the presentation view will therefore be displayed as sandbox (please do not create this page - thank you!). Because our Wiki is case sensitive, "Sandbox" is a different title to "sandbox".

Variant Link Text

It often happens that the title of a page that is being linked does not fit linguistically with the current running text. In such cases, you can specify a variant clickable link text. For example, you could create the link editing tests with [[Sandbox|editing tests]], which would lead however to the page with the title Sandbox.

To specify a variant link text, first add the complete title of the page being linked, followed by a vertical bar, followed by the desired link text.

To link an article whose title indicates it is German (see Notes on Article Titles), the 'de' identifier is not transferred to the visible link text if you insert [[SIP (de)|]] (title with vertical bar), example: SIP.

Links to Sections/Subsections

Each section introduced by a == heading such as == or a === heading such as === automatically becomes an anchor for links. This applies both for the current page and for all other pages in the Wiki. To create a link within a page (for example within one's own article) to another section or subsection, enter the notation [[#heading_of_section]]. Therefore, for example, a link on this page, which is entered in the form [[#External_links|external links]] will lead to the section external links further down the page. To create an appropriate link to a different page, first add the title of the page, then the hash sign and finally the anchor name. You could therefore, for example, create the following link with [[How do I format my contents?#Tables|How do I create tables?]]: How do I create tables?. This leads directly to the subsection on tables.

The problem with links to anchors is that they cannot annotate the normal heading of the section or subsection. While the anchor name is generated from the heading text, it may not for example contain any blanks. These are replaced by underscores (_). Special characters etc. are also replaced. If in doubt, open the HTML source text view in the presentation view of the page in your browser. Then search here for h2 and h3 headings. The respective anchors are defined before this.

Wiki-ankernamen.gif

The figure shows an excerpt from the HTML source text of this page here. The anchor names are those from the passages highlighted here in blue. Copy this content and paste it into your links to anchors.

Interwiki Links

Numerous Wikis use the same Wiki software as our Wiki: MediaWiki. First and foremost here of course is the famous example Wikipedia. Wikipedia is supported by the Wikimedia Foundation, which is also responsible for other Wikis, for example for Wiktionary (dictionary for vocabulary, word extractions, etc.), Wikinews (News) or Wikibooks (collection of specialized books and manuals in Wiki form). In addition, however, many independent providers also use the same software. An example is WikiIndex (a wiki about wikis).

In order not to have to annotate links to contents of other Wikis of this type in the form of long URL addresses, the MediaWiki software offers so-called Interwiki links. Such links are annotated like internal links but have a prefix. The prefix indicates which other Wiki project is to be addressed. Call up our Interwiki map to see which prefixes are currently recognized in this Wiki. If you would like to propose other Wiki projects that we can add to the list, then simply register the relevant projects on the Discussion page for the page "Interwiki map".

Assuming you would like to define an Interwiki link to the Wiki book XML: Managing Data Exchange (the link in question here is an external link, not an Interwiki link). You can enter the following notation in this case:

[[wikibooks:XML: Managing Data Exchange|XML: Managing Data Exchange]]. 

This produces the following link in the presentation view: XML: Managing Data Exchange. The link therefore appears without the typical symbol for external links. The wikibooks prefix used can be found in the Interwiki map. To suppress the prefix in the link text in the example above, we annotate the title of the Wiki book again without the prefix, separated by a vertical bar.

External Links

If you annotate a complete URL address in the text, which is recognized as such by the Wiki software, this will be converted automatically to an external link in the presentation view. For example, if you enter the notation:

 To find out what 'bibbern' means in English, refer to http://dict.tu-chemnitz.de/dings.cgi?lang=de&query=bibbern&dlink=self

This looks as follows in the presentation view:

To find out what 'bibbern' means in English, refer to http://dict.tu-chemnitz.de/dings.cgi?lang=de&query=bibbern&dlink=self

To suppress the automatic conversion, you have to place the relevant URL address in <nowiki>(URL address)</nowiki>. Example:

 The start page can be accessed under <nowiki>http://127.0.0.1:803/</nowiki>

This looks as follows in the presentation view:

The start page can be accessed under http://127.0.0.1:803/

You can of course also annotate your own link texts instead of the URL address for external links. To do this, place the URL in simple square brackets followed by the relevant link text, separated by blanks. Example:

 [http://dict.tu-chemnitz.de/dings.cgi?lang=de&query=bibbern&dlink=self 'bibbern' in English]

This looks as follows in the presentation view: 'bibbern' in English

Additional Information

You will find further information in the official MediaWiki manual on the page Help:Link.