From BeatlesWiki
This template is very useful to create events that can be retrieved using Semantic Wiki
Parameters
| RevDate
| MANDATORY
| A date in reversed notation (YYYY-MM-DD). For example: 1963-05-17 means May 17, 1963.
You may also use 00 if a day or a month is unknown. For example: 1963-05-00 means sometime in May 1963 (exact day unknown). All three numbers are mandatory.
|
| Date
| Optional
| This is the date to display on screen. In fact, it can be any text (1963 new year's eve is allowed for instance). Usually this parameter is omitted because the template automatically "translates" the RevDate parameter in a readable date.
|
| ShortDescr
| Optional
| This highly recommended parameter describes shortly the event that occured that day. WikiText is allowed.
|
| Location
| Optional
| This relation will link to a page dedicated to the location where the event took place.
|
Created attributes
The following attributes are created and may be used in Semantic Wiki queries.
| RevDate
| Based on the parameter of the same name, this attribute is used to sort events by date.
|
| Date
| This is either autogenerated (based on RevDate parameter) or a copy of the Date parameter. It is used for display purposes only.
|
| RevDayMonth
| Auto-generated, based on the RevDate parameter. This is in fact a copy of the last two numbers of the RevDate parameter. If RevDate=1963-05-17 then RevDayMonth='05-17'. This is used to classify events by day of the month.
|
| ShortDescr
| Based on the parameter of the same name, this attribute is used to briefly describe the event that occured that day.
|
| Day
| Based on the day given in RevDate. If 0 then, Day=??
|
| Month
| Based on the month given in RevDate. If 0 then, Month=??
|
| Year
| Based on the Year given in RevDate.
|
| Location
| Based on the parameter of the same name.
|
Event articles: recommandations
- Do not use this template for recordings. Use Template:SongIndex instead. It features most of the same attributes and dates in Template:SongIndex are indexed alongside the dates of Template:Event
- Choose an appropriate title for your article; events are often very alike. Choose a title that will avoid confusion.
- Most of the time, the Date parameter is not needed, don't bother to include it, it is automatically generated if omitted.
- The ShortDescr parameter may include WikiText; don't hesitate to add links and formatting if needed. See example on the upper-right of this page.
- Don't forget to mention Categories (at the end of your article, outside the Template). This will help classify events.
- Use the Preview button before submitting your article, don't forget to check the FactBox to make sure that Semantic Wiki has understood your parameters.
Usage example
| This code
| Will look like
| And will create the following attributes
|
{{Event
|RevDate=1901-01-01
|Date=1901 new year's day
|ShortDescr=(This is just a test) On the first day of the
new century, no one would imagine that in 60+ years
[[The Beatles]] would change the world of music.
|Location=Somewhere
}}
|
| Event
|
| Date
| 1901 new year's day
|
| Short description
| (This is just a test) On the first day of the new century, no one would imagine that in 60+ years The Beatles would change the world of music.
|
| Location
| Somewhere
|
|
| RevDate
| 1901-01-01
|
| Date
| 1901 new year's day (it would have been 01 January 1901 if Date had been omitted in the parameters list)
|
| RevDayMonth
| 01-01
|
| ShortDescr
| (This is just a test) On the first day of the new century, no one would imagine that in 60+ years The Beatles would change the world of music.
|
| Day
| 1
|
| Month
| January
|
| Year
| 1901
|
| Location
| Somewhere
|
|
{{Event
|RevDate=1789-07-14
|ShortDescr=(This is just a test) On the day of
the French revolution, no Beatles were found
singing "Ah ça ira ! ca ira !".
|Location=Bastille, [[Paris]], [[France]]
}}
|
| Event
|
| Date
| July 14, 1789
|
| Short description
| (This is just a test) On the day of the French revolution, no Beatles were found singing "Ah ça ira ! ca ira !".
|
| Location
|
|
|
| RevDate
| 1789-07-14
|
| Date
| July 14, 1789
|
| RevDayMonth
| 07-14
|
| ShortDescr
| (This is just a test) On the day of the French revolution, no Beatles were found singing "Ah ça ira ! ca ira !".
|
| Day
| 14
|
| Month
| July
|
| Year
| 1789
|
| Location
| Bastille, Paris, France
|
|