සැකිල්ල:Template doc/doc
This is a documentation subpage for සැකිල්ල:Template doc (see that page for the සැකිල්ල itself). It contains usage information, categories and other content that is not part of the original සැකිල්ල page. |
This template is kept temporarily until pages are converted to the merged and improved {{Documentation, template}}.
Note differences in usage mean it cannot be redirected. See Template parameter differences below.
This template displays a "Template documentation" box just like you are seeing now.
Usage
සංස්කරණයAdd to the main template at the end of the template code:
[--last line of your template code--]<noinclude>
<!--
PLEASE DO NOT ADD DOCUMENTATION/CATEGORIES/INTERWIKIS HERE
-->
{{Template doc}}
<!--
MAKE ADDITIONS TO THE /doc SUBPAGE INSTEAD, THANKS
-->
</noinclude>
or with a parameter: 1 = name of the documentation page.
Make sure the opening <noinclude>
begins on the same line as the last character of the template code (or text), and not on a new line. Otherwise, extra space will be inserted below the template when it is used, which is usually not wanted.
If the template is already protected, ask an administrator to do this, or request an edit by using {{editprotected}}
on the template’s talk page. If documentation, categories and interwiki links already exist in a section enclosed within a <nowiki>
element, move them into the documentation subpage, as it is best not to have documentation split across two separate pages.
Click the "edit" link, which points to the /doc subpage, and write documentation there. If the /doc page does not exist yet සැකිල්ල:Template doc/Preload (සාකච්ඡාව, backlinks, සාකච්ඡාව) is preloaded.
Add categories and interwiki links to the /doc subpage inside <includeonly></includeonly>
.
Advantages
සංස්කරණය- It allows templates to be protected where necessary, while allowing anyone to edit the documentation.
- Text on the template page itself adds to the amount of text which must be processed when displaying the template, which is limited for performance reasons: there is a pre-expand include size maximum of 2,048,000 bytes. Placing the documentation in a subpage avoids this (MediaWiki developers have recommended it for this reason).
Limitation
සංස්කරණයA pipe character in the documentation page which is not inside double or triple braces or double brackets disturbs proper functioning of this template, because the content of that page is assigned to a template parameter. Use |
instead.
If the documentation contains includeonly or noinclude tags within nowiki tags, replace the "<" with "<".
Template parameter differences
සංස්කරණයParameter for /doc path
සංස්කරණය- {{Template doc}} uses 1={{PAGENAME}}
- and then transcluded
- {{Template doc inline}} using
- 1={{ {{SUBJECTSPACE}}:{{{1}}} }}
- 2={{SUBJECTSPACE}}:{{{1}}}
- {{Documentation}} uses 1={{FULLPAGENAME}}
- {{Documentation, template}} uses 1={{FULLPAGENAME}}
- {{Template doc inline}} uses 2={{FULLPAGENAME}}
See also
සංස්කරණය{{ Documentation }} family
සංස්කරණය- සැකිල්ල:Documentation (සාකච්ඡාව, backlinks, සාකච්ඡාව)
- සැකිල්ල:Documentation, template (සාකච්ඡාව, backlinks, සාකච්ඡාව)
- සැකිල්ල:Documentation subpage (සාකච්ඡාව, backlinks, සාකච්ඡාව)
{{ Template doc }} family
සංස්කරණය- Similar template family with more documentation; see template comparison.
- Transcludes සැකිල්ල:Documentation, template (සාකච්ඡාව, backlinks, සාකච්ඡාව)
- Previously transcluded සැකිල්ල:Template doc inline (සාකච්ඡාව, backlinks, සාකච්ඡාව).
- සැකිල්ල:Template documentation (සාකච්ඡාව, backlinks, සාකච්ඡාව) (redirect)
- Redirects to සැකිල්ල:Template doc (සාකච්ඡාව, backlinks, සාකච්ඡාව)
- Supports in-line documentation.
- Transcludes සැකිල්ල:Documentation, template (සාකච්ඡාව, backlinks, සාකච්ඡාව)
- Previously core implementation for family.
- සැකිල්ල:Template doc page (සාකච්ඡාව, backlinks, සාකච්ඡාව) (redirect)
- Redirects to සැකිල්ල:Documentation subpage (සාකච්ඡාව, backlinks, සාකච්ඡාව)
- Previously transcluded සැකිල්ල:Template doc page transcluded (සාකච්ඡාව, backlinks, සාකච්ඡාව).
- Previously transcluded සැකිල්ල:Template doc page viewed directly (සාකච්ඡාව, backlinks, සාකච්ඡාව).
- Current implementation displays nothing.
- Transcludes සැකිල්ල:Documentation subpage (සාකච්ඡාව, backlinks, සාකච්ඡාව)
- Previously implemented "...transcluded from..." display.
- සැකිල්ල:Template doc page viewed directly (සාකච්ඡාව, backlinks, සාකච්ඡාව) (redirect)
- Redirects to සැකිල්ල:Documentation subpage (සාකච්ඡාව, backlinks, සාකච්ඡාව)
- Previously implmented "This is documentation subpage..." display.
Meta Wiki {{ Documentation }} ancestor
සංස්කරණය