Sundays of Pleroma: Difference between revisions

From Cor ad Cor
Jump to navigation Jump to search
Line 103: Line 103:


function ConstructTable(x){
function ConstructTable(x){
var OutputStr;
var ReturnStr;
const TableLines = [];
const TableLines = [];
TableLines["TopRows"] = "{|\n|-\n!III\n|-\n! Week 28\n";
TableLines["TopRows"] = "{|\n|-\n!III\n|-\n! Week 28\n";
TableLines["EndTable"] = "|}\n\n";
TableLines["EndTable"] = "|}\n\n";
OutputStr = TableLines["TopRows"] + TableLines["EndTable"];
ReturnStr = TableLines["TopRows"] + TableLines["EndTable"];
return ReturnStr;  
}
}



Revision as of 09:04, 10 November 2024

Seven patterns

P1 Xt King Advent I Christmas Day
9 Oct 20 Nov 27 Nov Sunday
15 Oct 26 Nov 3 Dec Monday
14 Oct 25 Nov 2 Dec Tuesday
13 Oct 24 Nov 1 Dec Wednesday
12 Oct 23 Nov 30 Nov Thursday
11 Oct 22 Nov 29 Nov Friday
10 Oct 21 Nov 28 Nov Saturday

Next ten years

find the current year

find day of the week of Christmas this year

create output string

start table
start line
header line one
start line
header line two
start line

Call AddLine to output row for one year


repeat nine times

increment year by one
AddLine(nextYear)