Template:Documentation: Difference between revisions
Jump to navigation
Jump to search
shadow |
docs will cat |
||
Line 5: | Line 5: | ||
</div> | </div> | ||
{{#if:{{{contents|}}}|{{{contents}}}|{{#ifexist:{{FULLPAGENAME}}/doc|{{:{{FULLPAGENAME}}/doc}}|{{{1|No documentation available.}}}}}}} | {{#if:{{{contents|}}}|{{{contents}}}|{{#ifexist:{{FULLPAGENAME}}/doc|{{:{{FULLPAGENAME}}/doc}}|{{{1|No documentation available.}}}}}}} | ||
</div> | </div><includeonly>[[Category:Template documentation]]</includeonly> |
Revision as of 02:38, 21 September 2024
Usage
By default, this template displays the /doc subpage if it exists, or shows a link to create one if it does not.
<noinclude> {{Documentation}} </noinclude>
For custom documentation, use the contents parameter to override the /doc subpage.
<noinclude> {{Documentation | contents = <!-- Custom documentation --> }} </noinclude>