This is the data which fills {{PotM}} and the PotM part of {{Collaboration}}.

Add works to the table that is returned by this module.

This data is intended for use by Module:PotM, but in theory other modules can use it too.

Adding months

ਸੋਧੋ

You can add months like this:

	{
		year = 2021,
		month = 4,
		theme = "Poetry and Drama",
		works = {
             ...
		}
	},

As long as month and year are in the future, it won't be shown until that month arrives. This allows you to pre-load months and works for auto-changeover at the end of a month.

Optional month parameters:

  • overflow: set to true if this is an "overflow" month to show the list of small works. Otherwise the module will set the "extra" ("The current Proofread of the Month has been completed early") state when the second work in a month is reached.
  • current: the current work within a month. If not given, the first work in the month will be used. This is so additional works can be pre-loaded into a month and enabled later by just adding or changing current.

Adding works

ਸੋਧੋ

You can add works with the following template:

			{
				index = "Index link.djvu",
				display = "Display name",
				author = "Firstname Lastname",
				year = XXXX,
			},

Optional work parameters:

  • image a filename to use for the image. If not given, the "proofreading star" is used
  • imagesize the size of the image, if there is one. If not given, 75px.

There is no author override field. The author author field is normally unlinked and a link to the author page will be constructed as usual. If the author field contains wikilinks, it will be presented as-is.


--[[]]
return {
--[=[
Add most recent (or most futuristic) month at the top, in descending order from there:
	{
		year = 2021,
		month = 4,
		theme = "Poetry and Drama",
		works = {
		}
	},
	
Add works to months in normal order in the "works" field:

			{
				index = "",
				display = "",
				author = "",
				year = ,
				image = ""
			},
			
To test, use the "Preview page with this template" button and check the page
[[Module:PotM/test]]
]=]

    -- Add new months on the line below this:
   {
		year = 2024,
		month = 8,
		theme = "",
		current = 1,
		works = {
			{
				index = "ਭਾਰਤ ਦਾ ਸੰਵਿਧਾਨ (ਮਈ 2024).pdf",
				display = "ਭਾਰਤ ਦਾ ਸੰਵਿਧਾਨ",
				author = "ਭਾਰਤ ਸਰਕਾਰ",
				year = 	2024,
			},
		}
	},
	
	{
		year = 2024,
		month = 2,
		theme = "Biography",
		current = 1,
		works = {
			{
				index = "ਜ਼ਫ਼ਰਨਾਮਾ ਸਟੀਕ.pdf",
				display = "ਜ਼ਫ਼ਰਨਾਮਾ ਸਟੀਕ",
				author = "ਬਾਬੂ ਤੇਜਾ ਸਿੰਘ",
				year = 	1921,
			},
		}
	},
}