The {alias} macro allows you to create aliases (or shortcuts) for pages...
As you know, links to pages are easy to create by simply putting the page title in square brackets, but it can be a pain to do this sometimes.
For example, let say you have a page called "ACME device for catching Road Runners going through a tunnel" - having to type all that each time you want to link to a page can be a real pain:
[ACME device for catching Road Runners going through a tunnel]
It would be much easier if you could just create a shortcut called "Catch a Roadrunner" which could be linked to as follows:
[Catch a Roadrunner]
Alternatively you might want a page discussing animals to have aliases of Cats, Dogs, etc. Or you might want a page called Cats to also be linkable to using just Cat or Feline
That's exactly what this macro allows you to do - create one or more shortcuts to a page! ![]()
Before using this macro, we strongly recommend reading the Notes tab above to gain an understanding of how the macro actually works.
Parameters:
The {alias} macro has the following parameters:
{alias:name|parent=parent_page}
| Parameter | Required | Default | Notes |
|---|---|---|---|
| default | The default "name" parameter specifies the name of the alias, for example Catch a Roadrunner. | ||
| parent | By default, the alias page will not have any parent (it will be an Orphan Page. However, you can specify a parent page as follows:
|
Notes:
The {alias} macro works by creating a new page with the desired title within the same space as the page that the alias refers to.
This new page is, by default, an Orphan Page meaning that it has no parent. You can however, have it attached to a page of your choosing using the "parent" parameter.
Because a page has been created with the shorter or alternate title, it can obviously be linked to (including links from other spaces, etc).
When the user clicks a link that goes to the alias page, they are immediately redirected (using the redirect macro automatically inserted on to that page) to the target page on which you created the alias.
Because the redirect macro is being used on the new "shortcut" page, you need to be aware of the following:
- The redirect macro macro does not keep track of whether the target page has had its name changed and as such it's possible for the link to break which in turn breaks the alias
- The redirect macro uses JavaScript to redirect, so browsers with JavaScript turned off will require the user to manually click a link to take them to the target page.
Examples:
Frequently Asked Questions
| Q | I want to create an alias to a page on an external site or space - can this be done? |
|---|---|
| A | Yes. Use the redirect macro which allows a URL to be specified. |
.png)







