Last modified: 2010-01-09 18:21:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23754, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21754 - Pass the event date to the template when used in format=calendar
Pass the event date to the template when used in format=calendar
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticResultFormats (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: denny vrandecic
http://wiki.montcopa.org/MediaWiki
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-03 22:11 UTC by Jack D. Pond
Modified: 2010-01-09 18:21 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Pass current event date to template in calendar (659 bytes, patch)
2009-12-03 22:11 UTC, Jack D. Pond
Details

Description Jack D. Pond 2009-12-03 22:11:56 UTC
Created attachment 6855 [details]
Pass current event date to template in calendar

The query returns an article which may have many instances of an assigned date property, especially if you have used {{#set_recurring_event: . . .}}.   How a particular title is returned may vary depending on which event is being referenced, and a query returns only the entire list of recurring events.

The attached patch would automatically pass the parameter {{{thisdate}}} to the template to help identify the specific date of the event.

Example:

If this is the third date in a recurring series, show the text '(90 day award)'.

This patch only passes the parameter if the template= . . . has been defined.
Comment 1 Siebrand Mazeland 2010-01-09 18:21:37 UTC
Applied in r60866. Thanks.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links