Linking: Difference between revisions
Markmcumber (talk | contribs) No edit summary |
Markmcumber (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
<br/><br/><br/><br/>'''[[Archives Manual#Linking within the Wiki|Return to the Student Manual]]''' | <br/><br/><br/><br/><br/>'''[[Archives Manual#Linking within the Wiki|Return to the Student Manual]]''' | ||
= Internal Links = | = Internal Links = | ||
Line 20: | Line 20: | ||
*If the destination entry '''exists''' and has been '''entered correctly''' (remember that [[MediaWiki|Mediawiki]] is case sensitive - the first thing that the contributor should check for if a link does not work is the spelling and capitalization of the destination entry within the WikiTextEditor code), an operational link will be created. | *If the destination entry '''exists''' and has been '''entered correctly''' (remember that [[MediaWiki|Mediawiki]] is case sensitive - the first thing that the contributor should check for if a link does not work is the spelling and capitalization of the destination entry within the WikiTextEditor code), an operational link will be created. | ||
*If the destination entry does '''not exist''', the hyperlink created will connect to a new page upon which an entry can be created, either immediately or in the future. The practice of creating links to non-existent pages is called | *If the destination entry does '''not exist''', the hyperlink created will connect to a new page upon which an entry can be created, either immediately or in the future. The practice of creating links to non-existent pages is called [#Lazy Linking] - this can be an effective way to communicate to other contributors the pages that need to be created in the future. | ||
Revision as of 14:56, 18 June 2014
Internal Links
An I'nternal Link 'is used to direct the user to another page within the UNB wiki. These internal links are the most effective way to establish a web of connections throughout the wiki that enhance readers' experience by increasing accessibility of information.
RichTextEditor
Creating an Internal Link with the RichTextEditor is quick and easy, as MediaWiki provides the Contributor with a field to search the entire wiki for the desired destination page/entry. To generate this field, click the Link icon:
To create an internal link, enclose the title of the destination entry with double square brackets on either side:
- If the destination entry exists and has been entered correctly (remember that Mediawiki is case sensitive - the first thing that the contributor should check for if a link does not work is the spelling and capitalization of the destination entry within the WikiTextEditor code), an operational link will be created.
- If the destination entry does not exist, the hyperlink created will connect to a new page upon which an entry can be created, either immediately or in the future. The practice of creating links to non-existent pages is called [#Lazy Linking] - this can be an effective way to communicate to other contributors the pages that need to be created in the future.
http://unbhistory.lib.unb.ca/index.php/Special:WantedPages
Linking with Alternate Text
Sometimes the exact title of a page is not ideal to insert into a sentence as a hyperlink. Instead, the ideal practice is to represent the hyperlink as text that flows within the entry.
It is in the wiki's interest to provide a link to the Literary and Debating Society page, but inserting this title would obstruct the flow of the sentence. To create a link using alternate text, we must use what is called a pipe— | —to indicate that the text following the pipe will serve as the hyperlink instead of the title of the destination page:
Lazy Linking
External Links
Linking to Category Pages
Linking to Image Pages
Anchors (Linking to a Specific Place on a Page)
There may be circumstances in which linking to a the top of a page is ineffective, as the reader will then have to read through a body of text or scroll through the page to locate the reference. Linking to a specific place on an entry or page requires the use of an anchor.
- This is particularly relevant for larger pages with a lot of content.
- For these functions the WikiTextEditor is most effective.
- Remember to verify capitalization and spelling of titles when creating links.
1. Some anchors exist naturally within a page. All of the section headers are anchors and can be easily identified by their presence in the Table of Contents at the top of a given page:
[[Destination page]]
[[Destination page#Header title of Destination page]]
[[Destination page#Header title on Destination page|Alternative text]]
Example: [[Mark's Page#Sneaker Collection|Mark loves sneakers]]
2. Some entries may not be effectively broken up by headers, while some sections might be too long for linking to the header to be an effective solution - do not fear! There is a way to manually create an anchor on a page, but the WikiTextEditor must be used:
<span id="Anchor_name">Text can be inserted here (although the absence of text will produce an invisible anchor)<span>
Spaces cannot be used in the "Anchor_name", so make use of _'s, and remember to use quotation marks.
Having created this anchor, the next step is to link to it. This process is identical to linking to headers as described above:</span>
[[Destination page#Anchor_name|Alternative text]]