Meryam Sahin (talk | contribs)
No edit summary
Meryam Sahin (talk | contribs)
No edit summary
 
Line 2: Line 2:
Links connect wiki pages with related content, external websites, and files.
Links connect wiki pages with related content, external websites, and files.
== Create links ==
== Create links ==
To create a link, select the '''Insert link''' option in the visual editor or press <code>Ctrl+K</code>. A dialog opens where you can select the type of link and specify the link target.<br>[[File:Insert link.png|alt=Dialog box with a link the page "Templates"|center|thumb|Linking pages]] <br>
To create a link, select the '''Insert link''' option in the visual editor or press <code>Ctrl+K</code>. A dialog opens where you can select the type of link and specify the link target.<br>[[File:visualeditor-insert-link-dialog.png|alt=Dialog box with a link to the page "Templates"|center|thumb|Linking pages]]<br>
VisualEditor supports the following link types:
VisualEditor supports the following link types:
*'''Wiki link''': Link to a page in the current wiki or to a page in another wiki in the BlueSpice Galaxy.
*'''Wiki link''': Link to a page in the current wiki or to a page in another wiki in the BlueSpice Galaxy.
Line 32: Line 32:
#Paste the anchor link into the link field using <code>Ctrl+V</code>.
#Paste the anchor link into the link field using <code>Ctrl+V</code>.
#Select '''Insert'''.
#Select '''Insert'''.
[[File link.png|alt=Mouse pointer hovering over the anchor icon next to a section heading|center|thumb|200x200px|Anchor link]]
[[File:visualeditor-anchor-link.png|alt=Mouse pointer hovering over the anchor icon next to a section heading|center|thumb|200x200px|Anchor link]]
===Link to an external website===
===Link to an external website===
'''Create an external link''':
'''Create an external link''':
Line 40: Line 40:
#Enter the web address.
#Enter the web address.
#Select '''Insert'''.
#Select '''Insert'''.
[[File link.png|alt=External link tab with a link to wikipedia.org|center|thumb|300x300px|Linking to an external website]]
[[File:visualeditor-external-link.png|alt=External link tab with a link to wikipedia.org|center|thumb|300x300px|Linking to an external website]]
{{Textbox|boxtype=note|header=Note:|text=Use [[Special:LinkSearch]] to find external links in the wiki. The page also provides access to the related MediaWiki help page.}}
{{Textbox|boxtype=note|header=Note:|text=Use [[Special:LinkSearch]] to find external links in the wiki. The page also provides access to the related MediaWiki help page.}}
===Link to a file page in the wiki===
===Link to a file page in the wiki===
Line 49: Line 49:
#Search for and select the file.
#Search for and select the file.
#Select '''Insert'''.
#Select '''Insert'''.
[[File.png|alt=Insert link dialog with the Link to file tab|center|thumb|300x300px|Insert link to a file]]
[[File:visualeditor-link-to-file.png|alt=Insert link dialog with the Link to file tab|center|thumb|300x300px|Insert link to a file]]
{{Textbox|boxtype=note|header=Note:|text=To create a link that opens a file directly, such as a PDF, use '''Insert''' > '''Images and media''' instead of '''Insert link'''.|icon=yes}}
{{Textbox|boxtype=note|header=Note:|text=To create a link that opens a file directly, such as a PDF, use '''Insert''' > '''Images and media''' instead of '''Insert link'''.|icon=yes}}
==Permalinks==
==Permalinks==
Line 56: Line 56:
#Open the page revision for which the permalink is needed.
#Open the page revision for which the permalink is needed.
#Select '''Copy URL''' in the '''More page actions''' toolbar. <br>
#Select '''Copy URL''' in the '''More page actions''' toolbar. <br>
[[File Share URL.png|alt=Expanded Share page menu with the Copy URL option|center|thumb|300x300px|Copy the permalink]]
[[File:share-page-copy-url.png|alt=Expanded Share page menu with the Copy URL option|center|thumb|300x300px|Copy the permalink]]
'''Copy a permalink from the version history''':
'''Copy a permalink from the version history''':
#Select '''Past revisions of this page''' in the '''Titles action''' toolbar.
#Select '''Past revisions of this page''' in the '''Titles action''' toolbar.
#Select the date of the required revision.
#Select the date of the required revision.
#Copy the URL from the browser address bar.
#Copy the URL from the browser address bar.
[[File version history.png|center|thumb|650x650px|Copy the permalink from the version history|alt=Browser address bar showing the URL of a specific page revision]]
[[File:version-history-copy-url.png|center|thumb|650x650px|Copy the permalink from the version history|alt=Browser address bar showing the URL of a specific page revision]]
The permalink contains the revision ID of the selected page version. It continues to work if the page is moved to a different name.
The permalink contains the revision ID of the selected page version. It continues to work if the page is moved to a different name.
=== Internal permalinks ===
=== Internal permalinks ===
Line 70: Line 70:
#Enter or paste the permalink.
#Enter or paste the permalink.
#Select '''Insert'''.
#Select '''Insert'''.
[[File insert visually.png|alt=Insert link dialog for a PermanentLink|center|thumb|350x350px|Insert an internal permalink]]
[[File:visualeditor-insert-permalink.png|alt=Insert link dialog for a PermanentLink|center|thumb|350x350px|Insert an internal permalink]]
==Advanced configuration==
==Advanced configuration==
===Open internal links in a new browser tab===
===Open internal links in a new browser tab===

