Template:documentation/doc
This template is used to show the documentation of the template or a module that is stored in the /doc subpage and wraps a green box around it depending on the namespace of the page using the template.
Usage
changeOn any page, this template is best used using the following syntax:
<!-- Your template code --><noinclude> {{documentation}} <!-- Categories, interwikis and TemplateData goes to the /doc subpage --> </noinclude>
The documentation page is then created through the links provided by the template when the page is saved. If a /doc subpage exists, this template will transclude it accordingly with the respective categories and TemplateData documentation if the page is in the Template: namespace.
For advanced usage, please read the documentation on the English Wikipedia.
Technical notes
changeThis template invokes Module:Documentation and passes given parameters over to it. The module is the main place where the processing and formatting of the page is done.
TemplateData
changeTemplateData for documentation
A template to display documentation from the /doc subpage.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Documentation page | 1 | The page holding the documentation, if not in the default /doc subpage. | Page name | optional |
Heading | heading | A custom heading to use instead of the defaults. Use "off" for this parameter to disable the heading text. | String | optional |
Content | content | Contents to put in the documentation box, used to put documentation on the template page itself. | String | optional |
Heading style | heading-style | Optional CSS for formatting the heading. Use this without quotation marks " " but with the ending semicolons ;. | String | optional |
Link box | link box | Content that should go into the box below the documentation. Use "off" to remove it. | String | optional |