2.2.4 Links

No edit summary
Tag: 2017 source edit
No edit summary
Line 10: Line 10:
*files stored on other drives
*files stored on other drives


 
<span><span /><br /></span>
Use the ''Insert link'' menu item in [[Manual:Extension/VisualEditor|VisualEditor]] or use the shortcut ''Ctrl+K''. In both cases, a dialog box opens.
Use the ''Insert link'' menu item in [[Manual:Extension/VisualEditor|VisualEditor]] or use the shortcut ''Ctrl+K''. In both cases, a dialog box opens.
<br />
<span /><span /><br />
[[File:Insert_link.png|alt=Insert link to a wiki page|center|thumb|351x351px|Insert link to a wiki page<br />]]
[[File:Insert_link.png|alt=Insert link to a wiki page|center|thumb|351x351px|Insert link to a wiki page<span /><span /><br />]]


==Link to a wiki page==
==Link to a wiki page==
Line 22: Line 22:
Then click on ''Done''.
Then click on ''Done''.


 
<span><span /><br /></span>
In the source text,  links are created with the following structure:
In the source text,  links are created with the following structure:


Line 39: Line 39:
==Link to a file in the wiki==
==Link to a file in the wiki==
To link a file (for example, a picture or a PDF file) in the current page, go to the ''Link to File'' tab. There, you can search for a file or upload a new file.
To link a file (for example, a picture or a PDF file) in the current page, go to the ''Link to File'' tab. There, you can search for a file or upload a new file.
<br />
<span /><span /><br />
[[File:Links.png|alt=Insert link to a file|center|thumb|350x350px|Insert link to a file]]
[[File:Links.png|alt=Insert link to a file|center|thumb|350x350px|Insert link to a file]]


