Template:Template doc inline

From Lunarpedia
Revision as of 20:14, 5 April 2007 by Mdelaney (talk | contribs) (New page: <noinclude>{{pp-template|small=yes}}</noinclude><includeonly><div class="template-documentation" style="background-color:#ecfcf4; border:1px solid #aaa; padding:5px;"> <div style="font-siz...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{#ifeq:yes?|yes? |

|

128px-Padlock.png

This {{#switch:Template

 |File=image, used in one or more high-risk templates or the interface,
 |#default=high-risk template

}} has been protected from editing to prevent vandalism. (protection log). Template:Howtoedit {{#switch:Template|File=:Note: This image should not be moved to commons}}

}}

{{#if:Template:Template_doc_inline/doc|[view] [edit]}}50px Template documentation

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

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

Usage

Template:Tlx
  • 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.