• About Me
  • Best Of
  • Contact Me
  • Forum

Jay Gaulard

  • Home & Living
    • Automotive & Mechanical
    • Carpentry & Building
    • Entertainment
    • Firewood & Heating
    • Gardening
    • Home Improvement
    • Lawn Care & Landscaping
    • Pets & Animals
  • Fitness & Recreation
    • Brazilian Jiu-Jitsu (BJJ)
    • Bushcraft & Camping
    • Hiking & Walking
  • Nature & Outdoors
    • Trees & Shrubs
    • Weather & Seasons
  • Technology & Internet
  • Travel & Destinations
  • Writing & Blogging
    • Ramblings & Opinion
You are here: Home / Technology & Internet / Creating Links – MediaWiki – Wiki Tutorial

Creating Links – MediaWiki – Wiki Tutorial

June 6, 2007

I came across this very important discovery this morning. I was attempting to edit the “About DotWiki.US” page of my Wiki when I thought a link would be nice.

Wiki syntax, Wikitext language or wiki markup is a bit different than regular HTML. I am not sure why they did it this way…perhaps because the general public is going to be the ones editing Wikis and Wiki syntax is easier and more logical (it seems).

Here is the line I put into the page editor…

DotWiki.US is a personal project aimed at learning how to use and promote a Wiki. DotWiki.US uses the same software as the widely known, [http://www.wikipedia.org Wikipedia].

Notice at the end of the second sentence, there is a link. Basically, an external link is enclosed in [ ]. The link above is an external link directed at Wikipedia. Inside the square brackets, the first thing you place is the actual URL. Right after that, place a space and then your link title. It’s as easy as that.

Now, for an internal link, it’s a bit different. Take a look at the paragraph in edit mode below…

While in theory any animal might be a pet, in practice only a small number of species of [[mammal|mammals]] (especially [[dog|dogs]] and [[cat|cats]]) and other small animals, such as [[bird|birds]], [[fish]], or [[lizard|lizards]], are practical. One reason for this is that large animals are not able to fit inside small dwellings.

You’ll notice a few different types of links in there. If you want to make an internal link in your Wiki to another page in your Wiki, simply find out the name of the page. Here, we will look at the “fish” link (end of first sentence). The name of the page this person wants to link to is called, “fish.” Therefore, a double [[ ]] is used with the name right in between. That’s pretty straightforward.

Where it gets a little more tricky is when you want an internal link to a page with a different page name than your link title. Lets look at the “mammals” link above (first link). The page name is “mammal” but the link text in the sentence is “mammals.” Basically, to get this result, you need to again use the [[ ]] with the page name you are linking to typed in first, with the link text you want to appear in your paragraph second.

Does that make sense?


Related posts:

  1. Wiki Installation – MediaWiki – Version 1.10.0
  2. Creating Short URLs – MediaWiki – Version 1.10.0
  3. Changing the Logo – MediaWiki – Version 1.10.0
  4. What Does It Mean When a Hard Drive Clicks?
  5. How To Get Your Blog Listed In Google Blog Search

Filed Under: Technology & Internet

What’s Next? Email Updates!

If you enjoyed reading this post as much as I enjoyed writing it, why not sign up to receive my posts by email? It's free and you can unsubscribe at any time!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

CONNECT WITH ME

  • Email
  • Facebook
  • Google+
  • RSS
  • Twitter

RECEIVE MY POSTS BY EMAIL!

Interested in receiving my posts by email? This is your chance! Simply place your email address in the box below and I'll deliver each and every post I write directly to your inbox.

Copyright © 2021 · Jay Gaulard My Personal Blog Blog · About · Best Of · Contact · Privacy / Terms · Sitemap