Template:Documentation subpage: Difference between revisions
Jump to navigation
Jump to search
FaeriMagic (talk | contribs) (Created page with "{{#ifeq:{{SUBPAGENAME}}|doc| <div class="documentation-subpage" style="border: 1px solid #ccc; background-color: #f9f9f9; padding: 0.5em; margin-top: 1em;"> This is the <code>/doc</code> subpage of [[{{BASEPAGENAME}}]]. Any changes made here will reflect on the main template page. </div> }} <noinclude> {{Documentation}} Category:Documentation templates </noinclude>") |
FaeriMagic (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{#ifeq:{{SUBPAGENAME}}|doc| | {{#ifeq:{{SUBPAGENAME}}|doc| | ||
<div class="documentation-subpage" style="border: 1px solid #ccc; background-color: #f9f9f9; padding: | <div class="documentation-subpage" style="border: 1px solid #ccc; background-color: #f9f9f9; padding: 1em; margin: 1em 0;"> | ||
This is the <code>/doc</code> subpage of [[{{BASEPAGENAME}}]]. Any changes made here will reflect on the main template page. | This is the <code>/doc</code> subpage of [[{{BASEPAGENAME}}]]. Any changes made here will reflect on the main template page. | ||
</div> | </div> |
Revision as of 05:59, 30 July 2025
Basic usage
In most cases, the following code is sufficient on its own:
<noinclude> {{Documentation subpage}} </noinclude>
However, a parameter may need to be specified if:
- The documentation is used on a page that is not a subpage. (e.g. test pages)
- The documentation is for a non-template page. (e.g.
Module:
pages) - One or both pages use non-standard naming conventions. (e.g.
{{Documentation subpage|Template:Artist/Album}}
)
<noinclude> {{Documentation subpage|The page you want to point to}} </noinclude>