Page MenuHomePhabricator

Parser apparently ignoring inline no-content span generated in a template/parser function...
Closed, InvalidPublic

Description

https://en.wikisource.org/wiki/Page:Representation_of_the_Peoples_Act_1918_(ukpga_19180064).pdf/1 use https://en.wikisource.org/wiki/Template:Cl-act-paragraph to add anchors.

Except that despite the template logic physically calling a template https://en.wikisource.org/wiki/Template:Anchor (And I've checed my logic carefully. ) The relevant sopan generated by the anchor template is not appearing in the generated output.

I fail to see why this should be occuring, given that a direct expansion of comparative code invoking the anchor template directly worked without issues..

The relevant code generated according to Special:Expand Templates:

Via cl-act-paragrpah in it's current form.

<p class="pclass" style="padding-bottom:0em; vertical-align:top; margin-left:0em; padding-left: 2em;" lang="en" dir="ltr">(<i>a</i>)&#160;has the requisite residence qualification; or</p>

Directly based on the above, manually building what cl-act-paragraph SHOULD be generating.:-

<p class='pclass' style='padding-bottom:0em; vertical-align:top; margin-left:0em; padding-left: 2em;' lang='en' dir='ltr' ><span id="1.1.a"></span>(<i>a</i>)&nbsp;has the requisite residence qualification; or</p>

The code sequnces generated should be identical so I am failing to see why the span is failing to generate in the output when the relevant template is called from inside a template as opposed to directly.

Event Timeline

Weird. Rechecked my coding this morning and the relevant span is present. Must be a caching issue from when I updated the template code.

ShakespeareFan00 triaged this task as Lowest priority.