Last modified: 2004-12-28 00:33:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1215 - Extend magic words - CURRENTWEEK
Extend magic words - CURRENTWEEK
Status: RESOLVED DUPLICATE of bug 1206
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://wiki.saewyc.net
: parser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-12-27 19:21 UTC by Wayne Saewyc
Modified: 2004-12-28 00:33 UTC (History)
0 users

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


Attachments

Description Wayne Saewyc 2004-12-27 19:21:43 UTC
The use of an ISO week of the year variable is useful for lower-traffic sites
for elements such as a weekly featured article or collaboration of the week. The
range is 1-54 (ISO weeks begin on Monday, so most years have 53 weeks)

The magic word has been successfully implemented on SailWiki and involves the
following changes:

includes/magicwords.php - add MAG_CURRENTWEEK
includes/parser.php - add to getVariableValue:

  case MAG_CURRENTWEEK:
    return $varCache[$index] = $wgContLang->formatNum( date('W') );

languages/language.php - add to $wgMagicWordsEn array:

  MAG_CURRENTWEEK          => array( 1,    'CURRENTWEEK'            ),
Comment 1 Zigger 2004-12-28 00:33:55 UTC

*** This bug has been marked as a duplicate of 1206 ***

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


Navigation
Links