Template:Documentation

From Zombie Panic! Official Wiki
(Redirected from Template:Doc)
Jump to navigation Jump to search
Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses Module:Documentation, a script written in Lua.

This template is used to insert documentation to template pages.

Syntax

  • {{Documentation}} will produce the documentation template.
  • {{Documentation|foo}} will fill in the documentation from the "foo" template.
  • {{Documentation|content = This template does something}} will fill in the documentation with the content "This template does something." (not recommended except for very, very short documentation)
  • {{Documentation|heading = Important information}} will replace the default heading with "Important information".
  • {{Documentation|type = Category}} will add the "Category Templates" category.

Template Data

This template is used to insert descriptions on template pages.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Typetype

Optional template type.. Do not include "Templates" suffix.

Example
Infobox
Stringsuggested
Type 2type2

Optional template type. Do not include "Templates" suffix.

Example
Infobox
Stringoptional
Is draftdraft

Set to 1 if this is for a draft template.

Booleanoptional
Alternative doc page1

Optional alternative page for documentation instead of Template:{name}/doc. Unless if there's a specific reason to not use the default doc page, you shouldn't use an alternative.

Page nameoptional