Template:Documentation subpage/doc

This page will only parse completely when it is included in another page.
[template]documentation subpage[/template]
[TOC]NO[/TOC]
[h="2"]Usage[/h]
{{documentation subpage}}
[b]OR[/b]
{{documentation subpage|[[main page to link to]]|[[documentation to link to]]}}
This template should be placed at the top of "/doc" pages. It changes output depending on where it is viewed:
[list][*] On a "/doc" page, it displays a box explaining template documentation and links to the template page.
[*] On other pages (ie, pages transcluding the "/doc" page), it notes that the documentation is transcluded from a subpage.
[/LIST]
[h="2"]Functions[/h]
In addition to the output message, the template categorizes pages to [category=Template documentation]Template documentation[/category], [category=User documentation]User documentation[/category], or similar (named after the subject space), but only for documentation pages in namespaces with the subpage feature. It defaults the [wiki="m:Help:Categories#Sort order"]sort key[/wiki] to the page name without namespace (ie, "Foo" on "Template:Foo", so it would be sorted in categories under 'F').
[h="2"]See also[/h]
[list][*] [brwiki]Template documentation[/brwiki] for how this template is used.
[/LIST]
[template] Documentation/doc/see also [/template]

Tags for this Page

Similar Pages

  1. Documentation
    By Arjan in forum Template
    Comments: 0
    Last Post: 11-23-2008, 08:30 PM
  2. Documentation subpage
    By Arjan in forum Template
    Comments: 0
    Last Post: 11-23-2008, 08:30 PM
  3. Documentation/doc
    By Arjan in forum Template
    Comments: 0
    Last Post: 11-23-2008, 08:30 PM
  4. Documentation/doc/see also
    By Arjan in forum Template
    Comments: 0
    Last Post: 11-23-2008, 08:30 PM
  5. Template documentation
    By Arjan in forum Main
    Comments: 0
    Last Post: 11-23-2008, 07:23 PM

Bookmarks

Posting Permissions

Posting Permissions
  • You may not create new articles
  • You may not edit articles
  • You may not protect articles
  • You may not post comments
  • You may not post attachments
  • You may not edit your comments
BIRTHRIGHT, DUNGEONS & DRAGONS, D&D, the BIRTHRIGHT logo, and the D&D logo are trademarks owned by Wizards of the Coast, Inc., a subsidiary of Hasbro, Inc., and are used by permission. ©2002-2010 Wizards of the Coast, Inc.