Last modified: 2006-04-21 06:05:53 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 T7090, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5090 - template {era} reserved
template {era} reserved
Status: RESOLVED DUPLICATE of bug 5089
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 5089
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-25 22:10 UTC by William Allen Simpson
Modified: 2006-04-21 06:05 UTC (History)
0 users

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


Attachments

Description William Allen Simpson 2006-02-25 22:10:40 UTC
In concert with [bug 5089], the template {era} would be reserved.  It would be
used exclusively for a change in era (that is, from BC(E) to AD/CE), usually in
a date range or near the beginning of a new paragraph.

The template should have 3 optional parameters.

{era} will display the preference as "default", "AD", or "CE".

{era|year} will expand to "AD year" or "year CE" when year is numeric, "1st
century AD" or "1st century CE" for any other similar text.

{era|year|month} will expand to "[[month]], AD [[year]]" or "[[month]], [[year]]
CE", and the month, year display will follow the date preferences.  All
parameters will be numeric.

{era|year|month|day} will expand to "[[day month]], AD [[year]]" or "[[day
month]], [[year]] CE", and the day month, year display will follow the date
preferences.  All parameters will be numeric.

Indeed, it might be particularly handy to have the date preferences handled
during expansion to avoid a second pass by the parser?
Comment 1 William Allen Simpson 2006-02-27 14:45:10 UTC
Prettier.

In concert with [bug 5089], the template {era} would be 
reserved. It would be used exclusively for a change in era 
(that is, from BC(E) to AD/CE), usually in a date range or near 
the beginning of a new paragraph.

The template should have 3 optional parameters.

{era} will display the preference as "default", "AD", or "CE".

{era|year} will expand to:
+ positive numeric year, 
  "AD [[year]]" or 
  "[[year]] CE"
- negative numeric year, 
  "[[year BC]]" or 
  "[[year BC|year BCE]]"
= text string, 
  "AD [[1st century]]" or 
  "[[1st century]] CE"

Note that {era} is required for AD/CE text, as such an era change 
is expected to be notable.

{era|year|month} will expand to:
+ positive numeric year, 
  "[[month]], AD [[year]]" or 
  "[[month]], [[year]] CE"
- negative numeric year, 
  "[[month]], [[year BC]]" or 
  "[[month]], [[year BC|year BCE]]" 

The "month, year" display will follow the date preferences. 
All parameters will be numeric.

{era|year|month|day} will expand to: 
+ positive numeric year,
  "[[day month]], AD [[year]]" or 
  "[[day month]], [[year]] CE"
- negative numeric year, 
  "[[day month]], [[year BC]]" or 
  "[[day month]], [[year BC|year BCE]]"

The "day month, year" display will follow the date preferences. 
All parameters will be numeric.

Indeed, it might be particularly handy to have the date 
preferences handled during expansion to avoid a second pass 
by the parser?
Comment 2 Rob Church 2006-04-21 06:05:53 UTC
Bug 5089 implies the usage of a magic word to do this; there's no need for a
separate bug for each little bit of the same request. Marking as a dupe.

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

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


Navigation
Links