http://everafterhigh.wikia.com/wiki/Template:Royaldiary
I'm trying to create a template that has the destination of a link changed depending on the page it is located on, utilizing #ifeq.
For instance: [[{{#ifeq:{{PAGENAME}}|Briar Beauty's diary|Briar Beauty|Briar Beauty's diary}}|- Briar -<br/>- Beauty -]]
This should always make the link go to "Briar Beauty's diary", except when the template is located on "BB's diary". Then the link should go to "Briar Beauty". But evidently, it doesn't work, or I wouldn't be writing this. What am I doing wrong?