• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:YearParamUsageCheck

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 170,000 pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.

A monitoring template, to track use of by-year templates where:

  1. the year is supplied as one or more parameters, and
  2. that parameter is different from the year used in the title, or
  3. the title does not include a year

Purpose

This template is intended as a temporary monitoring and diagnostic tool.

Most of the category-by-year header templates are designed to be used on pages where the year is part of the page title. In such cases, the year does not need to be supplied as a parameter, because it can be grabbed from the title using {{Title year}}.

If all uses of a template are on pages which do have a year in the title which matches the year parameters, then the by-year parameters are redundant, and the template can be rewritten to remove them.

This template will track the exceptions, if any.

Usage

Outline
{{YearParamUsageCheck
| yearparam    = <whatever combination one or more parameters denotes the year>
| templatename = {{subst:PAGENAME}}
}}
Example

From Template:EstcatCanadaprovince

{{YearParamUsageCheck
| yearparam    = {{{1}}}{{{2}}}
| templatename = EstcatCanadaprovince
}}

See also

  • Template:YearParamUsageCheck category -- used for creating the tracking categories
The above documentation is transcluded from Template:YearParamUsageCheck/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:YearParamUsageCheck&oldid=39822"
Category:
  • YearParamUsageCheck templates
Last edited on 19 February 2019, at 11:11

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 19 February 2019, at 11:11.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop