Difference between revisions of "Template:Documentation"
From Nookipedia, the Animal Crossing wiki
Decomposer (talk | contribs) (Added option to create documentation if none exists) |
(Correcting issue where template would suggest that documentation should be created for a page other than the one it was placed on when a custom documentation location link was used.) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifexist: {{FULLPAGENAME}}/doc | + | <includeonly>{{#ifexist: {{{1|{{FULLPAGENAME}}}}}/doc |
− | |<div class="boilerplate" style="background-color: #F5F5F5; padding: 10px 10px 10px 10px; border: 1px solid #C0C0C0;"> | + | |<div class="boilerplate" style="background-color: #F5F5F5; padding: 10px 10px 10px 10px; border: 1px solid #C0C0C0; {{{custom|}}}"> |
− | <span style="font-size:large; font-weight:bold">Template documentation</span> ([[{{FULLPAGENAME}}/doc|view]]) | + | <span style="font-size:large; font-weight:bold">Template documentation</span> ([[{{{1|{{FULLPAGENAME}}}}}/doc|view]]) |
---- | ---- | ||
− | {{:{{FULLPAGENAME}}/doc}}</div> | + | {{:{{{1|{{FULLPAGENAME}}}}}/doc}}</div> |
− | | No documentation for {{FULLPAGENAME}} exists. [[{{FULLPAGENAME}}/doc|Create it.]]}} | + | | No documentation for {{FULLPAGENAME}} exists. [[{{{1|{{FULLPAGENAME}}}}}/doc|Create it.]]}} |
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> |
Latest revision as of 13:27, October 16, 2020
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.