See something you'd like to change or add, but you've never edited an open encyclopædia before? This overview was written to help absolute beginners get started.

Template:Template doc

From A Storehouse of Knowledge

Jump to: navigation, search

Template: Template doc
Use on Template documentation pages
Use for Documenting templates (this template)
Category template applies to page (none)
Template Parameters
(See Template style manual).
NamePurposeRequired?SMW propertyComment
nameThe name of the templatenoDefaults to the name of the page
pagesWhat type of pages to use the template onyes
purposeThe purpose of the templateyes
cat, page catA category that the page is added to (see notes)noDefaults to "(none)". See notes A to C
template catA category for the templateno (for now)See note D
otherA further valuenoFor use by templates based on this one.
other labelThe label for a further valueyes if other supplied, no otherwise


Note A
This is a category that the template adds to any page on which it is placed. That is, it is a category for categorising the article, not the template. If the template should not add a category to pages, leave this parameter blank (or omit it).
Note B
If more than one category is applied by the template, or alternative categories depending on parameters, put (see note) and list them separately on the documentation page. NB: This has a bug, but do it anyway.
Note C
Parameter cat is deprecated. Use page cat instead.
Note D
Unless a new category is required, use one of the categories below, but omit the word "templates" from the category. For example, for a base template, use template cat=base.
NB: Template categories below may have sub-categories which may also be used.


Data block

The data block below can be copied to the page required to save typing it out. If a parameter in the data block below has a hash character (#), this indicates that the template supplies a default if the parameter is not supplied. Remove the hash if you want to supply a value to this parameter. See Data block on the Template style manual page for more information.

{{Template doc
 |#name =
 |pages =
 |purpose =
 |page cat =
 |template cat =
}}

NB: Adapted from my own work on Conservapedia.

Personal tools
visitor navigation