Genius: line breaks before <noinclude> in templates cause grief!
I had no idea that the line break before my <noinclude> was causing such
problems. I have a feeling this is responsible for a few other weird effects
I've not been able to work out. I hope this helps others.
GD
On Thu, Sep 4, 2008 at 2:37 PM, Jeremy Baron <jeremy(a)tuxmachine.com> wrote:
The behavior you're seeing makes sense if you have
the <noinclude> tag on
separate line from the template itself.
Try using something like
[[{{{1}}} by {{{2}}}|{{{1}}}]]<noinclude>
{{documentation}}
</noinclude>
And if you can, provide full source for the template(s) or link to the
template itself.
--Jeremy
On Sep 4, 2008, at 2:05 PM, The Gadget Doctor wrote:
> I've just noticed something odd.
> I only get this issue when the template "Book link" has got a
> <noinclude></noinclude> section (with documentation). I really don't
> understand now!
>
> On Thu, Sep 4, 2008 at 1:42 PM, The Gadget Doctor <
> mediawiki(a)thegadgetdoctor.com> wrote:
>
> 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
>>
>