Jump to content

Template:Template parameter usage/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by DePiep (talk | contribs) at 23:57, 28 March 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The Template Parameters tool is available for viewing template parameter usage. It works with TemplateData to show the validity of parameter names that are used in template transclusions. For a required parameter, it can display a list of pages where the template is missing the parameter. The tool also shows commonly used values for each parameter. The data is updated monthly.

Usage

The template is included in transclusions of {{TemplateData header}}. If it's needed elsewhere, simply place the following in the template's documentation:

Error reports

{{tl:Template error report}}

By default, it links a report for the template-page being viewed. To link a report for a different template-page, pass it as the first parameter:

{{Template error report|Example}}

makes a link to the error report for Template:Example:

See a monthly parameter usage report for Template:Example in articles.

The first character can be made lowercase to follow on at the end of a sentence:

Blah, {{Template error report|lc=yes}} → Blah, see a monthly parameter usage report for this template in articles.