Difference between revisions of "Template:Template doc inline"

From Point Omega Research
Jump to: navigation, search
(Copied template logic from http://en.wikipedia.org/wiki/Template:Template_doc_inline)
 
(Fixed image reference)
 
Line 1: Line 1:
 
<noinclude>{{pp-template|small=yes}}</noinclude><includeonly><div class="template-documentation" style="background-color:#ecfcf4; border:1px solid #aaa; padding:5px;">
 
<noinclude>{{pp-template|small=yes}}</noinclude><includeonly><div class="template-documentation" style="background-color:#ecfcf4; border:1px solid #aaa; padding:5px;">
<div style="font-size: 1.5em; border-bottom: 1px solid #aaa;">{{#if:{{{2|}}}|<span class="editsection" style="font-size: small">[<span class="plainlinks">[{{fullurl:{{{2}}}}} view]</span>] [<span class="plainlinks">[{{fullurl:{{{2}}}|action=edit&preload={{urlencode:Template:Template doc/Preload}}}} edit]</span>]</span>}}[[Image:Template-info.svg|50px]] <span class="mw-headline">Template documentation</span></div>
+
<div style="font-size: 1.5em; border-bottom: 1px solid #aaa;">{{#if:{{{2|}}}|<span class="editsection" style="font-size: small">[<span class="plainlinks">[{{fullurl:{{{2}}}}} view]</span>] [<span class="plainlinks">[{{fullurl:{{{2}}}|action=edit&preload={{urlencode:Template:Template doc/Preload}}}} edit]</span>]</span>}}[[Image:Template-info-50px.png]] <span class="mw-headline">Template documentation</span></div>
  
 
{{{1}}}</div></includeonly><noinclude>{{template doc}}</noinclude>
 
{{{1}}}</div></includeonly><noinclude>{{template doc}}</noinclude>

Latest revision as of 12:41, 14 July 2007

Template:Pp-template
[view] [edit]Template-info-50px.png Template documentation

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.

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.