Templat:Infobox historical event

Daripada Wikipedia, ensiklopedia bebas.
Jump to navigation Jump to search
Pendokumenan templat[lihat] [sunting] [sejarah] [nyahcache]

Penggunaan[sunting sumber]

Templat ini digunakan sebagai suatu ringkasan fakta yang relevan, didefinasikan sebagai berpanjangan di bawah satu tahun. Ia bertujuan untuk digunakan di dalam artikel-artikel yang bersejarah sebagai kotak info utama/primer dan ia bukan ditujukan sebagai sebuah ringkasan seksyen sesuatu artikel.

{{Infobox historical event
  |Event_Name     = (Event_Name)
  |Image_Name     = (Image_Name)
  |Imagesize      = (Image size in pixels - default is 220px)
  |Image_Alt      = (Alt text for image)
  |Image_Caption  = (Image_Caption)
  |Thumb_Time     = (Video thumbnail frame - see below)
  |AKA            = (Also known as)
  |Participants   = (Participants)
  |Location       = (Location)
  |Date           = (Date) - use {{Start date|YYYY|MM|DD}} where applicable.
  |nongregorian   = Set if date is not in Gregorian calendar; may be any text value, but suggestions are: "yes", a calendar name (e.g. "Julian"), or "prehistoric".
  |Deaths        = (Deaths)
  |Result         = (Result)
  |URL            = (Website)
}}

The alt text is for users who cannot see the image; see WP:ALT.

For dates, use {{Start date}} where applicable, but see that template's documentation for caveats if before 1583.

Thumb_Time supports a parameter for video files if a video is used as the infobox image. Entering a value of |Thumb_time = 200 for example will chose the frame at 200 seconds (3 minutes 20 seconds) of video play time as the initial still image displayed, playing the video will start from the beginning regardless of the frame chosen. See also Wikipedia:Creation and usage of media files#Video usage.

Mikroformat[sunting sumber]

The HTML mark up produced by this template includes an hCalendar microformat, which makes the event details parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. For more information about the use of microformats on Wikipedia, please see the microformat project.

Dates will only be included if you use {{Start date}} or {{End date}} (use the former for single dates; but do not use any of these if the date is before 1583 CE).

URLs will only be included if you use {{URL}}.

hCalendar uses HTML classes including:

  • attendee
  • contact
  • description
  • dtend
  • dtstart
  • location
  • organiser
  • summary
  • url
  • vevent

Please do not rename or remove these classes; nor collapse nested elements which use them.