[Mediawiki-l] Why can't I expand a template within a section heading?

The Gadget Doctor mediawiki at thegadgetdoctor.com
Thu Sep 4 17:42:05 UTC 2008


Is there a simple way to do the following?
I have a template called Book link:
[[{{{1}}} by {{{2}}}|{{{1}}}]]

If I try to call that from elsewhere as a section heading:

=={{Book link|Title of the book|John Author}}==

Then the heading breaks and renders both the "==" directly on the page. Is
there some way to get templates to expand inside section headings properly?

If I manually replace that with:

==[[Title of the book by John Author|Title of the book]]==

all is fine.


GD


More information about the MediaWiki-l mailing list