{PAGENAMEE} equivlant
Asked by Michael Garito:

I'm looking for an equivalent to mediawiki's "{PAGENAMEE}" (yes with two EEs.)

<http://www.mediawiki.org/wiki/Help:Magic_words#URL_encoded_page_names>

I need a link when clicked will open the users email client and prepopulate the subject with the page's name. This link will be embedded on every page so it needs to automatically pull the page name without the rest of the URL.

<br />

The following works perfectly, however I need to swap out XXX with the page's name.

mailto:my-email@address.com[?Subject=Feedback%20on%20XXX\&body=We%20appreciate](http://akamai.com?Subject=Feedback%20on%20XXX%20-%20Helpful%20-%20Yes%20&body=Thank%20you%20for%20taking%20a%20moment%20to%20provide%20feedback%20on%20the%20page%20XXX.%20We%20are%20glad%20you%20found%20the%20documentation%20helpful.%20Please%20let%20us%20know%20if%20there%20is%20anything%20that%20can%20be%20done%20to%20further%20improve%20this%20page)[%20](http://akamai.com?Subject=Feedback%20on%20XXX%20-%20Helpful%20-%20Yes%20&body=Thank%20you%20for%20taking%20a%20moment%20to%20provide%20feedback%20on%20the%20page%20XXX.%20We%20are%20glad%20you%20found%20the%20documentation%20helpful.%20Please%20let%20us%20know%20if%20there%20is%20anything%20that%20can%20be%20done%20to%20further%20improve%20this%20page)[your](http://akamai.com?Subject=Feedback%20on%20XXX%20-%20Helpful%20-%20Yes%20&body=Thank%20you%20for%20taking%20a%20moment%20to%20provide%20feedback%20on%20the%20page%20XXX.%20We%20are%20glad%20you%20found%20the%20documentation%20helpful.%20Please%20let%20us%20know%20if%20there%20is%20anything%20that%20can%20be%20done%20to%20further%20improve%20this%20page)[%20](http://akamai.com?Subject=Feedback%20on%20XXX%20-%20Helpful%20-%20Yes%20&body=Thank%20you%20for%20taking%20a%20moment%20to%20provide%20feedback%20on%20the%20page%20XXX.%20We%20are%20glad%20you%20found%20the%20documentation%20helpful.%20Please%20let%20us%20know%20if%20there%20is%20anything%20that%20can%20be%20done%20to%20further%20improve%20this%20page)[feedback](http://akamai.com?Subject=Feedback%20on%20XXX%20-%20Helpful%20-%20Yes%20&body=Thank%20you%20for%20taking%20a%20moment%20to%20provide%20feedback%20on%20the%20page%20XXX.%20We%20are%20glad%20you%20found%20the%20documentation%20helpful.%20Please%20let%20us%20know%20if%20there%20is%20anything%20that%20can%20be%20done%20to%20further%20improve%20this%20page)[%20](http://akamai.com?Subject=Feedback%20on%20XXX%20-%20Helpful%20-%20Yes%20&body=Thank%20you%20for%20taking%20a%20moment%20to%20provide%20feedback%20on%20the%20page%20XXX.%20We%20are%20glad%20you%20found%20the%20documentation%20helpful.%20Please%20let%20us%20know%20if%20there%20is%20anything%20that%20can%20be%20done%20to%20further%20improve%20this%20page)[on](http://akamai.com?Subject=Feedback%20on%20XXX%20-%20Helpful%20-%20Yes%20&body=Thank%20you%20for%20taking%20a%20moment%20to%20provide%20feedback%20on%20the%20page%20XXX.%20We%20are%20glad%20you%20found%20the%20documentation%20helpful.%20Please%20let%20us%20know%20if%20there%20is%20anything%20that%20can%20be%20done%20to%20further%20improve%20this%20page)[%20](http://akamai.com?Subject=Feedback%20on%20XXX%20-%20Helpful%20-%20Yes%20&body=Thank%20you%20for%20taking%20a%20moment%20to%20provide%20feedback%20on%20the%20page%20XXX.%20We%20are%20glad%20you%20found%20the%20documentation%20helpful.%20Please%20let%20us%20know%20if%20there%20is%20anything%20that%20can%20be%20done%20to%20further%20improve%20this%20page)[XXX.](http://akamai.com?Subject=Feedback%20on%20XXX%20-%20Helpful%20-%20Yes%20&body=Thank%20you%20for%20taking%20a%20moment%20to%20provide%20feedback%20on%20the%20page%20XXX.%20We%20are%20glad%20you%20found%20the%20documentation%20helpful.%20Please%20let%20us%20know%20if%20there%20is%20anything%20that%20can%20be%20done%20to%20further%20improve%20this%20page)


Answers:
author: Alex Medved _ConfiForms_
body: Take a look at this answer, <https://answers.atlassian.com/questions/11462878>

It does explain how to create a user macro to make a custom link (you need to extend it to be parametrised, to be more reusable, like to allow setting own subject or email, when a user uses this macro)

More details on parameters: <https://confluence.atlassian.com/display/DOC/Example+User+Macro+-+Colour+and+Size>

Quick prototype for user macro:

```
## Macro title: userLink## Macro has a body: N## This is an example macro## @param Email:title=Email|type=string|required=true|desc=Email address## @param Subject:title=Subject|type=string|required=true|desc=Email subject## @param Body:title=Body|type=string|required=true|desc=Email body## @param Caption:title=Caption|type=string|required=true|desc=Link caption&lt;a href="mailto:$paramEmail?Subject=$paramSubject${content.title}&amp;body=$paramBody${content.title}"&gt;$paramCaption&lt;/a&gt;
```


author: Boris Berenberg
body: This is not possible out of the box. You may be able to do this using a User Macro: <https://confluence.atlassian.com/display/DOC/Writing+User+Macros>

If not, you will have to create a Macro plugin: <https://developer.atlassian.com/display/CONFDEV/Macro+Module>

comments: author: Michael Garito
body: Thanks for the quick reply, though I must admit I'm a little disappointed. I guess I'll have to look into custom macros :-/Any chance this functionality can be included in future releases?


author: Boris Berenberg
body: It could be, but there are no plans to do this as far as I know. I would look into <https://jira.atlassian.com/> and if you can't find an existing feature request, you should file one.