Template:Documentation subpage: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
(Mended the template, so it doesn't break due to a parsing error. Old template code at Template:Documentation subpage/original.)
Line 3: Line 3:
</includeonly>{{
</includeonly>{{
     #ifeq: {{{doc-notice|show}}} | show
     #ifeq: {{{doc-notice|show}}} | show
     | {{mbox
     | {{message
       | type = notice
       | class = notice
       | image = [[File:Edit-copy green.svg|40px]]
       | image = Edit-copy green.svg
       | text =  
      | imgwidth = 60
      | bgcolor = white
       | bdcolor = silver
      |
'''This is a documentationsubpage for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.<br />It contains usage information, [[MozillaWiki:Categorization|categories]] and other content that is not part of the original {{ #if: {{{text2|}}} | {{{text2}}} | {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template page | {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}.  
'''This is a documentationsubpage for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.<br />It contains usage information, [[MozillaWiki:Categorization|categories]] and other content that is not part of the original {{ #if: {{{text2|}}} | {{{text2}}} | {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template page | {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}.  
       }}
       }}

Revision as of 23:45, 22 November 2014

Edit-copy green.svg

This is a documentationsubpage for Template:Documentation subpage.
It contains usage information, categories and other content that is not part of the original template page.

Documentation icon Template documentation[view] [edit] [history] [purge]

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