Mr. Johnson (talk | contribs) No edit summary |
Mr. Johnson (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Redbox|{{FULLPAGENAME}}|{{Documentation/Documentation}}}} | {{Redbox|{{FULLPAGENAME}}|{{Documentation/Documentation}}|width=95%}} | ||
<p style="margin-left: 25px">The documentation above was transcluded from [[{{FULLPAGENAME}}/Documentation]]. {{Edit|{{FULLPAGENAME}}/Documentation|action=edit}}</p> | <p style="margin-left: 25px">The documentation above was transcluded from [[{{FULLPAGENAME}}/Documentation]]. {{Edit|{{FULLPAGENAME}}/Documentation|action=edit}}</p> | ||
<!-- We have to do this template's documentation "manually" to avoid a template loop.--> | <!-- We have to do this template's documentation "manually" to avoid a template loop.--> | ||
<includeonly><onlyinclude> | <includeonly><onlyinclude> | ||
[[Category:Template]]{{#ifexist:{{FULLPAGENAME}}/Documentation | [[Category:Template]]{{#ifexist:{{FULLPAGENAME}}/Documentation | ||
|{{ | |{{Redbox|{{FULLPAGENAME}}|{{ {{FULLPAGENAME}}/Documentation}}}} | ||
<p style="margin-left: 25px">The documentation above was transcluded from [[{{FULLPAGENAME}}/Documentation]]. {{Edit|{{FULLPAGENAME}}/Documentation|action=edit}}</p> | <p style="margin-left: 25px">The documentation above was transcluded from [[{{FULLPAGENAME}}/Documentation]]. {{Edit|{{FULLPAGENAME}}/Documentation|action=edit}}</p> | ||
|{{Redbox|{{Template|{{PAGENAME}}}} has [[:Category:Templates without Documentation|no documentation]]. {{Edit|{{FULLPAGENAME}}/Documentation|Create}}|error|color=red|width=5%}}[[Category:Templates without Documentation|Documentation]] | |{{Redbox|{{Template|{{PAGENAME}}}} has [[:Category:Templates without Documentation|no documentation]]. {{Edit|{{FULLPAGENAME}}/Documentation|Create}}|error|color=red|width=5%}}[[Category:Templates without Documentation|Documentation]] | ||
}}</onlyinclude></includeonly> | }}</onlyinclude></includeonly> |
Revision as of 06:20, 19 November 2023
Template:Documentation
Template:Documentation
is used within the template namespace to automate the detection and presentation of documentation.
Usage
It accepts no parameters. It should be included at the top of every template's main page — Boilerplate:Template does this automatically.
Any categories meant to apply to the template itself should be included in the documentation subpage, wrapped inside <includeonly />
tags, rather than directly in the body of the template.
Return
As it relies on the presence or existence of other pages, working examples cannot be provided.The documentation above was transcluded from Template:Documentation/Documentation. [ edit ]