Linking to other Wiki pages on GitHub?

GitHub wikis allow you to link to other pages in the wiki like so:

[[Wiki Page Name]]

However, I want to display different text than the wiki page name when making the link. Is there a way to do this? Am I linking to wiki pages all wrong?

  • How to fork my own repo into a new project?
  • Configure (or mimic) svn:externals to include code from Github in a svn-hosted project
  • Restore pathogen git repos
  • Does a Node.js package.json need to be at the root of the repository?
  • How do I do automatic tracking of filename changes with GIT?
  • AWS Elastic Beanstalk using PHP with Private Composer Repositories
  • How do I submit another pull request once the first one was merged?
  • Add commit to other pull request in order to follow up on that bug (github cli)
  • View entire activities of an user in github
  • Git error: Unable to append to .git/logs/refs/remotes/origin/master: Permission denied
  • Merge repos while overwriting changes
  • Why doesn't my git auto-update Expect script work?
  • 4 Solutions collect form web for “Linking to other Wiki pages on GitHub?”

    GitHub by default uses Markdown syntax for the wikis so you can just do:

    [Arbitrary Link Text](Wiki Page Name)

    Check out Markdown and this blog post for more information about their wikis and the other markup syntaxes they support.

    This solution has issues when you’re on the home page because it creates relative URLs. Check out Sven’s answer, below.

    Using the Markdown link syntax

    [Link Text](WikiPage)

    seems to work in the edit preview but not on the actual wiki page. At least for me the generated link is WikiPage instead of wiki/WikiPage and I get the famous GitHub 404.

    However the MediaWiki syntax

    [[Link Text|WikiPage]]

    works for me, even for Markdown wiki pages.

    The internal-ref part is relative to your project. For wiki pages use:

    [Page Name](wiki/Page-Name)

    In the preview the link will be broken but when the page is saved it will work.

    Check the wiki editor’s help. It tells you:

    To create a reference link, use two sets of square brackets. [my internal link][internal-ref] will link to the internal reference internal-ref.

    Git Baby is a git and github fan, let's start git clone.