Help talk:EasyTimeline syntax

From WikiProjectMed
Jump to navigation Jump to search
WikiProject iconWikipedia Help NA‑class Mid‑importance
WikiProject iconThis page is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the Help Menu or Help Directory. Or ask for help on your talk page and a volunteer will visit you there.
NAThis page does not require a rating on the project's quality scale.
MidThis page has been rated as Mid-importance on the project's importance scale.
Meta:Help:EasyTimeline syntax authors and history
  • 22:00, 12 September 2006 contribs)| (→Text Input - fixed error : caret not supported in TextData)
  • 06:12, 5 September 2006 contribs)| (→Bar related attributes - Add in a description of barset)
  • 14:52, 27 August 2006 contribs)| (→Presets - existing presets explained)
  • 15:25, 9 August 2006 contribs)| (readded useful edits after tech. revert)
  • 15:22, 9 August 2006 contribs)| (revert as major part of text got lost (seemingly unintended))
  • 13:25, 8 August 2006 contribs)| m (gah, add alpha sort to own cat)
  • 13:24, 8 August 2006 contribs)| m (+cat Category:Graphical Timelines)
  • 19:42, 30 December 2005 contribs)| (→AlignBars - {{subst:EasyTimeline_Examples_AlignBars}} because the template only appears here, and does not exist at other projects)
  • 23:49, 13 December 2005 User:63.205.162.114 (→Bar related attributes - changed width=0.3 to width:0.3)
  • 13:55, 29 November 2005 contribs)| (Removed category. Fixed hyperlinks that break when this page is copied to other projects.)
  • 15:20, 26 November 2005 User:83.16.52.194 (→Font Support - timeline has some unicode support now)
  • 03:29, 9 November 2005 contribs)| m (→Commands - copyedit by Bodnotbod from en:)
  • 05:33, 9 October 2005 contribs)| m (→Embedded links - Correct example URLs (use valid format).)
  • 23:30, 24 August 2005 contribs)| (→Clickable maps - one link per text segment)
  • 01:31, 7 July 2005 contribs)| m (→ImageSize (mandatory))
  • 01:27, 7 July 2005 contribs)| m (→PlotArea (mandatory))
  • 01:26, 7 July 2005 contribs)| (→PlotArea (mandatory) - + attr top/right + about deprecation)
  • 01:12, 7 July 2005 contribs)| (→ImageSize (mandatory) - 'new' value auto + attribute barincrement)
  • 00:40, 7 July 2005 contribs)| (→LineData - 'new' attributes)
  • 23:40, 6 July 2005 contribs)| (cmd DrawLines renamed to LineData)
  • 00:33, 20 June 2005 contribs)| m (→TextData - link fix)
  • 00:31, 20 June 2005 contribs)| m (→TextData - link fix)
  • 21:15, 29 May 2005 User:202.1.193.10 (→Available commands - oh well.. previous one did not work... fixing again)
  • 06:42, 25 March 2005 contribs)| m (→EasyTimeline code with a template parameter is not allowed - {{hc|langs='''N.A.'''}})
  • 06:40, 25 March 2005 contribs)| (+{{handbook sidebar|Editor toc}})
  • 23:25, 27 February 2005 User:200.121.44.20 (→EasyTimeline code with a template parameter is not allowed)
  • 23:24, 27 February 2005 User:200.121.44.20 (→EasyTimeline code with a template parameter is not allowed)
  • 02:13, 27 February 2005 contribs)| m (→TextData - nowiki)
  • 01:55, 27 February 2005 contribs)| (presentation examples)
  • 01:22, 27 February 2005 contribs)| (→Legend - layout)
  • 02:01, 26 February 2005 contribs)| (→Embedded links - note on special characters)
  • 02:11, 17 January 2005 contribs)| (→Colors - add link to Ploticus color page)
  • 15:33, 3 November 2004 contribs)| m (Reverted edits by 61.49.188.142 to last version by Patrick)
  • 20:28, 30 September 2004 contribs)| m (Reverted edits by 195.39.223.7 to last version by Patrick)
  • 14:21, 30 September 2004 contribs)| (The name "EasyTimeline" refers to the possibility to apply the feature with a time scale horizontally or vertically, possibly with another parameter in the other direction, but there are also various)
  • 11:44, 29 September 2004 contribs)| (The EasyTimeline feature produces an embedded image from wikitext. The image can be be one-dimensional diagram (horizontally or vertically), or a two-dimension)
  • 06:57, 29 September 2004 contribs)| (==EasyTimeline code with a template parameter is not allowed==)
  • 06:50, 29 September 2004 contribs)| (→Embedded links)
  • 06:32, 29 September 2004 contribs)| (→Embedded links)
  • 06:24, 29 September 2004 contribs)| (→Embedded links)
  • 21:36, 28 September 2004 contribs)| (→Measurements - The first coordinate is horizontal from left to right, the second is vertically upward.)
  • 21:17, 28 September 2004 contribs)| m (→Font Support - mv down)
  • 13:14, 28 September 2004 contribs)| (presets documentation?)
  • 09:17, 28 September 2004 contribs)| (→Embedded links - external link style is as usual with single brackets, but here with a pipe instead of a space. Blank spaces and underscores in the url should be written as %20.)
  • 08:42, 28 September 2004 contribs)| (→Available commands - TimeAxis mandatory)
  • 07:02, 28 September 2004 contribs)| (→Period - (mandatory))
  • 07:00, 28 September 2004 contribs)| (→PlotArea - (mandatory))
  • 07:00, 28 September 2004 contribs)| (→ImageSize - (mandatory))
  • 06:54, 28 September 2004 contribs)| m (→Embedded links)
  • 06:52, 28 September 2004 contribs)| m (→Clickable Maps)
  • 06:50, 28 September 2004 contribs)| m (→Parameters vs Data Items)
  • 06:47, 28 September 2004 contribs)| m (→Available Commands)
  • 14:22, 27 September 2004 contribs)| (→Embedded links)
  • 14:15, 27 September 2004 contribs)| (→Embedded links)
  • 14:09, 27 September 2004 contribs)| (→Embedded links)
  • 14:00, 27 September 2004 contribs)| (→Embedded links)
  • 13:54, 27 September 2004 contribs)| (→Embedded links)
  • 13:49, 27 September 2004 contribs)| (→Embedded links - compare with link styles outside timelines)
  • 12:57, 27 September 2004 contribs)| (→Embedded Links - interwiki links do not seem to work)
  • 11:57, 27 September 2004 contribs)| m (→Font Support)
  • 21:04, 29 August 2004 contribs)| m (→Embedded Links - fix error messages)
  • 11:09, 5 July 2004 contribs)| (+ Category:MediaWiki User's Guide)
  • 09:08, 27 June 2004 contribs)| (See also EasyTimeline.)
  • 16:13, 3 June 2004 contribs)| (MajorScale -> ScaleMajor, MinorScale -> ScaleMinor)
  • 16:08, 3 June 2004 contribs)| (→Marker attribute - + example)
  • 15:45, 3 June 2004 contribs)| (→TextData - + example)
  • 00:42, 3 June 2004 contribs)| (→AlignBars - + examples)
  • 00:20, 3 June 2004 contribs)| (→Font Support - + category)
  • 11:34, 24 May 2004 contribs)| (Removing warning now that bug as been fixed)
  • 10:59, 24 May 2004 contribs)| (Copying from TestWiki before it gets nuked)

