Template:Doc/doc: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
m escaping
Derik (talk | contribs)
No edit summary
Line 6: Line 6:


The /doc/ sub-page should be placed in [[:Category: Externalized documentation]] (within a <noinclude> tag.)
The /doc/ sub-page should be placed in [[:Category: Externalized documentation]] (within a <noinclude> tag.)
&lt;noinclude&gt;<nowiki>[[Category: Externalized documentation]]</nowiki>&lt;/noinclude&gt;
<noinclude>[[Category: Externalized documentation]]</noinclude>
<noinclude>[[Category: Externalized documentation]]</noinclude>

Revision as of 19:19, 12 June 2008

Using {{doc}} on a page will transclude the text of the /doc/ sub-page, (if that page exists). If it does not, it will do nothing.

On Template:spoiler, the sub-page would be Template:spoiler/doc.

{{doc}}'s purpose is to make maintaining template documentation easier, while also separating the edit history of the documentation from the edit history of the template itself.

The /doc/ sub-page should be placed in Category: Externalized documentation (within a <noinclude> tag.)

<noinclude>[[Category: Externalized documentation]]</noinclude>