Wikipedia:WikiProject Accessibility/Datetime Metadata
| This page is currently inactive and is retained for historical reference. Either the page is no longer relevant or consensus on its purpose has become unclear. To revive discussion, seek broader input via a forum such as the village pump. |
The Goal
To add time metadata to Wikipedia
After a discussion on at Template talk:Date it became apparent that changing the date template to make it emit accessability metadata is impossible.
Instead, new templates will need to be create to achieve this goal.
The main goal of the templates is to emit the invisible invisible <time></time> html block around dates and times, which is used to communicate the date to accessibility software like screen readers or software for the visually impaired. The time block appears in the format <time datetime="aaaaaa">dddddd</time> where 'aaaaaa' is an ISO 8601 date between -275000 and +275000 in astrological time, while 'dddddd' is the date displayed to the user in the calendar and display format of the editors' choosing.
Chrome-based web browsers have the ability to localize the date in time blocks to the user's specified language or display preference. Users of these browsers can set their date display preference in the browser's language settings.
Additionally, The time block would allow search engines to parse dates with better precision, allowing them to better suggest Wikipedia articles.
The secondary objective of these templates is performance. If we want to add these templates to articles with hundreds of dates, the performance impact on Wikipedia's servers must be negligable.
Basic Plan
The current plan is to add two new templates: template:Metayear and template:Metadate, both of which will call Lua code from the newly defined Module:Time_metadata. Both of these templates add <time> blocks around human written dates. Neither of these templates have any effect on the way the page displays to the user.
Metadate adds time metadata to any Manual of Style-compilant date or date range.
Metayear only supports Manual of Style-compliant years. It supports astrological years as well as years with any of the following abbreviations: BC/AD/BCE/CE/YBP/BP. It exists mainly for performance reasons on articles like 19th century, which contain hundreds of years. Metayear can parse thousands of years in under a second of compute time.
Julian and Gregorian calendar issues
We will have to decide how the templates determine whether a display date is Julian or Gregorian. Editors will be able to explicitly specify the used calendar, or supply the astrological date directly to be used in the time block. The current rough draft implementation of Metayear erroneously assumes everything is in Gregorian time.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.