Timeline or Graph?

Are the syntax for timelines? They seem to look more like graphs to me. Can someone show an example? NoNews! 01:33, 21 February 2010 (UTC)[reply]

Strong agree BoldLuis (talk) 15:22, 20 May 2020 (UTC)[reply]

Help "Error Message" on Timeline

I have been preforming edits on the Southland Conference and the timeline continues to have an error message that says something to the effect of Invalid Image map created by easy timeline. It still displays the timeline though. I have copied entire timelines from other pages but nothing seems to work. Can someone help with this problem? ThomasHorn7 (talk) 15:12, 11 August 2010 (UTC)[reply]

I have also been attempting to edit the timeline but the error message continues to appear. Quidam65 (talk) 16:59, 11 August 2010 (UTC)[reply]

Same issue at Colonial Athletic Association#Membership timeline 2 - any help would be appreciated. Thanks! GoingBatty (talk) 15:08, 4 January 2014 (UTC)[reply]

HSB vs. HSV

Hi.

I've been trying to create color mixtures using hsv syntax as the help page indicated but I am told that HSB is supported instead. Unfortunately, I had no luck with HSB either. Every combination that I test results in black.

Best regards,
Codename Lisa (talk) 11:59, 31 May 2014 (UTC)[reply]

The back end does not support HSB specifications for PNG images. I will remove this option from the help page. 84.127.115.190 (talk) 04:53, 19 November 2014 (UTC)[reply]

