Differences in the way noinclude tags are handled by DPL

From FollowTheScore
Revision as of 22:44, 6 March 2014 by Theaitetos (talk | contribs) (resolved)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Description: transclusion of noinclude-tags
Extension / Version: DPL   /   2.0.2
Type / Status: Bug   /   resolved

Problem

The folks at wikia.com suggested I post this here.

I recently requested that DPL be installed on our wiki and have been trying to use it to create two different views of a set of pages. The pages represent dates on a non-Gregorian calendar and may or may not contain a bulleted list of events, references, other wikitext, etc. Everything except for the bulleted items is surrounded with <noinclude> tags. The events, if present, are in their own Section with the heading ==On This Day==. The first view is of a single day's events and is generated by Template:On_this_day and works just fine, as seen in my sandbox. The second view is a full Calendar list which does not display properly. The problem is that output from some files is absorbed into the list of the previous file.

Screen capture showing incorrect output

As shown in the screen shot, the file Alturiak 1 with its two bullet points got absorbed by the Midwinter file. It should be in line with Alturiak 2 and so on. If you view the HTML source of the rendered page it looks like this (newlines added for clarity):

...who perform rituals of total sensory deprivation.</li>
<li><a href="/wiki/Alturiak_1" title="Alturiak 1">Alturiak 1</a><br></li>
<li>Worshipers of the <a href="/wiki/Halfling" title="Halfling">halfling</a> deity <a href="/wiki/Cyrrollalee"
    title="Cyrrollalee">Cyrrollalee</a> celebrate Hearthday.</li>
<li>Followers of <a href="/wiki/Tyr" title="Tyr">Tyr</a> perform the ritual of Seeing Justice at which a giant
    <a href="/wiki/Warhammer" title="Warhammer">warhammer</a> appears above the congregation glowing white hot.</li>
</ul>
</li><li><a href="/wiki/Alturiak_2" title="Alturiak 2">Alturiak 2</a>

As you can see, the </ul> tag is missing after "sensory deprivation.</li>". Also, a <ul> tag should appear after

Alturiak 1</a><br></li>

to start the list of two bullet points for that file.

Both of these DPL statements use |include = * and they both respect the <noinclude> tags, which is what I want.

I have tried using |include = #On This Day but it always ignores the <noinclude> tags and I get references. See this calendar page and also note that the absorption does not happen in this example.

Is there any way I can get DPL to respect the noincludes and correctly format the list of dates?

Thanks for listening :) — Moviesign (talk) 16:17, 6 March 2014 (CET)

Reply

I think I resolved your issue over at your wiki. If any questions remain, please contact me via Mediawiki. --Theaitetos (talk) 22:44, 6 March 2014 (CET)