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)
(Interne Links)
Line 6: Line 6:
  
  
== Interne Links ==
+
== Internal Links ==
  
Interne Links sind Links zu anderen Stellen dieses Wikis. Im einzelnen können das sein:
+
Internal links are links to other parts of this Wiki. These can be:
  
* Links zu "normalen" anderen Artikeln bzw. Seiten innerhalb des Wikis
+
* Links to "normal" other articles and pages within the Wiki
* Links zu Abschnitten/Unterabschnitten des eigenen Artikels bzw. der eigenen Seite
+
* Links to sections/sub-sections in one's own article or own page
* Links zu Abschnitten/Unterabschnitten innerhalb anderer Artikel bzw. Seiten
+
* Links to sections/sub-sections in other articles or pages
* Links zu Spezialseiten und anderen Seiten aus anderen Namensräumen
+
* Links to special pages and other pages from other namespaces
* Links zu noch nicht existierenden Artikeln bzw. Seiten
+
* Links to articles or pages not yet in existence
  
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.
+
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.
  
Um solche Links zu erzeugen, können Sie aus der Formatierleiste oberhalb des Bearbeitungsfeldes folgendes Symbol anklicken:
+
To generate such links, you can click the following symbol from the format bar above the edit field:
  
 
[[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 title, 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 ===
+
=== Deviant 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 different 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 deviant link text, first annotate 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/sub-sections ===
  
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>== title such as ==</nowiki></tt> or a <tt><nowiki>=== title 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 place a link within a page (therefore for example within one's own article) to another section or subsection, enter the notation <tt><nowiki>[[#title_of_section]]</nowiki></tt>. Therefore, for example, a link on this page, which is annotated in the form <tt><nowiki>[[#External_links|external links]]</nowiki></tt> will lead to the section [[#External_links|external links]] further down on the page. To set an appropriate link to a different page, first annotate 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> den folgenden Link: [[How do I format my contents?#Tables|How do I create tables?]]. This leads directly to the sub-section 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 title of the section or sub-section. While the anchor name is generated from the title 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 titles. The respective anchors are defined before this.
  
 
[[Image:Wiki-ankernamen.gif]]
 
[[Image:Wiki-ankernamen.gif]]

Revision as of 11:12, 8 September 2006


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/sub-sections in one's own article or own page
  • Links to sections/sub-sections 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 from 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 title, 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".

Deviant 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 different 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 deviant link text, first annotate 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/sub-sections

Each section introduced by a == title such as == or a === title such as === automatically becomes an anchor for links. This applies both for the current page and for all other pages in the Wiki. To place a link within a page (therefore for example within one's own article) to another section or subsection, enter the notation [[#title_of_section]]. Therefore, for example, a link on this page, which is annotated in the form [[#External_links|external links]] will lead to the section external links further down on the page. To set an appropriate link to a different page, first annotate 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?]] den folgenden Link: How do I create tables?. This leads directly to the sub-section on tables.

The problem with links to anchors is that they cannot annotate the normal title of the section or sub-section. While the anchor name is generated from the title 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 titles. The respective anchors are defined before this.

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.

Interwiki-Links

Zahlreiche Wikis verwenden die gleiche Wiki-Software wie unser Wiki: MediaWiki. Dazu gehört natürlich zuallererst das berühmte Vorbild Wikipedia. Wikipedia wird von der Wikimedia Stiftung getragen, die auch für andere Wikis verantwortlich ist, beispielsweise für Wiktionary (Wörterbuch für Wortschatz, Wortherkunft usw.), Wikinews (News) oder Wikibooks (Sammlung von Sach- und Handbüchern in Wiki-Form). Daneben verwenden aber auch viele unabhängige Anbieter die gleiche Software. Ein Beispiel ist 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 Diskussionsseite zur Seite "Interwiki map".

Angenommen, Sie möchten einen Interwiki-Link auf das Wiki-Book XML: Managing Data Exchange setzen (der voranstehende Link hier ist ein externer Link, kein Interwiki-Link). In diesem Fall können Sie notieren:

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

Das erzeugt in der Präsentationsansicht folgenden Link: XML: Managing Data Exchange. Der Link erscheint also ohne das für externe Links typische Symbol. Das verwendete Präfix wikibooks 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.

Externe 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:

 Was 'bibbern' auf Englisch heißt, erfahren Sie unter http://dict.tu-chemnitz.de/dings.cgi?lang=de&query=bibbern&dlink=self

Daraus wird in der Präsentationsansicht:

Was 'bibbern' auf Deutsch heißt, erfahren Sie unter 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 <nowiki>(URL-Adresse)</nowiki> setzen. Beispiel:

 Die Startseite ist unter <nowiki>http://127.0.0.1:803/</nowiki> erreichbar

Daraus wird in der Präsentationsansicht:

Die Startseite ist unter http://127.0.0.1:803/ erreichbar

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:

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

Das erzeugt in der Präsentationsansicht die Ausgabe: 'bibbern' auf Englisch

Weitere Informationen

Weitere Informationen finden Sie im offiziellen MediaWiki-Handbuch auf der Seite Help:Link.