contributors, delete_pages, Interface administrators
4,701
edits
FaeriMagic (talk | contribs) (Created page with "This template transcludes documentation from a <code>/doc</code> subpage onto the template page, if it exists. == Basic usage == Place the following at the bottom of the template: <pre><nowiki><noinclude> {{Documentation}} </noinclude></nowiki></pre> This setup ensures that: * When viewing the template page, the documentation is displayed. * When the template is used elsewhere, the documentation is hidden. <noinclude>== Example == Below is a working example using a sub...") |
FaeriMagic (talk | contribs) mNo edit summary |
||
Line 8: | Line 8: | ||
This setup ensures that: | This setup ensures that: | ||
* When viewing the template page, the documentation is displayed. | * When viewing the template page, the documentation is displayed. | ||
* When the template is used elsewhere, the documentation is hidden. | * When the template is used elsewhere, the documentation is hidden.<noinclude> | ||
== Example == | |||
Below is a working example using a subpage at [[:Template:Documentation/doc]]: | Below is a working example using a subpage at [[:Template:Documentation/doc]]: | ||
<blockquote> | |||
{{Documentation/doc}} | {{Documentation/doc}} | ||
</blockquote> | |||
[[Category:Documentation subpages]]</noinclude> | [[Category:Documentation subpages]]</noinclude> |