Changes

User talk:Daveh

1,425 bytes added, 23:19, 6 February 2012
Tokens/Pointers and functions...: new section
 
:::::Repeatedly re-adding a pointless vote with no chance of passing that's only stirring up bad blood is incredibly disruptive. Being told this and then running off to a different venue to complain about it is even more disruptive. Certainly I had planned to spend this evening on the site, but discovering that a mass of utter nonsense has been vomited over the site and that various malcontents are intent on stirring up trouble has put me right off. Krusty, an uninvolved admin, removed the discussion because it served absolutely no purpose. The editors who put it back should all know better. [[User:Rpeh|rpeh]]<span style="font-size:xx-small">&nbsp;•[[User_Talk:Rpeh|T]]•[[Special:Contributions/Rpeh|C]]•[[Special:Emailuser/Rpeh|E]]•</span> 19:57, 6 February 2012 (UTC)
 
== Tokens/Pointers and functions... ==
 
Hello, I'm currently trying to create a user box, {{tl|User EditsPerDay}}, that shows how many edits are made per day by a user (duh). To get the data, it transcludes the number of edits from Special:Editcount/''user'' and the number of days from a template the counts the number of days between two dates, {{tl|DaysSince}}. It then feeds them into a simple #expr that divides the two. The problem is, the #expr is looking for variables, not tokens/pointers, thus it craps out. There are two different solutions that I can think of. One: have a function (called something like #tovar) that returns the variable that the pointer is pointing to. Two: change #expr to allow pointers to be entered, and have it just read the variables that the pointers are pointing to. The closest function we have on the wiki is to #load a #saved transclusion, but that causes a UNIQ...QINU error (like this: {{#load:User: Jak Atackka/EditsPerDay|numedits}}{{{numedits}}})
 
I understand that the wiki is going through upgrades, and I also understand if you don't want to do this because it's of limited use, but I'd appreciate some feedback. • <font color="#4faf4f">[[User:Jak Atackka|<span style="line-height:1.0" title="Jak Atackka"><font face="DragonscriptRegular" size="3">JA</font></span>]]</font><sup><font color="black">[[User talk:Jak Atackka|Talk]]</font></sup> 23:19, 6 February 2012 (UTC)
Abuse editor, patroller
8,070
edits