Template:Documentation/doc: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
update documentation |
update documentation |
||
Line 1: | Line 1: | ||
<noinclude>{{Documentation page}}</noinclude> |
<noinclude>{{Documentation page}}</noinclude><!-- |
||
This template is meant to be included in a <code><nowiki><noinclude></nowiki></code> block at the end of a template with documentation located in the /doc subpage. This subpage is then transcluded inside a green box in the template page, as with this very text, when read from the main template page. One can use different content by setting the |
-->This template is meant to be included in a <code><nowiki><noinclude></nowiki></code> block at the end of a template with documentation located in the /doc subpage. This subpage is then transcluded inside a green box in the template page, as with this very text, when read from the main template page. One can use different content by setting the <code>content</code> argument. If there are positional arguments present, these will be used to form a list in the ''transcluded from'' notice, rather than the default /doc subpage. For example: |
||
<syntaxhighlight lang="mediawiki"> |
|||
{{Documentation|Template:Documentation page/doc|Template:Redirect page/doc|content= |
|||
== Documentation page documentation == |
|||
{{Documentation page/doc}} |
|||
== Redirect page documentation == |
|||
{{Redirect page/doc}} |
|||
}} |
|||
</syntaxhighlight> |
|||
Will produce: |
|||
{{Documentation|Template:Documentation page/doc|Template:Redirect page/doc|content= |
|||
== Documentation page documentation == |
|||
{{Documentation page/doc}} |
|||
== Redirect page documentation == |
|||
{{Redirect page/doc}} |
|||
}} |
|||
[[Category:Meta-templates]] |
[[Category:Meta-templates]] |