Template:Doc/doc: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
No edit summary
Derik (talk | contribs)
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.  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 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 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 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.