Template:Set-annual-property

From SABR Encyclopedia

Revision as of 20:13, 12 April 2009 by TurocyT01 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template automates the setting of "annual" properties. These are properties where the first part of the value of the property is a year; for example, [[person-president-league::1901 American League]]

This template takes four parameters:

  • property= The property to set
  • value= The value to use for the property, which follows the year
  • startyear= The first year to set the property
  • endyear= The last year to set the property

Since there is no real looping capability in MediaWiki, this template manually goes through all the years from 1871 to 2009 and checks whether the year is in the range specified.


Personal tools