Template:Doc/doc

From MediaWiki
Revision as of 03:55, 9 September 2009 by Derik (talk | contribs)
Jump to navigationJump to search

Using {{doc}} on a page will transclude the text of the PAGENAME/doc sub-page if that page exists. If it does not, a link to create it will be created.

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 template's 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[Still the case?]

Add {{doc}} to the PAGENAME/doc sub-page and it will be placed in in Category: Externalized documentation. (The template dynamically detects which behavior is appropriate.)

Template:Doc2