Template:Documentation: Difference between revisions

From OSDev.wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
add template argument
add extra argument
Line 3:
= Template documentation =
''Transcluded from [[{{{1|{{FULLPAGENAME}}/doc}}}]]''
{{{2|{{1| {{PAGENAME}}/doc }}}}}
|}

Revision as of 16:35, 18 June 2024

Template documentation

Transcluded from Template:Documentation/doc This template is meant to be included in a <noinclude> 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 content 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:

{{Documentation|Template:Documentation page/doc|Template:Redirect page/doc|content=
== Documentation page documentation ==
{{Documentation page/doc}}
== Redirect page documentation ==
{{Redirect page/doc}}
}}

Will produce:

Template documentation

Transcluded from Template:Documentation page/doc Template:Redirect page/doc