Template:Documentation subpage/doc: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} __NOTOC__ ==Usage== {{tl|documentation subpage}} creates an information box, telling the reader that the current page is a MozillaWiki:Template doc...")
 
(Updated the desc.)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
__NOTOC__
__NOTOC__
==Usage==
==Usage==
{{tl|documentation subpage}} creates an information box, telling the reader that the current page is a [[MozillaWiki:Template documentation|template documentation page]]. It will stretch horizontally to fill the width of the available space.
{{tl|documentation subpage}} creates an information box, telling the reader that the current page is a [[MozillaWiki:Template documentation|template documentation page]].


This template is only used in template documentation pages, and should '''always''' be placed '''at the very top of the page''' (i.e. put it above everything else inside the editing box). To link to a template's documentation page from its main page, use the template {{tl|documentation}}, which is placed on the template page itself.
This template is only used in template documentation pages, and should '''always''' be placed '''at the very top of the page''' (i.e. put it above everything else inside the editing box). To link to a template's documentation page from its main page, use the template {{tl|documentation}}, which is placed on the template page itself.
Line 12: Line 12:


==Examples==
==Examples==
{| class="wikitable"
See the resulting message box at the top of this page.
|-
! What you write !! What you see
|-
| <code><nowiki>{{documentation subpage}}</nowiki></code> || {{documentation subpage}}
|}


==See also==
==See also==

Latest revision as of 00:58, 29 November 2014

Edit-copy green.svg
This is a documentation subpage for Template:Documentation subpage.
It contains usage information, categories and other content that is not part of the original template page.

Usage

{{documentation subpage}} creates an information box, telling the reader that the current page is a template documentation page.

This template is only used in template documentation pages, and should always be placed at the very top of the page (i.e. put it above everything else inside the editing box). To link to a template's documentation page from its main page, use the template {{documentation}}, which is placed on the template page itself.

Parameter

There are no parameters.

To use the template, simply type {{documentation subpage}}.

Examples

See the resulting message box at the top of this page.

See also