<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ACalendar_widget%2Fdoc</id>
	<title>Module:Calendar widget/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ACalendar_widget%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:Calendar_widget/doc&amp;action=history"/>
	<updated>2026-04-16T15:48:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Module:Calendar_widget/doc&amp;diff=735&amp;oldid=prev</id>
		<title>Wikipedia&gt;Gonnym: /* Examples */</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:Calendar_widget/doc&amp;diff=735&amp;oldid=prev"/>
		<updated>2021-12-26T20:45:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Examples&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{tl|Module rating |&amp;lt;!-- Values:  pre-alpha • alpha • beta • release • protected  --  If a rating not needed/relevant, delete this template call --&amp;gt;}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|calendar}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
===Calendar parameters===&lt;br /&gt;
*{{para|year}} – specifies the year to be used when creating a monthly or yearly calendar; Gregorian calendar only; minimum 1583 for yearly calendar; minimum October 1582 for stand-alone month calendar; when omitted or out of range,  uses current year&lt;br /&gt;
*{{para|month}} – specifies the month to be used when creating an stand-alone month calendar in the year specified by {{para|year}}; accepts a variety values:&lt;br /&gt;
*:numbers &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;12&amp;lt;/code&amp;gt; – defaults to current month when month number is out of range&lt;br /&gt;
*:month names (&amp;lt;code&amp;gt;January&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;March&amp;lt;/code&amp;gt;, etc) – defaults to current month when month name is not recognized&lt;br /&gt;
*:keywords:&lt;br /&gt;
*::&amp;lt;code&amp;gt;current&amp;lt;/code&amp;gt; – display the current month&lt;br /&gt;
*::&amp;lt;code&amp;gt;last&amp;lt;/code&amp;gt; – display the month that occurs before the current month&lt;br /&gt;
*::&amp;lt;code&amp;gt;next&amp;lt;/code&amp;gt; – display the month that occurs after the current month&lt;br /&gt;
*{{para|cols}} – yearly calendars only; number of columns &amp;lt;code&amp;gt;{{var|n}}&amp;lt;/code&amp;gt; to be used for calendar rendering; default is &amp;lt;code&amp;gt;4&amp;lt;/code&amp;gt;; values of &amp;lt;code&amp;gt;{{var|n}}&amp;lt;/code&amp;gt; less than 1 or greater than 12 ignored&lt;br /&gt;
*{{para|iso}} – accepts the single value &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt;; calendar renders in [[ISO week]] format (Monday through Sunday); not needed if {{para|iso_wk}} set&lt;br /&gt;
*{{para|iso_wk}} – accepts the single value &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt;; calendar renders in [[ISO week]] format (Monday through Sunday) with ISO week number in the left column; setting {{para|iso_wk|yes}} automatically sets {{para|iso|yes}}&lt;br /&gt;
&lt;br /&gt;
===Styling parameters===&lt;br /&gt;
*{{para|float}} – position the rendered calendar; default position is at the left page margin:&lt;br /&gt;
*:&amp;lt;code&amp;gt;center&amp;lt;/code&amp;gt; – middle of the page&lt;br /&gt;
*:&amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt; – at the right page margin&lt;br /&gt;
*{{para|hide_year}} – accepts the single value &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt;; suppresses display of year in calendar headers; alias {{para|show_year|off}}&lt;br /&gt;
*{{para|show_today}} – accepts the single value &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt;; highlights the current date in the current-month calendar&lt;br /&gt;
*{{para|today_color}} – set the highlight color used by {{para|show-today}}; alias: {{para|today_colour}}&lt;br /&gt;
*{{para|title_color}} – set background color for the month title bar; overrides {{para|color}}; alias: {{para|title_colour}}&lt;br /&gt;
*{{para|week_color}} – set background color for the day-abbreviations title bar; overrides {{para|color}}; alias: {{para|week_colour}}&lt;br /&gt;
*{{para|color}} – shorthand for both {{para|title_color}} and {{para|week_color}}; {{para|color}} yields to {{para|title_color}} and {{para|week_color}}; alias: {{para|colour}}&lt;br /&gt;
*{{para|wknum_color}} – set background color for ISO week numbers; alias: {{para|wknum_colour}}&lt;br /&gt;
&lt;br /&gt;
===Linking parameters===&lt;br /&gt;
*{{para|lk}} – various date component linking options:&lt;br /&gt;
*:&amp;lt;code&amp;gt;d&amp;lt;/code&amp;gt; – link days in calendar to calendar day of calendar month – &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[&amp;lt;/nowiki&amp;gt;{{CURRENTMONTHNAME}} {{CURRENTDAY}}]]&amp;lt;/code&amp;gt;&lt;br /&gt;
*:&amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; – link month in calendar header to month article – &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[&amp;lt;/nowiki&amp;gt;{{CURRENTMONTHNAME}}]] 2019&amp;lt;/code&amp;gt;&lt;br /&gt;
*:&amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; – link year in calendar header to year article – &amp;lt;code&amp;gt;{{CURRENTMONTHNAME}} &amp;lt;nowiki&amp;gt;[[&amp;lt;/nowiki&amp;gt;{{CURRENTYEAR}}]]&amp;lt;/code&amp;gt;&lt;br /&gt;
*:&amp;lt;code&amp;gt;dm&amp;lt;/code&amp;gt; – link to days and month&lt;br /&gt;
*:&amp;lt;code&amp;gt;dy&amp;lt;/code&amp;gt; – link to days and year&lt;br /&gt;
*:&amp;lt;code&amp;gt;my&amp;lt;/code&amp;gt; – link to month and year&lt;br /&gt;
*:&amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt; – individually link all date components&lt;br /&gt;
*:&amp;lt;code&amp;gt;m&amp;amp;y&amp;lt;/code&amp;gt; – stand-alone month calendars only; link month and year together as a single composite link – &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[&amp;lt;/nowiki&amp;gt;{{CURRENTMONTHNAME}} {{CURRENTYEAR}}]]&amp;lt;/code&amp;gt;&lt;br /&gt;
*:&amp;lt;code&amp;gt;dm&amp;amp;y&amp;lt;/code&amp;gt; – stand-alone month calendars only; link to days and composite month/year&lt;br /&gt;
&lt;br /&gt;
====Link prefixes and suffixes====&lt;br /&gt;
These parameters require {{para|lk}}:&lt;br /&gt;
*{{para|lk_pref}} – prefix for all day, month, and year links enabled by {{para|lk}}; yields to specific {{para|lk_pref_{{var|x}}}} parameters&lt;br /&gt;
*{{para|lk_suff}} – suffix for all day, month, and year links enabled by {{para|lk}}; yields to specific {{para|lk_suff_{{var|x}}}} parameters&lt;br /&gt;
These parameters automatically set {{para|lk}} to the appropriate value; override values assigned to {{para|lk_pref}} and {{para|lk_suff}}:&lt;br /&gt;
*{{para|lk_pref_d}} – prefix for day links&lt;br /&gt;
*{{para|lk_pref_m}} – prefix for month and composite month/year links&lt;br /&gt;
*{{para|lk_pref_y}} – prefix for year links&lt;br /&gt;
*{{para|lk_suff_d}} – suffix for day links&lt;br /&gt;
*{{para|lk_suff_m}} – suffix for month links and composite month/year links&lt;br /&gt;
*{{para|lk_suff_y}} – suffix for year links&lt;br /&gt;
For stand-alone month calendars only, links to previous- and next-month targets:&lt;br /&gt;
*{{para|prevnext}} – accepts the single value &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt;; adds generic &amp;lt;&amp;lt; and &amp;gt;&amp;gt; links to month header linked to the preceding and next month articles; automatically set if any of the following parameters are set:&lt;br /&gt;
**{{para|lk_pref_mprev}} – prefix for previous-month link&lt;br /&gt;
**{{para|lk_suff_mprev}} – suffix for previous-month link&lt;br /&gt;
**{{para|lk_pref_mnext}} – prefix for next-month link&lt;br /&gt;
**{{para|lk_suff_mnext}} – suffix for next-month link&lt;br /&gt;
&lt;br /&gt;
=====Examples=====&lt;br /&gt;
if the current page and section is &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[An example page#May]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and there is a May calendar there, to offer links to the previous month (April) and next month (June) sections set:&lt;br /&gt;
:{{para|k_pref_mprev|#}} – creates link to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[An example page#April]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{para|k_pref_mnext|#}} – creates link to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[An example page#June]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
if the current page is a subpage &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[An example page/May]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and there is a May calendar there, to offer links to the previous month and next month subpages set:&lt;br /&gt;
:{{para|k_pref_mprev|../}} – creates link to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[An example page/April]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{para|k_pref_mnext|../}} – creates link to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[An example page/June]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::in &amp;lt;code&amp;gt;../&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;..&amp;lt;/code&amp;gt; is the parent (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[An example page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) and &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; is the required path separator; see [[Uniform Resource Identifier]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Time, date and calendar modules]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Gonnym</name></author>
	</entry>
</feed>