Template:Doc/doc: Difference between revisions
From MediaWiki
Jump to navigationJump to searchNo edit summary |
No 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. if ti does not, it will do nothing. | Using <nowiki>{{doc}}</nowiki> on a page will [[Wikipedia:Wikipedia:Transclusion|transclude]] the text of the /doc/ sub-page, if that page exists. if ti does not, it will do nothing. | ||
On [[Template: | On [[Template:spoiler]], the sub-page would be [[Template:spoiler/doc]]. | ||
<nowiki>{{doc}}</nowiki>'s purpose it to make it easier to maintain documentation, especially template- while also separating the editing history of the documentation from the editing history of the template itself. | <nowiki>{{doc}}</nowiki>'s purpose it to make it easier to maintain documentation, especially template- while also separating the editing history of the documentation from the editing history of the template itself. | ||
Revision as of 04:54, 10 June 2008
Using {{doc}} on a page will transclude the text of the /doc/ sub-page, if that page exists. if ti does not, it will do nothing.
On Template:spoiler, the sub-page would be Template:spoiler/doc.
{{doc}}'s purpose it to make it easier to maintain documentation, especially template- while also separating the editing history of the documentation from the editing history of the template itself.

