Template:Documentation subpage: Difference between revisions
Jump to navigation
Jump to search
(Mended the template, so it doesn't break due to a parsing error. Old template code at Template:Documentation subpage/original.) |
(Corrected an internal category link.) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
</includeonly>{{ | </includeonly>{{ | ||
#ifeq: {{{doc-notice|show}}} | show | #ifeq: {{{doc-notice|show}}} | show | ||
| {{message | | {{message/box | ||
| class = notice | | class = notice | ||
| image = Edit-copy green.svg | | image = Edit-copy green.svg | ||
| imgwidth = | | imgwidth = 50 | ||
| bgcolor = | | width = 63% | ||
| bdcolor = | | bgcolor = #F9F9F9 | ||
| bdcolor = #AAAAAA | |||
| style = margin-bottom:1.0em; | |||
| | | | ||
'''This is a | '''This is a documentation subpage for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.<br />It contains usage information, [[Help:Categories|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}}}}}}}}. | ||
}} | }} | ||
}}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{ | }}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{ |
Latest revision as of 00:11, 11 January 2015
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
- {{documentation}}
The above documentation is transcluded from Template:Documentation subpage/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |