When I add a header to a template and place it under an [*noinclude] tag, an empty spot gets added to the table of contents for any page that template is placed on.
This is the template:
Template Code:
Code:
<div class="WIP"><span>This {{{Target|page}}} is a <b>work in progress</b>. Expect frequent changes. Content may not be accurate or up-to-date.</span>
Help and feedback is welcome. See the [wiki={{{DiscussionLink}}}]article discussion thread[/wiki].</div>
[noinclude][h="2"]Usage[/h]
[code][template]WIP
|Target = Defaults to page
|DiscussionLink = [/template]
If the DiscussionLink parameter is included, this will be the final output:
[template]WIP
|DiscussionLink = http://mistsofsuriel.com[/template][/noinclude][/code]
This is the page:
The last link in the table of contents is blank and only appears if I add this template to that page.
The H inside the NOINCLUDE block affects a page it's included on (but the text is missing because it wasn't included). I believe this affects vBulletin and XenForo equally.
The raw HTML parses on the template view even though it wasn't enclosed by a NOINCLUDE block. Because the template might use partial tags or might use parameters in tag attributes, content in the include-scope (including raw HTML) should not be parsed on the template view. I believe this only affects XenForo.
Using a NOINCLUDE tag on a regular page (not a template) should just show the raw NOINCLUDE tags and content. Currently NOINCLUDE seems to do its job. I expect similar weirdness using other template-only BB-Codes in regular pages. I believe this only affects XenForo.
This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.