Editing
Template:Documentation/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Placement and tags== This code should be added at the bottom of the template code page, with no space before {{Tag|noinclude|o}} (which causes extra whitespace to show on pages where the template is transcluded): <syntaxhighlight lang="xml"><!--Last line of your template code--><noinclude> {{documentation}} </noinclude></syntaxhighlight> To automatically insert the [[Wikipedia:Noinclude|noinclude tags]], the template call and the guiding comment, you can also use this [[Wikipedia:Substitution|substitution]] code shortcut: {{tlxs|doc-code}} Which results in: <syntaxhighlight lang="xml"><!--Last line of your template code--><noinclude> {{documentation}} <!-- Add categories to the /doc subpage --> </noinclude></syntaxhighlight> ===Categorization=== When a documentation subpage is created by using this template, then to place the template itself into a category, add <code><nowiki>[[Category:Category name]]</nowiki></code> inside an {{tag|includeonly|p|content={{((}}Sandbox other{{!!}}...{{))}}}} section on the /doc subpage. For example, for placement on the documentation subpage: <syntaxhighlight lang="xml" style="overflow:auto;"> {{Documentation subpage}} == Usage == <include<includeonly></includeonly>only>{{sandbox other|| <!-- Categories below this line --> [[Category:Category name]] [[Category:Category name2]] }}</includeonly> </syntaxhighlight> When a documentation subpage has not been created, and the documentation template is being used with a {{para|content}} parameter on the actual template page, then to place the template itself into a category, add <code><nowiki>[[Category:Category name]]</nowiki></code> inside the documentation template, after the content. For example, for placement on the actual template page: <syntaxhighlight lang="xml" style="overflow:auto;"> <!--Last line of your template code--><noinclude> {{Documentation | content = <!-- template documentation --> [[Category:Category name]] [[Category:Category name2]] }}</noinclude> </syntaxhighlight> Interwiki links that apply to the template should be listed at [[d:|Wikidata]] (more at [[Wikipedia:Wikidata]]). For more complex cases, see {{section link|Wikipedia:Template documentation#Categories and interwiki links}}.
Edit summary
(Briefly describe your changes)
Please note that all contributions to A2wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
A2wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Current events
Random page
About A2wiki
interaction
Help
Community portal
Recent changes
Upload file
Tools
What links here
Related changes
Special pages
Page information