Template:Doc/doc: Difference between revisions
No edit summary |
mNo edit summary |
||
| Line 9: | Line 9: | ||
Add '''<tt><nowiki>{{doc}}</nowiki></tt>''' to the PAGENAME/doc sub-page and it will be placed in in [[:Category: Externalized documentation]]. (The template dynamically detects which behavior is appropriate.) | Add '''<tt><nowiki>{{doc}}</nowiki></tt>''' to the PAGENAME/doc sub-page and it will be placed in in [[:Category: Externalized documentation]]. (The template dynamically detects which behavior is appropriate.) | ||
{{ | {{doc2}} | ||
Revision as of 03:55, 9 September 2009
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.)

