Template:Doc

From MediaWiki
Revision as of 22:02, 13 December 2016 by Abates (talk | contribs) (I think this should work so I can just point all the bullet point templates to the one documentation.)
Jump to navigationJump to search
(Transcluded documentation: view)

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.

On very rare occasions involving templates with URL-encoded characters in their name, {{doc}} will fail to include the external template. The current workaround for this is simply to set |hack=true

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

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