Last modified: 2004-12-28 00:33:55 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 T3215, the corresponding Phabricator task for complete and up-to-date bug report information.
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