Topic on Project:Support desk

Unable to create a Grqqwwwwlink a a "Main article"

7
Nokho (talkcontribs)

I have an article with a section.

The section itself is a concise form of another full-fledged article.

What I want to do is create a link to the second article.

I am using the tag:

{{Main|History of Battle of Plassey}}

Instead of a link, what I am getting is a red link (to a page that does not exist) saying:

Template:Main

Do I have to install some new extension for this? Or am I getting the code wrong?

NB: This is what I am doing on my own new site. The MediaWiki version is 1.25.1.

FriedhelmW (talkcontribs)
Suriyaa (talkcontribs)

Use [[Main|History of Battle of Plassey]], not {{Main|History of Battle of Plassey}}!

Nokho (talkcontribs)

When I do this, the text 'History of Battle of Plassey' does appear in red colour.

And the link leads to index.php?title=Main&action=edit&redlink=1

Ideally, it should look like what appears here: https://en.wikipedia.org/wiki/James_Bond#Young_Bond

i.e. Main article: History of Battle of Plassey

Nokho (talkcontribs)

In fact, I have an identical problem with 'see also'

[[See also|Battle of Plassey]]

I get the same error.

Even this leads to the same link: index.php?title=Main&action=edit&redlink=1

Ciencia Al Poder (talkcontribs)

Please, see the link provided by FriedhelmW. You want to use [[Battle of Plassey|See also]] instead

Supasaru (talkcontribs)

Hey @Nokho: are you using {{main}} and {{see also}} after seeing it on Wikipedia? These are templates that were created on Wikipedia, and they aren't built-into the Mediawiki software.

If you want to have a template on your wiki where you type...

{{main|Battle of Plassey}}

... and See the main article regarding Battle of Plassey appears on your page, you need to create the template yourself.

You can refer to the code on Wikipedia for the Main template and the See also template, but they're kind of tricky now that they use the Lua language. (It's do-able with regular wiki-syntax too, of course.)

I hope this helps!

Cheers!

Reply to "Unable to create a Grqqwwwwlink a a "Main article""