Jump to content

Module:Years generator/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Naypta (talk | contribs) at 17:16, 7 June 2020 (Create docs). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Usage

Copy and paste the following code, substituting "start year" for the year you want to start the iteration from, and "template to transclude" with the template you want: {{#invoke:Years generator|templateEveryYearToPresent|Start year|Template to transclude}} This will result in the template being called for each year from Start year to the current year, with the year it's being called for as the first and only argument.