This site is a playground for testing Semantic MediaWiki. All content entered or uploaded here may be deleted at any time, and nothing here should be assumed to be true.
Some content was copied from semanticweb.org – please visit this site for more reliable information and author attribution.
Template:Int
From SMW-Sandbox
In one possible approach to handling dates (see Date-related tables), this template can be placed on page with an integer as pagename. These pages are about the year concerned, and, if applicable, also about the people with their age equal to this integer. Examples: -43, 14, 2001, 2006. It shows the following.
- Events which started in the year, according to Property:Has start year.
- Events which ended in the year, according to Property:Has end year, but started in an earlier year, according to Property:Start date sortkey. In order to check this with the <= inequality and without a not operator, we need to have a sortkey value that can automatically be derived from the pagename without parser functions, and which is >= any value for the previous year and < any value for the year concerned. Thus it seems that the sortkey for an unspecified date in a year should not be just the year, but e.g. the year followed by "!". Even so, for years < 1000, it seems that it cannot be avoided that events within the year are mentioned as events started in the year as well as events ending in the year.
- People who according to Property:Year of birth were born in the year; does not give this, but gives Property:Born in year instead (for the link), Property:Date of birth, Property:Age, Property:Died in year, and Property:Date of death.
- People who, according to Property:Date of birth were born in the year; gives Property:Born in year, Property:Date of birth, Property:Age, Property:Died in year, and Property:Date of death.
- People who according to Property:Year of death died in the year.
- People who, according to Property:Date of death died in the year; gives Property:Born in year, Property:Date of birth, Property:Age, Property:Died in year, and Property:Date of death.
