Board Thread:Support Requests - Getting Technical/@comment-4356266-20130526122704/@comment-452-20130529152348

I know this is already solved, but here's my ref template:

If no name is given, the reference string is used as the name, so identical references as joined even if you don't name them.
 * Usage:
 * Or
 * Or

Of course, if you prefer to name your references, that works too.

Examples:
 * The sky is blue
 * Grass is green
 * Fire is hot
 * Water is wet

Results:
 * The sky is blue
 * Grass is green
 * Fire is hot
 * Water is wet

The "Broken reference!" part was there for testing, the only way to trigger is is to use with no parameters, or with empty parameters

It took a while to figure out, but I've been using this version for a while and it's pretty much idiot proof.

There are some edge cases with using references which contain invalid characters which can't be used in the reference name, which cause matching references not to be linked, but I don't see it happen very often.

edit: Shortened the template. (My version supports, because that's how unnamed references to were done in the previous version, and I had to allow those existing references to keep working.  But you don't need to do that, so I removed that part)