Module:Current events calendar/doc: Difference between revisions
Vivaporius (talk | contribs) m (1 revision imported) |
en>Centrist16 (Created page with "{{module rating|alpha}} {{module rating|protected}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> This module generates calendars for Por...") |
||
Line 3: | Line 3: | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> |
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> |
||
This module generates |
This module generates calendars for [[Portal:Current events]] and [[:Category:Current events archives]]. The current day and the previous six days are linked to the corresponding section of the page. The module also supports archival calendars when month and year parameters are passed. Note that the Current Month version will only link the previous six days and will include a |
||
== Usage == |
== Usage on [[Portal:Current events]] == |
||
{{#invoke:current events calendar|main}} |
{{#invoke:current events calendar|main}} |
||
== Usage on [[:Category:Current events archives]] pages == |
|||
== Example == |
|||
{{#invoke:current events calendar|main|year='''[four digit numerical year]'''|month='''[One or two digit number from 1 to 12]'''}} |
|||
== Example: Current Events front page version == |
|||
This version assumes that it is displayed in a page that will set padding/margins/gutters in parent containing elements. It will expand to a maximum of 350px wide and remain centered in the column. It includes a link to the full month's page in the footer. Only the six most recent days of the month will have hyperlinks, reflecting the 6 most recent days of content on the [[Portal:Current events]] page. |
|||
{{#invoke:current events calendar|main}} |
{{#invoke:current events calendar|main}} |
||
{{clear}} |
|||
== Example: Current Events archive version == |
|||
This version assumes that it is displayed in a page that uses a table-based layout and expect individual children to set their margins and padding. It will expand to a maximum of 350px wide and puts an 8px margin on the top and left side of the calendar. It has no footer. All days will have links to the appropriate section of the page it is displayed in. |
|||
{{#invoke:current events calendar|main|year=1997|month=1}} |
|||
{{clear}} |
|||
== Sandbox version == |
|||
{{#invoke:current events calendar/sandbox|main}} |
|||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| |
Revision as of 04:15, 7 February 2020
This module is rated as alpha. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
This module generates calendars for Portal:Current events and Category:Current events archives. The current day and the previous six days are linked to the corresponding section of the page. The module also supports archival calendars when month and year parameters are passed. Note that the Current Month version will only link the previous six days and will include a
Usage on Portal:Current events
{{#invoke:current events calendar|main}}
Usage on Category:Current events archives pages
{{#invoke:current events calendar|main|year=[four digit numerical year]|month=[One or two digit number from 1 to 12]}}
Example: Current Events front page version
This version assumes that it is displayed in a page that will set padding/margins/gutters in parent containing elements. It will expand to a maximum of 350px wide and remain centered in the column. It includes a link to the full month's page in the footer. Only the six most recent days of the month will have hyperlinks, reflecting the 6 most recent days of content on the Portal:Current events page.
May 2024 | ||||||
---|---|---|---|---|---|---|
S | M | T | W | T | F | S |
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Example: Current Events archive version
This version assumes that it is displayed in a page that uses a table-based layout and expect individual children to set their margins and padding. It will expand to a maximum of 350px wide and puts an 8px margin on the top and left side of the calendar. It has no footer. All days will have links to the appropriate section of the page it is displayed in.
January 1997 | ||||||
---|---|---|---|---|---|---|
S | M | T | W | T | F | S |
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Sandbox version
Script error: No such module "current events calendar/sandbox".