Template:Documentation/doc: Difference between revisions

From The Unofficial Isekai:Slow Life Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}} <!-- Adds [[Category:Documentation subpage]] -->
This template transcludes documentation from a <code>/doc</code> subpage onto the template page, if it exists.
This template transcludes documentation from a <code>/doc</code> subpage onto the template page, if it exists.



Latest revision as of 16:00, 30 July 2025

This is the /doc subpage of Template:Documentation. Any changes made here will reflect on the main template page.

This template transcludes documentation from a /doc subpage onto the template page, if it exists.

Basic usage

Place the following at the bottom of the template:

<noinclude>
{{Documentation}}
</noinclude>

This setup ensures that:

  • When viewing the template page, the documentation is displayed.
  • When the template is used elsewhere, the documentation is hidden.

Example

Below is a working example using a subpage at Template:Documentation/doc:

This is the /doc subpage of Template:Documentation. Any changes made here will reflect on the main template page.

This template transcludes documentation from a /doc subpage onto the template page, if it exists.

Basic usage

Place the following at the bottom of the template:

<noinclude>
{{Documentation}}
</noinclude>

This setup ensures that:

  • When viewing the template page, the documentation is displayed.
  • When the template is used elsewhere, the documentation is hidden.