Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Documentation/doc: Difference between revisions

Template page
m Update doc.
m Fix typo.
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Tocright}}; Description
{{Tocright}}
; Description
: This template is used to insert documentation on template pages.
: This template is used to insert documentation on template pages.


Line 11: Line 12:
== General usage ==
== General usage ==
=== On the Template page ===
=== On the Template page ===
You should attach <code><nowiki><noinclude>{{T|Documentation}}</noinclude></nowiki></code> to the end of the template page, so it looks like the below:
You should attach <code><nowiki><noinclude>{{Documentation}}</noinclude></nowiki></code> to the end of the template page, so it looks like the below:
<pre>
<pre>
TEMPLATE CODE HERE
TEMPLATE CODE HERE
Line 40: Line 41:
; Syntax
; Syntax
: {{T|Templatename|param|...}}
: {{T|Templatename|param|...}}
 
:; Parameters
; Parameters
::; param
:; param
::: Param description
;; Param description
::; param
:; param
::: Param description
;; Param description
OR
OR
:; param : Param description
::; param : Param description
:; param : Param description
::; param : Param description


Repeat as needed ...
Repeat as needed ...