1

I know how to make a page link in GitHub's wiki. Normally you can just do:

[Arbitrary Link Text](Wiki Page Name)

Ref: Stack Overflow question Linking to other Wiki pages on GitHub? [closed].

But, in my GitHub repository I have a wiki page named "ExampleModule::ExampleClass" with two colons. How do I make a link for it?

I've tried:

[Arbitrary Link Text](ExampleModule::ExampleClass)

It doesn't work.


Based on the answer, here's my discovering:

Say if I have a page in a GitHub project's wiki repository called overview>:

Link to overview from wiki repository Home page:

[Overview](wiki/overview)

Link to overview from wiki repository that is NOT Home:

[Overview](../wiki/overview)

Link to overview from project repository:

[Overview](../../wiki/Overview)
Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
Yuan Hsueh
  • 155
  • 1
  • 9

1 Answers1

0

If you create a page named Example::Page, you could link it with:

[Click here](wiki/Example::Page)

The colon isn't a problem.

I made a simple example here.

aymericbeaumet
  • 6,853
  • 2
  • 37
  • 50
  • 1
    Colons in the page name work fine for linking, but they can be problematic if you ever check out your Wiki repo. I've tried with both MSysGit 1.8.3 and SourceTree 1.4.1.0, and neither one can check out the `Example::Page.md` file. MSysGit gives ```error: unable to create file Example::Page.md (Invalid argument) fatal: unable to checkout working tree``` and leaves the file in deleted state. SourceTree creates an untracked file `Example\357\200\272\357\200\272Page.md` and leaves the original file name deleted. – shoover Mar 04 '14 at 18:17
  • Thanks for your feedback. It seems the problem you encounter is Windows specific (at least I don't have it under the Mac OS X git client and I think it wouldn't occur neither on the Linux client). Try to open a ticket on the concerned bug platforms. – aymericbeaumet Mar 04 '14 at 23:36