Template:Documentation/core: Difference between revisions

Content deleted Content added
imported>Davidgothberg
Adding an empty <div> followed by a line break, so headings at start of /doc are interpreted by MediaWiki. Thanks Svick for the bug report.
imported>Davidgothberg
The empty div gave extra newlines sometimes. A line break before the if-case is better, and it fixes it for "content" input too. This is how the old version of {{documentation}} did it.
Line 34:
}}<!--
Load the /doc content:
Note: The line break between this comment and the if-case
-->{{#if: {{{content|}}}
is necessary, it makes it so "=== Headings ===" at
so "=== Headings ===" at start of /docdocs are interpreted-->.
-->
-->{{#if: {{{content|}}}
| {{{content|}}}
| {{#if: {{{doc exist|yes}}}
| {{ {{{docpage|{{FULLPAGENAME}}/doc}}} }}
| <!--Empty div followed by a line break necessary
so "=== Headings ===" at start of /doc are interpreted-->
<div></div>
{{ {{{docpage|{{FULLPAGENAME}}/doc}}} }}
}}
}}