Template:Timeline-event/doc: Difference between revisions
m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 04:31, 12 October 2023
This is a documentation subpage for Template:Timeline-event. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Creates an event item for use in lists; emitting an hCalendar microformat.
|date=
: enter as {{Start date|YYYY|MM|DD}}—see {{Start date}} for documentation and caveats. Required|end_date=
: enter as {{End date|YYYY|MM|DD}}—see {{End date}} for documentation and caveats. Optional|event=
: text summary of the event. Can include wikilinks. Optional if|location=
entered|location=
: location of the event, if not included in the summary. Can include wikilinks. Optional if|event=
entered
Place references outside the template where possible.
Category
The template places pages in the hidden Category:Pages with timeline metadata.
Blank
Delete unwanted parameters.
Format MMM DD, YYYY:
* {{Timeline-event |date={{Start date|YYYY|MM|DD}} |end_date={{End date|YYYY|MM|DD}} |event= |location= }}
or format DD MMM YYYY:
* {{Timeline-event |date={{Start date|YYYY|MM|DD|df=y}} |end_date={{End date|YYYY|MM|DD|df=y}}|event= |location= }}
Examples
Month first
Markup | Renders as |
---|---|
{{Timeline-event |date={{Start date|2012|04|21}} |event= Something happened}} |
April 21, 2012Something happened : |
{{Timeline-event |date={{Start date|2012|04|21}} |end_date={{End date|2012|11|18}} |event= Another thing happened}} |
April 21, 2012Another thing happened – November 18, 2012 : |
{{Timeline-event|date={{Start date|2012|04|21}} |end_date={{End date|2012|11|18}} |event= In Washington DC, another thing happened}} |
April 21, 2012In Washington DC, another thing happened – November 18, 2012 : |
{{Timeline-event |date={{Start date|2012|04|21}} |end_date={{End date|2012|11|18}} |event= Another thing happened|location=Washington DC}} |
April 21, 2012Another thing happened, Washington DC – November 18, 2012 : |
{{Timeline-event|date={{Start date|2012|04|21}} |location=Washington DC}} |
April 21, 2012 Washington DC : |
Date first
Markup | Renders as |
---|---|
{{Timeline-event |date={{Start date|2012|04|21|df=y}} |event= A lot happened}} |
21 April 2012A lot happened : |
{{Timeline-event|date={{Start date|2012|04|21|df=y}} |end_date={{End date|2012|11|18|df=y}} |event= Even more happened}} |
21 April 2012Even more happened – 18 November 2012 : |
{{Timeline-event|date={{Start date|2012|04|21|df=y}} |end_date={{End date|2012|11|18|df=y}} |event= In London, even more happened}} |
21 April 2012In London, even more happened – 18 November 2012 : |
{{Timeline-event |date={{Start date|2012|04|21|df=y}} |end_date={{End date|2012|11|18|df=y}} |event= Even more happened | location= London}} |
21 April 2012Even more happened, London – 18 November 2012 : |
{{Timeline-event |date={{Start date|2012|04|21|df=y}} |location= London}} |
21 April 2012 London : |
Less precise dates
All of the above can be used with less precise dates:
Markup | Renders as |
---|---|
{{Timeline-event |date={{Start date|2012|04}} |event= Something else happened}} |
April 2012Something else happened : |
{{Timeline-event |date={{Start date|2012}} |event= Something different happened}} |
2012Something different happened : |
Example articles
- years (start dates)
- Colin Pillinger#Awards and honours
- years (start & end dates)
- Walsall Borough Police#Chief officers
- full dates
- Ritz Ballroom, Kings Heath#Notable performances
See also
- {{Timeline-links}}