Jump to content

Module:Calendar widget/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Trappist the monk (talk | contribs) at 23:10, 3 July 2019 (create;). 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)

{{Module rating }}

Usage

{{#invoke:Calendar widget|calendar}}

Parameters

  • |year= – specifies the year to be used when creating a monthly or yearly calendar; when omitted uses current year
  • |month= – specifies the month to be used when creating a monthly calendar in the year specified by |year=; accepts a variety values:
    numbers 1 to 12 – defaults to current month when month number is out of range
    month names (January, March, etc) – defaults to current month when month name is not recognized
    keywords:
    current – display this current month
    last – display the month that occurs before the present month
    next – display the month that occurs after the present month
  • |float= – position the rendered calendar; default position is at the left page margin:
    center – middle of the page
    right – at the right page margin
  • |iso= – accepts the single value yes; calendar renders in ISO week format (Monday through Sunday)
  • |iso-wk= – accepts the single value yes; calendar renders in ISO week format (Monday through Sunday) with ISO week number in the left column; setting |iso-wk=yes automatically sets |iso=yes
  • |lk= – various date component linking options:
    d – link to calendar day of calendar month
    m – link to month article
    y – link to year article
    dm – link to days and month
    dy – link to days and year
    my – link to month and year
    yes – link all date components
  • |show-today= – accepts the single value yes; highlights the current date in the current-month calendar