Documentation icon Skabelondokumentation[vis] [redigér] [historik] [opfrisk]

Beskrivelse redigér

Kun for datoer fra 1. januar 1970 og frem!

Denne skabelon formaterer regionskoder og udgivelsesdatoer således at de i en tabel bliver sorteret korrekt efter dato.

Brug redigér

Parameters are inputted as region code/date pairs, and are displayed in the order they are given.

By default, or when the optional v parameter is set to equal 1, the template outputs dates in "verbose" mode with the exact display appearance depending on the user's date and time preferences. If a user has no preferences set (such as is the case with an unregistered user), then the "MONTHNAME D, YYYY" format is used by default. By setting the optional v parameter to equal zero, the template will output dates in "YYYY-MM-DD" format instead. Setting v to equal 2 forces the "D MONTHNAME YYYY" format. However, note that the v parameter has no effect if the date given consists only of a year.

Dates may be entered either in the form of a year by itself, a month and a year or any full date supported by the #time: parser function. When inputting a month and year instead of only a year or full date, the template will result in an error if the input isn't in the "MONTHNAME YYYY" format (e.g., July 2001). If you need to enter something other than a date (such as "TBA" or "TBD"), you may do so; any text inputted will be returned as entered and without changes.

By default this template collapses dates to a single entry when they are identical; however, this feature can be disabled by setting the optional c parameter to equal zero.

This template works only with dates from January 1, 1970 onward.

Eksempler redigér

Code (v=3, default) Output
{{Vgrtbl|NA|1989-03-12|EU|16. august 2008}} 1989031989-03-1212. marts 1989 (NA)
16. august 2008 (EU)
{{Vgrtbl|NA|1989-03-12|EU|12 March 1989}} 1989031989-03-1212. marts 1989 (NA/EU)
{{Vgrtbl|c=0|NA|1989-03-12|EU|12 March 1989}} 1989031989-03-1212. marts 1989 (NA)
12. marts 1989 (EU)
{{Vgrtbl|NA|1989|EU|March 1989}} 1989 (NA)
marts 1989 (EU)
{{Vgrtbl|NA|Cancelled|JP|TBD|EU|TBA|AUS|TBA}} Cancelled (NA)
TBD (JP)
TBA (EU/AUS)


Code (v=0) Output
{{Vgrtbl|v=0|NA|1989-03-12|EU|August 16, 2008}} 1989031989-03-121989-03-12 (NA)
2008-08-16 (EU)
{{Vgrtbl|v=0|NA|1989-03-12|EU|12 March 1989}} 1989031989-03-121989-03-12 (NA/EU)
{{Vgrtbl|c=0|v=0|NA|1989-03-12|EU|12 March 1989}} 1989031989-03-121989-03-12 (NA)
1989-03-12 (EU)
{{Vgrtbl|v=0|NA|1989|EU|March 1989} 1989 (NA)
1989-03 (EU)


Code (v=1) Output
{{Vgrtbl|v=1|NA|1989-03-12|EU|August 16, 2008}} 1989031989-03-12marts 12, 1989 (NA)
august 16, 2008 (EU)
{{Vgrtbl|v=1|NA|1989-03-12|EU|12 March 1989}} 1989031989-03-12marts 12, 1989 (NA/EU)
{{Vgrtbl|c=0|v=1|NA|1989-03-12|EU|12 March 1989}} 1989031989-03-12marts 12, 1989 (NA)
marts 12, 1989 (EU)
{{Vgrtbl|v=1|NA|1989|EU|March 1989} 1989 (NA)
marts 1989 (EU)


Code (v=2) Output
{{Vgrtbl|v=2|NA|1989-03-12|EU|August 16, 2008}} 1989031989-03-1212 marts 1989 (NA)
16 august 2008 (EU)
{{Vgrtbl|v=2|NA|1989-03-12|EU|12 March 1989}} 1989031989-03-1212 marts 1989 (NA/EU)
{{Vgrtbl|c=0|v=2|NA|1989-03-12|EU|12 March 1989}} 1989031989-03-1212 marts 1989 (NA)
12 marts 1989 (EU)
{{Vgrtbl|v=2|NA|1989|EU|March 1989} 1989 (NA)
marts 1989 (EU)