Template:Mathematician data/doc

From English Wikipedia @ Freddythechick

This template is used in /Data subpages of mathematician talk pages. These store data used by the Mathematics WikiProject to produce sortable tables of mathematicians. The syntax is

{{Mathematician data|{{{key}}}|name= |dates= |contribs= }}

Usage of /Data subpages

Without any parameter, {{Talk:Johannes Kepler/Data}} produces:

Talk:Johannes Kepler/Data

Dates before 1000AD

For dates before 1000AD the normal sort order does not work and a sortdates key is used to provide a correct sort order. This is hidden in a <span style="display:none"> tag in the mathematician table.

For BC/BCE dates calculate d = 999 - abs(BCE date) and set sortdates=&d

Hence Aristotle 384 – 322 BCE becomes <syntaxhighlight lang="wikitext"> This subpage contains data about Mathematician data which is used by the Wikipedia:WikiProject Mathematics to produce tables of mathematicians. Edit this page to add or update the sortable name (sortname), date of birth or death (dates) and field (contribs) of Mathematician data.


  • Name: Aristotle
  • Dates: 384 – 322 BCE
  • Contribs:

</syntaxhighlight>

Similarly for dates between 1 AD and 999 AD extra 0s need to be added. For Ptolemy 90 - 168 AD set sortdates=0090 <syntaxhighlight lang="wikitext"> This subpage contains data about Mathematician data which is used by the Wikipedia:WikiProject Mathematics to produce tables of mathematicians. Edit this page to add or update the sortable name (sortname), date of birth or death (dates) and field (contribs) of Mathematician data.


  • Name: Ptolemy
  • Dates: 90 - 168
  • Contribs:

</syntaxhighlight>