Wikinews talk:Ticker

From Wikinews, the free news source you can write!
(Redirected from Template talk:Ticker)
Jump to navigation Jump to search

Created so redirects work. TheFearow 10:11, 29 August 2007 (UTC)

Breaking news: Ick[edit]

So now I can only type breaking news every seven seconds. I wonder if more processors would help, or if I'd just get ticked off faster. (SEWilco 05:16, 6 September 2007 (UTC))

What is that supposed to mean? irid:t 05:47, 6 September 2007 (UTC)
Ahh, the time is a bit slow depending on browser. My computer with a better processor and more RAM actually does it slower than my 4 year old computer with no good stats. I have no clue why. TheFearow 05:52, 6 September 2007 (UTC)
It means that on a slow computer you can't type in the Newsroom's box to create a new story until the ticker pauses. So if you see breaking news, you might not be able to report it on your cell phone. I suspect it also gobbles CPU time if you leave a window Wikinews window open while researching a story in other browser windows, slowing the news gathering process. (SEWilco 16:24, 13 September 2007 (UTC))
The CPU time used is minimal - Also, why cant you type while it's typing? It's not actually typing anything, just virtually showing, so I don't get what you mean. TheFearow | userpage | contribs 21:26, 13 September 2007 (UTC)
The CPU time on Firefox and Opera seems more than minimal. On my N800 Opera handheld, typed characters are not displayed during Ticker's typing. I just noticed that on one of my faster systems it's over 50% CPU in cycles 50% of the time (probably using over 50% CPU while it types, then none during pause). (SEWilco 00:03, 14 September 2007 (UTC))
Hmmm, i'll increase the sleep, slow down the typing a bit. That should work. Hard-reload in about 5-10 minutes. TheFearow | userpage | contribs 00:04, 14 September 2007 (UTC)
time firefox
real    11m5.905s
user    1m13.893s
sys     0m3.364s
I think the above is on a 1Ghz system. About 10% CPU usage. So a 100 Mhz processor would be the Wikinews minimum system. But more CPU would be needed on a slow machine with a less capable graphics card. (SEWilco 00:29, 14 September 2007 (UTC))
Ok, it's not too bad then. TheFearow | userpage | contribs 00:52, 14 September 2007 (UTC)
Taking 10% of the CPU for text is not too bad? I think it is. How much is it reduced when the text is updated a line at a time instead of a character at a time? (SEWilco 12:42, 10 October 2007 (UTC))
I also find the main page scrolling stutters when the ticker is running. Makes it hard to browse. (SEWilco 12:42, 10 October 2007 (UTC))
A line at a time makes it pointless, it ruins its effect. And anyone with that slow of a computer is likely to have javascript disabled or speed limited (old IE etc will automatically throttle javascript, so it will use less on old computers) Matt | userpage | contribs 00:24, 14 October 2007 (UTC)
Whatever it's doing, it's making my XO-1 laptop (430MHz processor) so slow as to be unusable: one character drawn every second or so, with the mouse freezing in place except when a full line has been drawn. -- 08:35, 8 February 2008 (UTC)
I believe using css clip property as opposed to rewriting the html each tick would siginificantly improve performance (please test to see if it is my imagination). Try adding the following to your special:mypage/monobook.js (or equiv. need to be logged in)
addOnloadHook(function () {window.setTimeout((function () {importScript("User:Bawolff/Sandbox/tick.js");}), 300)});

Bawolff 01:55, 16 February 2008 (UTC)

Template:Ticker "full list" link[edit]


Please replace the "full list" link with a direct link rather than a "purge" link. (Add a separate purge link as well if you really need it). Anonymous users – that is, most of the Main Page's viewers - are presented with a confirmation screen when they click on this link, rather than the page itself, which is very confusing – 17:04, 21 September 2007 (UTC)

We need a simple way of purging. I'm going to request that confirmation screen is removed instead, and keep it as a purge. Matt | userpage | contribs 20:34, 8 October 2007 (UTC)


Since it's linked to from the main page, it really should not be in the user namespace. --+Deprifry+ 17:05, 20 October 2007 (UTC)

Perhaps it should link to template:Latest news or category:Publish instead of the tickersource. Bawolff 22:08, 20 October 2007 (UTC)
I am having trouble finding it, I want to change it to Template:Ticker. FellowWiki Newsie 22:14, 20 October 2007 (UTC)
It HAS to link to the tickersource page for internal reasons. If you want the pagename to be changed then tell me and I can update, but the content of the target page has to be that. Matt | userpage | contribs 23:56, 22 October 2007 (UTC)

How can I put ticker on Finnish Wikiuutiset?[edit]

Hey, I am not an expert with this kind of thing, but I would like to put ticker in Finnish Wikiuutiset. Do I have to copy entire tickersource to do that? Tuohirulla 00:38, 9 December 2007 (UTC)

While the following code added to fi:mediawiki:common.js should work (although full list is not currently internationalized, but that can be easily changed):
 aOnloadFunctions[aOnloadFunctions.length] = function () {
   if (document.getElementById("showticker")) {
     var ticker_custompages = new Array;
     var ticker_custommsg = new Array;
     ticker_custompages['Wikiuutiset:Etusivu'] = 'Whatever page you have the dpl the ticker uses on';
     ticker_custommsg['Wikiuutiset:Etusivu'] = 'finish for latest news';
     var url = "";
     var scriptElem = document.createElement( 'script' );
     scriptElem.setAttribute( 'src' , url );
     scriptElem.setAttribute( 'type' , 'text/javascript' );
     document.getElementsByTagName( 'head' )[0].appendChild( scriptElem );

However I'm not entirely sure if linking like that is a good idea. You should ask user:Matt for his thoughts. Bawolff 05:58, 9 December 2007 (UTC)

ticker not working?[edit]

idk? -- 23:49, 11 July 2008 (UTC)

Works for me. Please be specific. Where (on what page) is it supposed to be working but it is not. How is it not working (what happens instead). What web browser are you using. reproducibility of problem, etc. Not working doesn't really help, we need details. Bawolff 00:53, 12 July 2008 (UTC)

New ticker system[edit]

I've been experimenting with a new ticker system: See User:Bawolff/sandbox/ticker (for the js coders: User:Bawolff/sandbox/ticker2.js). Well its not quite done yet, its in the usable stage. Its design goals are:

  • Be more efficient (per comments above)
  • Be easily customizable and extensible
    • End user (random editor) should be able to make a custom ticker without touching any js

Anyways, any comments appreciated. Bawolff 10:05, 15 July 2008 (UTC)

Its now active. please leave a message if something doesn't work.Bawolff 00:02, 29 August 2008 (UTC)