*'''Search for a file in the wiki and include it as a link:''' Enter the file name and select the desired file. Then click on "Paste". A link to the file has been added to the page. You can then change the displayed link text.
*'''Search for a file in the wiki and include it as a link:''' Enter the file name and select the desired file. Then click on "Paste". A link to the file has been added to the page. You can then change the displayed link text.
*'''Link file to a network drive:''' If you want to connect to a file on your company network, enter the path under "Link to file" in the text field and activate "Network share path (URI)". The file path is entered using the following syntax - <code>[[:file:///Z:/myfolder/vacatio]<nowiki>]</nowiki></code>. this only works if your wiki has been configured to work with network files. This function also depends on your individual browser security settings.<br /><br />[[File:Linkk.png|alt=Link to a network file|center|thumb|300x300px|Link to a network file]]
*'''Link file to a network drive:''' If you want to connect to a file on your company network, enter the path under "Link to file" in the text field and activate "Network share path (URI)". The file path is entered using the following syntax - <code>[[:file:///Z:/myfolder/vacatio]<nowiki>]</nowiki></code>. this only works if your wiki has been configured to work with network files. This function also depends on your individual browser security settings.<span /><span /><br /><span /><span /><br />[[File:Linkk.png|alt=Link to a network file|center|thumb|300x300px|Link to a network file]]


==Link to a file in the local network==
==Link to a file in the local network==
Line 58: Line 58:
For more info about UNC-Links, see: https://www.mediawiki.org/wiki/UNC_links.}}
For more info about UNC-Links, see: https://www.mediawiki.org/wiki/UNC_links.}}


 
<span><span /><br /></span>
'''Insert a link to a local network file:'''
'''Insert a link to a local network file:'''


Line 66: Line 66:
#'''Click''' on the tab ''Link to file.''
#'''Click''' on the tab ''Link to file.''
#'''''Activate''''' ''the switch Netzwerkpfad (URI).'' In the file search field (4) you now see the link symbol.
#'''''Activate''''' ''the switch Netzwerkpfad (URI).'' In the file search field (4) you now see the link symbol.
#'''Enter''' the path to your file.  You can get this path by right-clicking on the file properties in Windows Explorer. From the tab ''Security'' you can copy the object name and paste it into the wiki accordingly. <br />[[File:Manual:ve-link-einfügen-pfad-EN.png|alt=File properties|center|thumb|439x439px|File properties]]<br />
#'''Enter''' the path to your file.  You can get this path by right-clicking on the file properties in Windows Explorer. From the tab ''Security'' you can copy the object name and paste it into the wiki accordingly. <span /><span /><br />[[File:Manual:ve-link-einfügen-pfad-EN.png|alt=File properties|center|thumb|439x439px|File properties]]<span /><span /><br />
#'''Click''' ''Insert''. The link is automatically added in the correct format (<code><nowiki>file://S:/7_Benutzer/</nowiki>....</code>). Whether the link can be directly followed through the browser, depends on your browser security settings and installed add-ons. Talk to your IT department to get help if the links are not active.<br />
#'''Click''' ''Insert''. The link is automatically added in the correct format (<code><nowiki>file://S:/7_Benutzer/</nowiki>....</code>). Whether the link can be directly followed through the browser, depends on your browser security settings and installed add-ons. Talk to your IT department to get help if the links are not active.
{{Box Links-en|Topic1=[[Reference:BlueSpiceInsertLink]] |Topic2 = [[Manual:Extension/VisualEditor]]}}
==Open internal links in new browser tab==
By default, external links open in a new browser tab. If you also want to open individual internal links in a new tab, you can insert the following JavaScript on the ''MediaWiki:Common.js'' page:<syntaxhighlight lang="javascript">
/**
* @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;
} );
} );
</syntaxhighlight>Add the link you want to open in a new tab as wikitext to your page.<syntaxhighlight lang="text">
<span class="newwin">[[Meine Seite]]</span>
</syntaxhighlight>
<span><br /></span><span /><br /><span />{{Box Links-en|Topic1=[[Reference:BlueSpiceInsertLink]] |Topic2 = [[Manual:Extension/VisualEditor]]}}


{{translation}}
{{translation}}
[[Category:Editing]]
[[Category:Editing]]

Revision as of 12:00, 21 November 2022


How do I create links?

Linking pages is an important feature of browser-based knowledge documentation. The links often differ in their function. Links connect wiki pages with:

  • other wiki pages
  • external websites
  • files (images, PDF files, Word documents,...)
  • files stored on other drives


Use the Insert link menu item in VisualEditor or use the shortcut Ctrl+K. In both cases, a dialog box opens.

Insert link to a wiki page
Insert link to a wiki page

Link to a wiki page

Internal links connect related pages or other content that provides more information. Page names can exist multiple times in different namespaces. Therefore, under Search pages, enter the namespace if the destination page is not in the same namespace as the current page.

If you have selected some text on the page, you will find some page suggestions already listed in the Search pages tab. Here, you can adjust the search term accordingly or create a link to a new page.

Then click on Done.


In the source text, links are created with the following structure:

  • Link to a wiki page: [[landing page name|caption]]
  • Link to a wiki page in another namespace: [[namespace:landing page name|caption]]
  • Link to a category page: [[:Category:category name|caption]] To create a link to a category, the source code is preceded by a colon before the category name. In contrast, the link "Category: BlueSpice" would create a category called BlueSpice instead of linking to the category BlueSpice.
  • Interwiki link: [[Imdb:tt2709692]]If your wiki links to other wikis, you can use the tab Search pages also to directly link to a page in a related wiki. For example, if your administrator maintains an interwiki link for the IMDb movie database, it can be typed in as in the example above. Ask your administrator which interwiki links are available in your wiki.

Link to an external website

To link to an external website, mark text on your page, e.g. the word "Wikipedia". Press Ctrl+K and switch to the tab External link. There you enter the web address. Then click Insert.

External link.png

Note:To easily maintain external links on your wiki, use the page Special:LinkSearch. This page allows you to search for external links in your entire wiki. The page also contains a link to the associated Mediawiki help page.


Link to a file in the wiki

To link a file (for example, a picture or a PDF file) in the current page, go to the Link to File tab. There, you can search for a file or upload a new file.

Insert link to a file
Insert link to a file
  • Search for a file in the wiki and include it as a link: Enter the file name and select the desired file. Then click on "Paste". A link to the file has been added to the page. You can then change the displayed link text.
  • Link file to a network drive: If you want to connect to a file on your company network, enter the path under "Link to file" in the text field and activate "Network share path (URI)". The file path is entered using the following syntax - [[:file:///Z:/myfolder/vacatio]]. this only works if your wiki has been configured to work with network files. This function also depends on your individual browser security settings.

    Link to a network file
    Link to a network file

Link to a file in the local network

If you want to link to a file on your company network, you can also use the Link to file tab.

Important!Links to network drives (UNC links) pose a security risk. Therefore, current browsers block these links by default.


It is also possible that your wiki has been configured to disable links to network files.


Talk to your IT department if you have any questions about guidelines related to your browser. If your IT department does not offer a solution, files linked in the wiki can still be copied by wiki users and pasted into the address bar of Windows Explorer.


For more info about UNC-Links, see: https://www.mediawiki.org/wiki/UNC_links.



Insert a link to a local network file:

Insert local file link
Insert local file link
  1. Click Insert link in the visual editor.
  2. Click on the tab Link to file.
  3. Activate the switch Netzwerkpfad (URI). In the file search field (4) you now see the link symbol.
  4. Enter the path to your file. You can get this path by right-clicking on the file properties in Windows Explorer. From the tab Security you can copy the object name and paste it into the wiki accordingly.
    File properties
    File properties

  5. Click Insert. The link is automatically added in the correct format (file://S:/7_Benutzer/....). Whether the link can be directly followed through the browser, depends on your browser security settings and installed add-ons. Talk to your IT department to get help if the links are not active.

Open internal links in new browser tab

By default, external links open in a new browser tab. If you also want to open individual internal links in a new tab, you can insert the following JavaScript on the MediaWiki:Common.js page:

/**
 * @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;
	} );
} );

Add the link you want to open in a new tab as wikitext to your page.

<span class="newwin">[[Meine Seite]]</span>



Related info



To submit feedback about this documentation, visit our community forum.