Difference between revisions of "Template:Documentation"

From Nookipedia, the Animal Crossing wiki
(Removed text-align property (doesn't work, and is irrelevant))
(Added option to create documentation if none exists)
Line 4: Line 4:
 
----
 
----
 
{{:{{FULLPAGENAME}}/doc}}</div>
 
{{:{{FULLPAGENAME}}/doc}}</div>
| No documentation for {{FULLPAGENAME}} exists.}}
+
| No documentation for {{FULLPAGENAME}} exists. [[{{FULLPAGENAME}}/doc|Create it.]]}}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>

Revision as of 06:35, May 11, 2019


Template documentation (view)


Usage

{{Documentation|<page title>}}

This template exists to include documentation of a particular template using the doc subpage. Adding {{Documentation}} in, for example, Template:Notice Box effectively transcludes Template:Notice Box/doc.

By default the template will automatically link to a subpage of the page its placed on. The one and only parameter allows you to name a different page instead. This is useful if you want related templates to share the same documentation, as you can link them all to the same subpage.