43,117
edits
Notmyhandle (talk | contribs) (→{{ToC}} injecting an extra blank paragraph: help documentation) |
Notmyhandle (talk | contribs) (→{{ToC}} injecting an extra blank paragraph: Found a workaround, but it is not preferred.) |
||
Line 133: | Line 133: | ||
:::::I tracked down some help documentation. [https://www.mediawiki.org/wiki/Help:Page_status_indicators This help page] says [https://www.mediawiki.org/wiki/Manual:OutputPage.php OutputPage.php] contains the setIndicators() function. More pertinent, [https://www.mediawiki.org/wiki/Manual:Skinning_Part_2#Page_status_indicators this page] lays out the output of setIndicators, with no mention of a paragraph. Only the icon's div at the top right. --{{User:Notmyhandle/Sig}} 04:05, 15 March 2019 (UTC) | :::::I tracked down some help documentation. [https://www.mediawiki.org/wiki/Help:Page_status_indicators This help page] says [https://www.mediawiki.org/wiki/Manual:OutputPage.php OutputPage.php] contains the setIndicators() function. More pertinent, [https://www.mediawiki.org/wiki/Manual:Skinning_Part_2#Page_status_indicators this page] lays out the output of setIndicators, with no mention of a paragraph. Only the icon's div at the top right. --{{User:Notmyhandle/Sig}} 04:05, 15 March 2019 (UTC) | ||
::::::Ok so the main oddity is that the ToC itself does not have the <nowiki><p><br></p></nowiki> present. So that means it is being added on the main LTTP page from another mechanism (or as you said at the start, most likely from transclusion). I assume this is a well known bug, but can't find a report for it. To overcome this, I simply hardcoded the table of contents by replacing <nowiki>{{ToC}}</nowiki> with: | |||
<pre> | |||
{{-}} | |||
==Table of Contents== | |||
{{:{{FULLPAGENAME}}/Table of Contents}} | |||
{{-}} | |||
</pre> | |||
--{{User:Notmyhandle/Sig}} 04:34, 15 March 2019 (UTC) |