Template:Doc/doc: Difference between revisions
From MediaWiki
Jump to navigationJump to searchNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
Using <nowiki>{{doc}}</nowiki> on a page will [[Wikipedia:Wikipedia:Transclusion|transclude]] the text of the /doc/ sub-page, if that page exists. | Using <nowiki>{{doc}}</nowiki> on a page will [[Wikipedia:Wikipedia:Transclusion|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]]. | On [[Template:spoiler]], the sub-page would be [[Template:spoiler/doc]]. | ||
<nowiki>{{doc}}</nowiki>'s purpose | <nowiki>{{doc}}</nowiki>'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. | ||
Revision as of 05:02, 10 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.

