Template:Documentation/doc

From Doggy Talents Next Wiki
Jump to navigation Jump to search
Description
This template is used to insert descriptions on template pages.
Syntax
Type <noinclude>{{documentation}}</noinclude> at the end of the template page.

General usage

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

Note that, depending on the template, you may need to add a clear or complete a table/div just before {{documentation}} is inserted (within the noinclude tags).

The line break is also useful as it helps prevent the documentation template "running into" previous code.

Dependencies

TemplateData

This template is used to insert descriptions on template pages.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Custom Documentation Page1

Page containing the documentation

Default
{{FULLPAGENAME}}/doc
Page nameoptional
Force localised subpagei18n

Forces the use of `/doc/<lang>` pages even for English documentation (unless `/doc` exists and `/doc/en` does not)

Default
0
Auto value
1
Booleanoptional
Ignore the current languageignoreCurrentLang

Ignores the current language, so that wikis in a single language use `/doc` pages only

Default
0
Booleanoptional
Headingheading

Custom heading

Default
[[File:Template-info.svg|50px|link=|alt=Documentation icon]] Documentation
Auto value
Lineoptional
Preload Pagepreload

The page to preload if the `/doc` subpage doesn't exist.

Default
Template:Documentation/preload
Page nameoptional
Contentcontent

Custom documentation content, prevents transclusion of `/doc` subpage.

Contentoptional