Template:Documentation/doc: Difference between revisions
(Created page with "{{External|meta|rs|rsc}} {{Documentation}} {{Invokes|Documentation}} <code><nowiki>{{Documentation}}</nowiki></code> is transcluded in template/module documentation pages. This template should only be used on subpages titled "doc". This is '''not''' the template of the same name from Wikipedia and it is not used in the same way. ==Usage== Place {{t|documentation}} at the top of the documentation page, then transclude <code><nowiki>{{/doc}}</nowiki></code> directly from...") |
No edit summary Tag: Reverted |
||
Line 2: | Line 2: | ||
{{Documentation}} |
{{Documentation}} |
||
{{Invokes|Documentation}} |
{{Invokes|Documentation}} |
||
<code><nowiki>{{Documentation}}</nowiki></code> is transcluded in template/module documentation pages. This template should only be used on subpages titled "doc". |
<code><nowiki>{{Documentation}}</nowiki></code> is transcluded in template/module documentation mw.pages. This template should only be used on subpages titled "doc". |
||
This is '''not''' the template of the same name from Wikipedia and it is not used in the same way. |
This is '''not''' the template of the same name from Wikipedia and it is not used in the same way. |
Revision as of 00:24, 17 October 2024
{{Documentation}}
is transcluded in template/module documentation mw.pages. This template should only be used on subpages titled "doc".
This is not the template of the same name from Wikipedia and it is not used in the same way.
Usage
Place {{documentation}}
at the top of the documentation page, then transclude {{/doc}}
directly from the main template page, within <noinclude> tags.
If the page to be documented is a subpage, use {{documentation|pagename of page to be documented}}
at the top of the documentation page. For example, Template:Foo/bar's documentation page would use {{documentation|Template:Foo/bar}}
.
Note
This template links to a /doc that may appear useless, however, it exists in order to link navboxes and userboxes to their base template's documentation.