Board Thread:Shingeki no Kyojin Wiki/@comment-5774380-20150421180319/@comment-5774380-20160406202339

CaptFredricks wrote:

Wow! Pretty soon the whole wiki will be running on just this one template! LOL ....

Hahahaha, well, it kinda does already. xD We manage all our references with this template, and with that last feature, this template and References now cover all possible situations involving referencing. :)

CaptFredricks wrote:

Anyway, I may look to borrow some of your ideas for it and use them on my wiki, if that's alright with you. I will of course cite you as the original author.

Of course, it's always great to know that our work here can be useful for other wikis too. :)

I just have to let you know some detail regarding this template. It creates references using the standard MediaWiki format; i.e.:

As "name" it automatically sets the same content of the text. This allows to merge duplicate references without complications, as references with the same text will appear merged into a single reference in the footnotes.

However, we also use the script ReferencePopups to generate the popups that appear when you hold the mouse over a reference, and it has a bug that I've been testing here: if the "name" includes a colon, the popup doesn't appear. And since the Ref template uses the same text of the reference as name, the cases when the text and hence the name ends up containing a colon are not rare.

This could be solved by allowing to use a custom name different than the text, but that breaks the purpose of the template of doing it all automatically, so I'd rather modify the script to allow names with colons. I guess it could be solved with a simple replace, though I'm currently working on other projects and I still have to look at it further.

Just a quick note in case you run into the same issue. :P