Template:Module documentation/doc

This template outputs a documentation wrapper very similar to the one generated by doc, but adjusted for modules. It is used on MediaWiki:Scribunto-doc-page-show and MediaWiki:Scribunto-doc-page-does-not-exist, which are the system messages displayed above the module code on a module page.

The template is not intended for direct transclusion on the wiki anywhere! Due to being included on the MediaWiki pages, it is transcluded automatically on all module pages, displaying the content of that module's documentation subpage wrapped in the documentation box.

Usage
The template is intended to be used on the two MediaWiki pages in the following way:

Intended content of MediaWiki:Scribunto-doc-page-show:



Intended content of MediaWiki:Scribunto-doc-page-does-not-exist:



The first unnamed parameter is the page name of the module documentation. The exists parameter causes a slight adjustment in output.