Difference between revisions of "Template:Template doc/doc"

From wiki.visual-prolog.com
(Ini)
 
(x)
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
It is primarily used by {{tl|template doc}} to automatically display the documentation for the template from a /doc subpage, but can also be used to display inline documentation.
It is primarily used by {{tl|template doc}} to automatically display the documentation for the template from a /doc subpage, but can also be used to display inline documentation.


It provides a view and an edit link to the documentation page. If that page does not exist yet the edit link [[mw:Extension:Inputbox#Preload|preloads]] {{tiw|Template doc/Preload}}.
It provides a view and an edit link to the documentation page.


==Usage==
==Usage==
Line 19: Line 19:
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Template documentation| {{PAGENAME}}]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>
</includeonly>
<noinclude>
[[ml:ഫലകം:Template doc inline/doc]]
[[ro:Format:Template:Template doc inline/doc]]
[[zh:Template:內聯模板文件/doc]]
</noinclude>

Latest revision as of 20:30, 27 October 2007

This subpage contains documentation, categories and other content that is not part of the template.
To view the template page itself, see Template:Template doc.

This template displays a "Template documentation" box like you are seeing now.

It is primarily used by {{template doc}} to automatically display the documentation for the template from a /doc subpage, but can also be used to display inline documentation.

It provides a view and an edit link to the documentation page.

Usage

{{template doc inline}}
  • Inline documentation is the text to display inside the box.
  • Pagename refers to the name of the documentation page, which if specified, creates [view] and [edit] boxes to the right of the heading.