6 Posts
Mira Laime
Christian Sirolli
All Contributors
Jr Mime
• 3/7/2014

Linking to a user's wiki

Suppose we want to link to Mediawiki:Wikia.css but we want to link to the version on the user's wiki. The problem is, we don't know the user's wiki's URL. What do we do?

I recently wrote a blog post about infoboxes on Central, and the best way to go about it that I could think of was to say as follows: "Go to Mediawiki:Wikia.css on your wiki[footnotes 1]"

... and then have a footnote...

  1. A number of times, this page refers to pages on your wiki, such as "Template:Infobox on your wiki". I don't know what your wiki is, so I can't directly link to it.
    If you're having trouble finding the correct page, just go to <yourwiki><page> by typing it in your browser's address bar.
    Or just click the link to go to the equivalent page on Community Central, then edit the URL so that is substituted with your wiki's URL: for example
0 3
  • Upvote
  • Reply
Jr Mime
• 3/7/2014

My unlikely fantasy is as follows: Imagine there was a wiki at (currently w:c:yourwiki aliases to Central). Someone could create a link to [[w:c:yourwiki:Mediawiki:Wikia.css]] and be presented with a dialogue:

Prompt: What's your wiki?
User's response:

And they would be taken to w:c:wolfenstein:Mediawiki:Wikia.css.

A slightly different alternative is a Special:YourWiki page which performs the same function.

OR, if we had some kind of resident Javascript expert, we could somehow hack Special:Blankpage?blankspecial=yourwiki?page=Mediawiki:Wikia.css to create such a prompt.

• 3/9/2014

That is easy to do. Here are steps (idk how to code lol)

  1. Make a clickable element same color as links
  2. When clicked, prompt and enter wiki name/url whatever
  3. Click OK
  4. Go away
• 3/9/2014
/me goes away
Write a reply...