Latest revision as of 14:26, 19 August 2026

done
Links connect wiki pages with related content, external websites, and files.

To create a link, select the Insert link option in the visual editor or press Ctrl+K. A dialog opens where you can select the type of link and specify the link target.

Dialog box with a link to the page "Templates"
Linking pages


VisualEditor supports the following link types:

  • Wiki link: Link to a page in the current wiki or to a page in another wiki in the BlueSpice Galaxy.
  • External link: Link to a page on an external website.
  • Link to file: Link to a file description page in the wiki.

Wiki links connect pages within the current wiki or to pages in another wiki in the BlueSpice Galaxy.
Create a wiki link:

  1. Select the text that should become the link.
  2. Select Insert link or press Ctrl+K.
  3. In the Search pages field, enter the name of the target page.
  4. Select the target page from the serach results.
  5. Select Done.

If text is selected before opening the link dialog, VisualEditor uses the selected text as the link text and suggests matching pages.
The search results show the wiki, namespace, and parent page of the target page. This information helps identify the correct page when pages with the same name exist in different wikis or namespaces.

When a wiki link is created in VisualEditor, it is stored in wikitext using the following syntax:

  • Link to a wiki page: [[Page name|link text]]
  • Link to a page in another namespace: [[Namespace name:Page name|link text]]
  • Link to a category page: [[:Category name|link text]]

For a category link, the colon before Category: is required. Without the colon, the page is assigned to the category instead of creating a link to the category page.

  • Link to a page in another wiki: The syntax depends on the interwiki configuration of the wiki. VisualEditor can be used to create these links without entering the wikitext syntax manually.

A page section can be linked directly using an anchor.
Link to a page section:

  1. Open the page containing the section.
  2. In view mode, hover over the section heading and select the link icon that appears next to the heading. This copies the anchor link to the clipboard.
  3. Open the Insert link dialog in the page where the link should be added.
  4. Paste the anchor link into the link field using Ctrl+V.
  5. Select Insert.
Mouse pointer hovering over the anchor icon next to a section heading
Anchor link

Create an external link:

  1. Select the text that should become the link.
  2. Select Insert link or press Ctrl+K.
  3. Select the External link tab.
  4. Enter the web address.
  5. Select Insert.
External link tab with a link to wikipedia.org
Linking to an external website
Note:Use Special:LinkSearch to find external links in the wiki. The page also provides access to the related MediaWiki help page.

Create a link to a file page:

  1. Select the text that should become the link.
  2. Select Insert link or press Ctrl+K.
  3. Select the Link to file tab.
  4. Search for and select the file.
  5. Select Insert.
Insert link dialog with the Link to file tab
Insert link to a file
Note:To create a link that opens a file directly, such as a PDF, use Insert > Images and media instead of Insert link.

A permalink is a link to a specific revision of a page. Unlike a regular page URL, a permalink continues to point to the selected revision even if the page is edited or moved.
Copy a permalink for the current page revision:

  1. Open the page revision for which the permalink is needed.
  2. Select Copy URL in the More page actions toolbar.
Expanded Share page menu with the Copy URL option
Copy the permalink

Copy a permalink from the version history:

  1. Select Past revisions of this page in the Titles action toolbar.
  2. Select the date of the required revision.
  3. Copy the URL from the browser address bar.
Browser address bar showing the URL of a specific page revision
Copy the permalink from the version history

The permalink contains the revision ID of the selected page version. It continues to work if the page is moved to a different name.

An internal permalink can be added to a page as a link. This allows a specific page revision to be referenced directly from another page.
Create an internal permalink:

  1. Open the Special:PermanentLink special page for the required revision.
  2. In VisualEditor, select Insert link or press Ctrl+K.
  3. Enter or paste the permalink.
  4. Select Insert.
Insert link dialog for a PermanentLink
Insert an internal permalink

Advanced configuration

By default, external links open in a new browser tab. Internal links open in the current tab. To open selected internal links in a new browser tab, an administrator can add custom JavaScript to the MediaWiki:Common.js page.
Add the following code to MediaWiki:Common.js:

/**
 * @source https://www.mediawiki.org/wiki/Snippets/Open_specific_links_in_new_window
 * @version 2018-09-15
 */
$( function () {
	$( '#mw-content-text' ).on( 'click', '.newwin > a', function () {
		var otherWindow = window.open();
		otherWindow.opener = null;
		otherWindow.location = this;
		return false;
	} );
} );


To apply this behavior to a link, add the newwin class to the link in wikitext.

For example:

 [[Page name]]