Template:Documentation/Wikia Templates/doc

From Templates Wiki
Jump to navigation Jump to search
Please copy {{Tocright}} from wikiatemplates:Template:Tocright to Template:Tocright!
Please copy {{Tocright}}'s documentation from wikiatemplates:Template:Tocright/doc to Template:Tocright/doc!
Please copy {{SPW}} from wikiatemplates:Template:SPW to Template:SPW!
Please copy {{SPW}}'s documentation from wikiatemplates:Template:SPW/doc to Template:SPW/doc!

Template:SPW

Description
This template is used to insert documentation on template pages.
Syntax
Type <noinclude>

{{[[Template:|]]}} </noinclude> at the end of the template page.

General usage[edit source]

On the Template page[edit source]

Template code<includeonly>Any categories to be inserted into articles by the template
</includeonly><noinclude>
{{documentation}}
</noinclude>

On the Template/doc page[edit source]

See also Template:Documentation/preload
{{SPW|name={{subst:BASEPAGENAME}}}}
;Description
:This template is used to do something.
;Syntax
:Type <code>{{t|templatename}}</code> somewhere.
;Sample output
:<code><nowiki>{{templatename|foo}}</nowiki></code> gives...
:{{templatename|foo}}

<includeonly>Any categories for the template itself
</includeonly><noinclude>[[Category:Template documentation]]
</noinclude>

Use any or all of the above description/syntax/sample output sections. You may also want to add "see also" or further usage information sections.

Note that the above example also uses {{[[Template:|]]}} .