Windows Ninja
Windows Ninja

Reputation: 259

How can I create a template in MediaWiki that will autopopulate a portion of itself?

Basically what I'd like to do is to create a template which when embedded in a wiki page will automatically fill in one part of with the title of the page that you are currently reading.

As an example, if you are reading a page titled ExchangeServer. There would be a template included in that page which would include a URL to link to a service.

Part of that URL includes the name of that wiki page. So I would want it to be something along the lines of:

https://AutoPopulatedName:1311

Is there a way to do this? If so, can somebody please explain how?

Thanks in advance!

Upvotes: 1

Views: 369

Answers (1)

svick
svick

Reputation: 244757

Are you looking for the {{PAGENAME}} magic word?

Upvotes: 3

Related Questions