Template:Documentation/core: Difference between revisions

From Donate
Jump to navigation Jump to search
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: Line 34:
}}<!--
}}<!--
Load the /doc content:
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
start of docs are interpreted.
-->
{{#if: {{{content|}}}
| {{{content|}}}
| {{{content|}}}
| {{#if: {{{doc exist|yes}}}
| {{#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}}} }}
}}
}}
}}
}}

Revision as of 06:40, 6 February 2010

[edit] [Purge] Template documentation

Template:Documentation/core/doc

The above documentation is transcluded from Template:Documentation/core/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (create) pages.

Template:Pp-template