Module:Calendar/doc: Difference between revisions

Created page with " = Fantasy Calendar = The '''FantasyCalendar''' module generates a customizable fantasy calendar using a six-day week, five-week month, and three-month season. == Calendar Structure == {| class="wikitable" ! Unit ! Length |- | Week | 6 days |- | Month | 5 weeks (30 days) |- | Season | 3 months (90 days) |- | Year | 4 seasons (360 days) |} Each month begins on the first day of the week. Because all months are exactly 30 days long, the same dates always fall on the sam..."
 
No edit summary
 
Line 2: Line 2:
= Fantasy Calendar =
= Fantasy Calendar =


The '''FantasyCalendar''' module generates a customizable fantasy calendar using a six-day week, five-week month, and three-month season.
The '''Calendar''' module generates a customizable fantasy calendar using a six-day week, five-week month, and three-month season.


== Calendar Structure ==
== Calendar Structure ==
Line 30: Line 30:


<pre><nowiki>
<pre><nowiki>
{{#invoke:FantasyCalendar|main
{{#invoke:Calendar|main
|year=1042
|year=1042
}}
}}
Line 42: Line 42:


<pre><nowiki>
<pre><nowiki>
{{#invoke:FantasyCalendar|main
{{#invoke:Calendar|main
|year=1042
|year=1042
|view=year
|view=year
Line 99: Line 99:


<pre><nowiki>
<pre><nowiki>
{{#invoke:FantasyCalendar|main
{{#invoke:Calendar|main
|year=1042
|year=1042
|view=year
|view=year
Line 110: Line 110:


<pre><nowiki>
<pre><nowiki>
{{#invoke:FantasyCalendar|main
{{#invoke:Calendar|main
|year=1042
|year=1042
|view=season
|view=season
Line 129: Line 129:


<pre><nowiki>
<pre><nowiki>
{{#invoke:FantasyCalendar|main
{{#invoke:Calendar|main
|year=1042
|year=1042
|view=month
|view=month
Line 218: Line 218:
The calendar requires:
The calendar requires:


* '''Module:FantasyCalendar''' — Contains the Lua code that generates the calendar.
* '''Module:Calendar''' — Contains the Lua code that generates the calendar.
* '''MediaWiki:Common.css''' — Contains the calendar's visual styling.
* '''MediaWiki:Common.css''' — Contains the calendar's visual styling.