ISO 8601 date format

User:Erik Zachte

More and more sites and tools use ISO 8601 date format "yyyy-mm-dd".

Could this tool be updated to allow that format as input?

Currently only allowed is

  • mm/dd/yyyy - US format
  • dd/mm/yyyy - European, Latin American format

So, two all-numerical formats, but none of them allowed by WP style guide, which mandates ISO 8601 for all-numerical formats.

See also http://xkcd.com/1179/

Derianus (talk) 21:31, 28 September 2014 (UTC)[reply]

  • Hi Dedalus, I am not longer maintaining since 200?, but it should be a straightforward patch. You can either submit a patch yourself or file a bug for it. Cheers, Erik Zachte (talk) 17:35, 29 September 2014 (UTC)[reply]
Here it is:
Patch
--- EasyTimeline.pl.orig	2014-11-07 19:49:49.000000000 +0100
+++ EasyTimeline.pl	2014-11-08 14:50:42.000000000 +0100
@@ -1076,11 +1076,13 @@
     $datevalue = lc($datevalue);
     if (   ($datevalue ne "dd/mm/yyyy")
         && ($datevalue ne "mm/dd/yyyy")
+        && ($datevalue ne "yyyy-mm-dd")
         && ($datevalue ne "yyyy")
         && ($datevalue ne "x.y"))
     {
         &Error(
-            "Invalid DateFormat. Specify as 'dd/mm/yyyy', 'mm/dd/yyyy', 'yyyy' or 'x.y'\n"
+            "Invalid DateFormat. Specify as 'dd/mm/yyyy', 'mm/dd/yyyy', 'yyyy-mm-dd',\n"
+                . " 'yyyy' or 'x.y'\n"
                 . "  (use first two only for years >= 1800)\n");
         return;
     }
