Thread:Project:Support desk/Help with template, please!/reply

So basically two things:
 * When wiki-table syntax ( {| type stuff) is used in templates, the |'s have to be replaced with | . This is in order to tell if the | means to end the {{#if or if its to end the table. |'s in links you don't have to worry about. You also don't have to worry about the |'s if the table is in its own template, unless that template is being substituted (see this diff)
 * Subst: only works at save-time (what's technically called during pre-save-transform time). safesubst has to be used in cases where something may or may not be substituted. The difference between them is a bit complicated to understand, but any time you have something combining includeonly and subst, like {{ subst: foo}}, you should probably be doing {{ safesubst: foo}} (This is because the template is substituted depending on if its being included or not, which can't be decided at pre-save-transform time, but must be decided at render time).
 * If in doubt, just use safesubst:, it will always work, where subst: only sometimes works (The reason both exist is mostly historical).

Cheers.