Last modified: 2006-04-21 06:05:53 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 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