Difference between revisions of "Template:Documentation"

From Krafties
Jump to navigation Jump to search
m
m
Line 10: Line 10:
 
|-
 
|-
 
|style="{{{style|padding-left:10px;}}}" |
 
|style="{{{style|padding-left:10px;}}}" |
The above documentation is transcluded from Template:Documentation/doc. ([[{{fullurl:{{ns:10}}:{{{1}}}|action=edit}} <span title="Edit this template">edit</span>]])
+
The above documentation is transcluded from Template:Documentation/doc. ([[{{fullurl:{{ns:10}}:{{{1}}}|action=edit}}|edit]])
 
<br>Editors can experiment in this template's [[{{FULLPAGENAME}}/sandbox|sandbox]]
 
<br>Editors can experiment in this template's [[{{FULLPAGENAME}}/sandbox|sandbox]]
 
<br>Please add categories to the [[{{FULLPAGENAME}}/doc|/doc]] subpage. {{Subpages|Subpages of this template}}.
 
<br>Please add categories to the [[{{FULLPAGENAME}}/doc|/doc]] subpage. {{Subpages|Subpages of this template}}.
Line 17: Line 17:
 
;:You might want to leave the [[Template:Table Cell Templates|Table Cell Templates]] alone unless you know what you are doing, it requires some more advanced splicing because of all the <nowiki><noinclude></nowiki> tags.
 
;:You might want to leave the [[Template:Table Cell Templates|Table Cell Templates]] alone unless you know what you are doing, it requires some more advanced splicing because of all the <nowiki><noinclude></nowiki> tags.
 
<!--
 
<!--
 
+
[{{fullurl:{{ns:10}}:{{{1}}}|action=edit}} <span title="Edit this template">e</span>]
 
       -->
 
       -->
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>

Revision as of 07:44, 2 May 2017

Template Explanation

This template allows any page to use any documentation page, and makes it possible to protect templates while allowing anyone to edit the template's documentation, categories, and interwiki links. It also reduces server resources by circumventing a technical limitation of templates

It detects the namespace, so when used on templates, it will say "Template Documentation" but on other namespaces it will just say "Documentation".

Usage

heading= (OPTIONAL)
  • heading= you can set a custom title, but if you include this parameter but leave it empty then the title will be removed along with the "edit/view" links.

Documentation subpages

Here is an example of how a /doc subpage setup should look like to be proper.

Categories that should be applied to the template should always go between <includeonly> and </includeonly> so they will not apply themselves to the documentation.
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwiki links -->

== Usage ==
 | parameter=

== See also ==

<includeonly>
<!-- Categories go here, and interwikis go here -->
</includeonly>

See also