Fandom

Archived Help Wiki

Halp:Calendar

130pages on
this wiki
Add New Page
Talk0 Share
This extension is not normally active, but may be available on request.

Wikia has a Calendar extension which individual wikis can choose to activate.

Simple CalendarEdit

The Simple Calendar renders a table of all the months in the year with each day being a wiki article. Days which have nothing in them show up as a red link, clicking on it will create a new article as usual. It installs as a parser function, so the following syntax is used:

{{#calendar:}}

When used like this with no parameters, a calendar of all twelve months will be rendered with each day pointing to an article using the date as its title.

There are a number of parameters which customize calendars for different specific purposes.

title: The name of the article which each day in a calendar table links to is by default the date, eg 27 Jan 2008. If you want to have different calendars for different purposes, then the title parameter will preceed the names with a separating slash character, for example, setting title to "Harry" will cause the dates to format as Harry/27 Jan 2008.
year: This changes the year of the calendar table, the default if no year is specified is the current year.
month: If a month is supplied, then only a single month will be rendered instead of a table containing all twelve months.
query: This allows extra query-string information to be appended to the links for days which don't exist. The main use for this would be to allow some preloaded content in the newly created calendar articles.
format: The default date format for date-articles linked to from the days in the calendar tables is, eg. 2 February 1972, but can be adjusted by supplying a PHP date format in the format parameter. See PHP-Manual/strftime for details about how to specify a date format.
dayformat: This sets the format of the titles of each day of the week at the top of the month tables. The default setting is M T W T F S S, but can be set to %a for abbreviated names in the current language such as Mon Tue..., or %A for full names in the current language.

Parameters should be added in the format:

{{#calendar: title=Example | year=2001 }}

See the extension documentation on the MediaWiki site for more examples of use, and information on using CSS to customize the colors and appearance of your calendars.


CreditsEdit

Some documentation on this page was copied from the following GFDL-licensed pages at http://www.mediawiki.org :

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.