@@ -1611,15 +1613,23 @@
             }
         }
         else {
+            my $year;
+
             if (   ($attrvalue =~ /^\d+$/)
                 && ($attrvalue >= 1800)
                 && ($attrvalue <= 2030))
             {
                 if ($attribute =~ /^From$/i) {
-                    $attrvalue = "01/01/" . $attrvalue;
+                    if ($DateFormat eq "yyyy-mm-dd") {
+                        $attrvalue .= "-01-01";
+                    }
+                    else { $attrvalue = "01/01/" . $attrvalue; }
                 }
                 if ($attribute =~ /^Till$/i) {
-                    if ($DateFormat eq "dd/mm/yyyy") {
+                    if ($DateFormat eq "yyyy-mm-dd") {
+                        $attrvalue .= "-12-31";
+                    }
+                    elsif ($DateFormat eq "dd/mm/yyyy") {
                         $attrvalue = "31/12/" . $attrvalue;
                     }
                     else { $attrvalue = "12/31/" . $attrvalue; }
@@ -1632,7 +1642,11 @@
                 );
                 return;
             }
-            if (substr($attrvalue, 6, 4) < 1800) {
+            if ($DateFormat eq "yyyy-mm-dd") {
+                $year = substr($attrvalue, 0, 4);
+            }
+            else { $year = substr($attrvalue, 6, 4); }
+            if ($year < 1800) {
                 &Error(
                     "Period attribute '$attribute' invalid. Specify year >= 1800."
                 );
@@ -2524,13 +2538,17 @@
             }
 
             if (   ($DateFormat eq "dd/mm/yyyy")
-                || ($DateFormat eq "mm/dd/yyyy"))
+                || ($DateFormat eq "mm/dd/yyyy")
+                || ($DateFormat eq "yyyy-mm-dd"))
             {
                 if (   ($attrvalue =~ /^\d+$/)
                     && ($attrvalue >= 1800)
                     && ($attrvalue <= 2030))
                 {
-                    $attrvalue = "01/01/" . $attrvalue;
+                    if ($DateFormat eq "yyyy-mm-dd") {
+                        $attrvalue .= "-01-01";
+                    }
+                    else { $attrvalue = "01/01/" . $attrvalue; }
                 }
             }
 
@@ -4300,7 +4318,8 @@
     }
     else { $script .= "  stubs: none\n"; }
 
-    if ($DateFormat !~ /\//) {
+    if (   ($DateFormat eq "yyyy")
+        || ($DateFormat eq "x.y")) {
         $script .= "  ticincrement: " . $Scales{"$scale inc"} . "\n";
     }
     else {
@@ -4530,17 +4549,25 @@
         return ($true);
     }
 
-    if (!($date =~ /^\d\d\/\d\d\/\d\d\d\d$/)) { return ($false); }
-
-    if ($DateFormat eq "dd/mm/yyyy") {
-        $day   = substr($date, 0, 2);
-        $month = substr($date, 3, 2);
-        $year  = substr($date, 6, 4);
+    if ($DateFormat eq "yyyy-mm-dd") {
+        if (!($date =~ /^\d\d\d\d-\d\d-\d\d$/)) { return ($false); }
+        $day   = substr($date, 8, 2);
+        $month = substr($date, 5, 2);
+        $year  = substr($date, 0, 4);
     }
     else {
-        $day   = substr($date, 3, 2);
-        $month = substr($date, 0, 2);
-        $year  = substr($date, 6, 4);
+        if (!($date =~ /^\d\d\/\d\d\/\d\d\d\d$/)) { return ($false); }
+
+        if ($DateFormat eq "dd/mm/yyyy") {
+            $day   = substr($date, 0, 2);
+            $month = substr($date, 3, 2);
+            $year  = substr($date, 6, 4);
+        }
+        else {
+            $day   = substr($date, 3, 2);
+            $month = substr($date, 0, 2);
+            $year  = substr($date, 6, 4);
+        }
     }
 
     if ($month =~ /^(?:01|03|05|07|08|10|12)$/) {
@@ -4573,6 +4600,17 @@
         return ($true);
     }
 
+    if ($DateFormat eq "yyyy-mm-dd") {
+        $day    = substr($date, 8, 2);
+        $month  = substr($date, 5, 2);
+        $year   = substr($date, 0, 4);
+        $dayf   = substr($from, 8, 2);
+        $monthf = substr($from, 5, 2);
+        $yearf  = substr($from, 0, 4);
+        $dayt   = substr($till, 8, 2);
+        $montht = substr($till, 5, 2);
+        $yeart  = substr($till, 0, 4);
+    }
     if ($DateFormat eq "dd/mm/yyyy") {
         $day    = substr($date, 0, 2);
         $month  = substr($date, 3, 2);
@@ -4641,7 +4679,12 @@
     my @mmm = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
     my ($day, $month, $year);
     my $date = shift;
-    if ($DateFormat eq "dd/mm/yyyy") {
+    if ($DateFormat eq "yyyy-mm-dd") {
+        $day   = substr($date, 8, 2);
+        $month = substr($date, 5, 2);
+        $year  = substr($date, 0, 4);
+    }
+    elsif ($DateFormat eq "dd/mm/yyyy") {
         $day   = substr($date, 0, 2);
         $month = substr($date, 3, 2);
         $year  = substr($date, 6, 4);
@@ -4706,7 +4749,10 @@
 
     $month++;
     my $date;
-    if ($DateFormat eq "dd/mm/yyyy") {
+    if ($DateFormat eq "yyyy-mm-dd") {
+        $date = sprintf("%04d-%02d-%02d", $year, $month, $day);
+    }
+    elsif ($DateFormat eq "dd/mm/yyyy") {
         $date = sprintf("%02d/%02d/%04d", $day, $month, $year);
     }
     else { $date = sprintf("%02d/%02d/%04d", $month, $day, $year); }
84.127.115.190 (talk) 14:12, 8 November 2014 (UTC)[reply]
Hi! Thanks for your patch! Please use mw:Developer access to submit this as a Git branch directly into Gerrit. Putting your branch in Git makes it easier to review it quickly. If you don't want to set up Git/Gerrit, you can also use the Gerrit Patch Uploader. Thanks again! --AKlapper (WMF) (talk) 10:28, 10 November 2014 (UTC)[reply]
Submitted at bugzilla:73640. 84.127.115.190 (talk) 04:58, 20 November 2014 (UTC)[reply]

Alignment

How do I align the timeline as a whole on the wikipage? On the German wiki <div class="float-right"> does the trick. Here it seems to have no effect. Any help would be appreciated :) Best, Furius (talk) 08:19, 10 October 2014 (UTC)[reply]

x.y format

Is there a reason the x.y real-number "date" format isn't documented? --Fru1tbat (talk) 17:19, 5 December 2014 (UTC)[reply]

Legend cropped on the right

On this article [1], the legend is cropped on the right - the "n" in "Percussion" is cut in half, and "Studio releases" becomes "Studio rele". I can fix this by changing "columns:4" to "3", but it would be better if it would be fixed in the feature itself. Could somebody do that? Bonomont (talk) 18:32, 9 June 2015 (UTC)[reply]

Font Color

Hi guys,

I am working on Template:Tomb Raider series Timeline. How do I change the font color?

Cheers!--TudorTulok (talk) 07:28, 29 November 2015 (UTC)[reply]

Solved here textcolor:black. Sorry for putting the question and immediately answering and finding the solution myself. TudorTulok (talk) 07:29, 29 November 2015 (UTC)[reply]

Font selection

I understand from the EasyTimeline documentation that any non-default font must be available on the server. In the case of Wikipedia, how do I find out what alternative fonts are available? The default is just horrible: the letter spacing is all uneven. OTOH, this might be a problem with the font rendering, and not something that can be improved easily. (See Classical music#Timeline of composers) Imaginatorium (talk) 11:26, 11 September 2016 (UTC)[reply]


Bar height

Hi! I would be grateful if someone could tell me where to find the syntax for the bar dimensions. ATBWikirictor (talk) 02:30, 11 January 2017 (UTC)[reply]

Years before 1800

I just drafted a timeline to add to an article relating to the American Revolutionary War. I pasted it into the article, only to discover that EasyTimeline wouldn't run. It doesn't work for years in the 1700s:

Line 5: Period = from:06/15/1775 till:12/23/1783
- Period attribute 'from' invalid. Specify year >= 1800.

Line 15: ScaleMajor = unit:year increment:2 start:1775
- Scale attribute 'start' invalid.

Is this limitation as arbitrary as it appears to be, and could someone please fix it? Lwarrenwiki (talk) 17:35, 15 January 2018 (UTC)[reply]

Bug: Additional diagonal lines in Chrome

I can't reproduce it but there are multiple reports that timelines can add strange diagonal lines when used for bands like this. It seems to affect Chrome but not Firefox. Here is a screenshot. Any idea what causes this and how to get rid of it? --mfb (talk) 23:09, 3 October 2019 (UTC)[reply]

Text is blurry when zoomed in

This template should generate 2x images as well https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#resolution_switching_same_size_different_resolutions. The text is noticably blurry when using a page zoom above 100% or using a retina display.

Akeosnhaoe (talk) 20:39, 1 March 2021 (UTC)[reply]

At Demographics of the Supreme Court of the United States‎#Catholic justices, is it possible to plot one line for Edward D. White, split between the two colors representing his time as an associate justice and his time as chief justice? BD2412 T 22:56, 10 March 2021 (UTC)[reply]

  • Note: This has been resolved. BD2412 T 19:18, 24 April 2021 (UTC)[reply]

Underscores as spaces

bar
defines the bar id. Other commands (notably PlotData) will expect this id for reference. This will also be the label to be shown along the axis, unless attribute text is present. The bar id should not contain any spaces: use underscores instead, these will be converted to spaces, as with article titles.

Oh no, they won't!

The underscores continue to show up as underscores. How long has this been a thing? TangoFett (talk) 19:07, 6 October 2023 (UTC)[reply]

Adding a reference to this chart

Hey,

is there a way I can add a reference to this chart? Or maybe place a short caption directly below this chart with this reference:[1]

WikiPate (talk) 16:22, 14 November 2023 (UTC) [reply]

References

  1. ^ "iPhone-Verkaufszahlen weltweit bis 2023". Statista (in German). Retrieved 2023-11-14.

Adding multiple wikilinks in TextInput

How do I wikilink to multiple internal pages in the same line in a given "bar"? See timeline. Tried using quotes ("") and underscore (_) between Bob Bryan and Mike Bryan per Help:EasyTimeline syntax#Text input, but did not give the intended result. Qwerty284651 (talk) 03:28, 10 February 2024 (UTC)[reply]

Recently changed Masato Honda's period in the plot data, but got an error on upload.wikimedia.org: "File not found: /v1/AUTH_mw/wikipedia-en-timeline-render/a2444ub78e1ew1a4anab9tyhuwdf0g4.png". Achmad Rachmani (talk) 05:23, 11 February 2024 (UTC)[reply]

The redirect EasyTimeline syntax has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2024 March 14 § EasyTimeline syntax until a consensus is reached. jlwoodwa (talk) 00:54, 14 March 2024 (UTC)[reply]