Internal links

From WikiMD's Food, Medicine & Wellness Encyclopedia

Internal links are a fundamental aspect of wikis, including MediaWiki, which is the software behind many collaborative knowledge bases such as Wikipedia. Internal links are used to connect one page within the wiki to another, facilitating easy navigation and the ability to reference related content efficiently. This article will delve into the concept, usage, and importance of internal links in the context of MediaWiki syntax and their role in creating a cohesive and interconnected content structure.

Overview[edit | edit source]

In the realm of wikis, an internal link refers to a hyperlink that points to another page within the same wiki. Unlike external links, which direct the user to a different website, internal links keep the user within the same domain, enhancing the user's ability to discover related information without leaving the site. This is crucial for maintaining the integrity of the user's exploration experience and for building a tightly-knit web of information.

Syntax[edit | edit source]

The syntax for creating an internal link in MediaWiki is straightforward. It involves enclosing the name of the target page within double square brackets. For example, to link to a page titled "MediaWiki," one would use:

MediaWiki

This would display as MediaWiki, allowing users to click and navigate directly to the "MediaWiki" page. It is also possible to modify the text displayed for the link by using a pipe ('|') character inside the brackets. For instance:

the best wiki software

This would still link to the "MediaWiki" page, but the link text would read as the best wiki software.

Advanced Usage[edit | edit source]

MediaWiki offers advanced options for internal linking, including linking to specific sections of a page, linking to categories, and creating redirects. For example, to link to a specific section:

MediaWiki#Features

This would take the user directly to the "Features" section of the "MediaWiki" page.

Linking to a category is done by prefixing "Category:" to the category name, but this is primarily used to add pages to categories, not for navigation. To link to a category page without adding the page to the category, a colon (':') is used before "Category":

Category:MediaWiki

Importance[edit | edit source]

Internal links are vital for several reasons. They enhance the user experience by making it easier to find information, thereby reducing the number of steps a user must take to access related content. They also contribute to the site's SEO (Search Engine Optimization) by helping search engines understand the structure and hierarchy of the site's content. Furthermore, internal links encourage users to spend more time on the site by providing them with easy access to additional relevant information.

Best Practices[edit | edit source]

To maximize the effectiveness of internal links, it is important to follow best practices. These include using descriptive link text that gives users a clear idea of what to expect on the linked page, linking to relevant content that provides additional value, and regularly checking for and fixing any broken links.

Conclusion[edit | edit source]

Internal links are a cornerstone of the MediaWiki platform, enabling the creation of a rich, interconnected web of information. By understanding and utilizing internal links effectively, contributors can enhance both the user experience and the overall quality of a wiki.

Wiki.png

Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD


Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro) available.
Advertise on WikiMD

WikiMD is not a substitute for professional medical advice. See full disclaimer.

Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.


Contributors: Prab R. Tumpati, MD