x-tools / SuperCount

New Experimental Edit Counter
19 stars 7 forks source link

Wikipedia use on a page? #23

Closed pcoughlin closed 10 years ago

pcoughlin commented 10 years ago

I have tried putting this code into my user page:

Editcount={{editcount}}

and received this output: Editcount=Edit count for {{{1}}}

Tried adding a parameter, like this:

{{editcount|user_name=xyzzy529}} 

but had the same result.

I would like to use the editcount to subst: into the page and have a current update of the number each time I look at the page.

My goal is to do something like this:

{{Service award progress|year=2007|month=8|day=24|edits={{subst:editcount|user_name=xyzzy529}} }} 
cyberpower678 commented 10 years ago

I don't think that's what it's for.

Gesendet von Maximilian's iPhone. (Sent from Maximilian's iPhone.)

On Aug 28, 2014, at 17:40, Paul Coughlin notifications@github.com wrote:

I have tried putting this code into my user page:

Editcount={{editcount}} and received this output: Editcount=Edit count for {{{1}}}

Tried adding a parameter, like this:

{{editcount|user_name=xyzzy529}} but had the same result.

I would like to use the editcount to subst: into the page and have a current update of the number each time I look at the page.

My goal is to do something like this:

{{Service award progress|year=2007|month=8|day=24|edits={{subst:editcount|user_name=xyzzy529}} }} — Reply to this email directly or view it on GitHub.

ghost commented 10 years ago

Paul, that template isn't designed for that. All that {{editcount|Cyberpower678}} does is link to https://tools.wmflabs.org/supercount/index.php?user=Cyberpower678&project=en.wikipedia.org. It's not supposed to show an actual number. AFAIK there's no way to do that automatically (except, I guess, for a bot). On Aug 28, 2014 5:35 PM, "Paul Coughlin" notifications@github.com wrote:

I have tried putting this code into my user page:

Editcount={{editcount}}

and received this output: Editcount=Edit count for {{{1}}}

Tried adding a parameter, like this:

{{editcount|user_name=xyzzy529}}

but had the same result.

I would like to use the editcount to subst: into the page and have a current update of the number each time I look at the page.

My goal is to do something like this:

{{Service award progress|year=2007|month=8|day=24|edits={{subst:editcount|user_name=xyzzy529}} }}

— Reply to this email directly or view it on GitHub https://github.com/x-Tools/SuperCount/issues/23.

cyberpower678 commented 10 years ago

Actually Lucas, with the use of a Lua Module, it can be done. The supercount API is built for automated tasks.

On Aug 28, 2014, at 6:40 PM, Lucas-Thoms notifications@github.com wrote:

Paul, that template isn't designed for that. All that {{editcount|Cyberpower678}} does is link to https://tools.wmflabs.org/supercount/index.php?user=Cyberpower678&project=en.wikipedia.org. It's not supposed to show an actual number. AFAIK there's no way to do that automatically (except, I guess, for a bot). On Aug 28, 2014 5:35 PM, "Paul Coughlin" notifications@github.com wrote:

I have tried putting this code into my user page:

Editcount={{editcount}}

and received this output: Editcount=Edit count for {{{1}}}

Tried adding a parameter, like this:

{{editcount|user_name=xyzzy529}}

but had the same result.

I would like to use the editcount to subst: into the page and have a current update of the number each time I look at the page.

My goal is to do something like this:

{{Service award progress|year=2007|month=8|day=24|edits={{subst:editcount|user_name=xyzzy529}} }}

— Reply to this email directly or view it on GitHub https://github.com/x-Tools/SuperCount/issues/23.

— Reply to this email directly or view it on GitHub https://github.com/x-Tools/SuperCount/issues/23#issuecomment-53814682.

ghost commented 10 years ago

Has anyone done that?

On Thu, Aug 28, 2014 at 5:44 PM, cyberpower678 notifications@github.com wrote:

Actually Lucas, with the use of a Lua Module, it can be done. The supercount API is built for automated tasks.

On Aug 28, 2014, at 6:40 PM, Lucas-Thoms notifications@github.com wrote:

Paul, that template isn't designed for that. All that {{editcount|Cyberpower678}} does is link to

https://tools.wmflabs.org/supercount/index.php?user=Cyberpower678&project=en.wikipedia.org.

It's not supposed to show an actual number. AFAIK there's no way to do that automatically (except, I guess, for a bot). On Aug 28, 2014 5:35 PM, "Paul Coughlin" notifications@github.com wrote:

I have tried putting this code into my user page:

Editcount={{editcount}}

and received this output: Editcount=Edit count for {{{1}}}

Tried adding a parameter, like this:

{{editcount|user_name=xyzzy529}}

but had the same result.

I would like to use the editcount to subst: into the page and have a current update of the number each time I look at the page.

My goal is to do something like this:

{{Service award progress|year=2007|month=8|day=24|edits={{subst:editcount|user_name=xyzzy529}} }}

— Reply to this email directly or view it on GitHub https://github.com/x-Tools/SuperCount/issues/23.

— Reply to this email directly or view it on GitHub < https://github.com/x-Tools/SuperCount/issues/23#issuecomment-53814682>.

— Reply to this email directly or view it on GitHub https://github.com/x-Tools/SuperCount/issues/23#issuecomment-53815509.

cyberpower678 commented 10 years ago

Not to my knowledge.

On Aug 28, 2014, at 6:58 PM, Lucas-Thoms notifications@github.com wrote:

Has anyone done that?

On Thu, Aug 28, 2014 at 5:44 PM, cyberpower678 notifications@github.com wrote:

Actually Lucas, with the use of a Lua Module, it can be done. The supercount API is built for automated tasks.

On Aug 28, 2014, at 6:40 PM, Lucas-Thoms notifications@github.com wrote:

Paul, that template isn't designed for that. All that {{editcount|Cyberpower678}} does is link to

https://tools.wmflabs.org/supercount/index.php?user=Cyberpower678&project=en.wikipedia.org.

It's not supposed to show an actual number. AFAIK there's no way to do that automatically (except, I guess, for a bot). On Aug 28, 2014 5:35 PM, "Paul Coughlin" notifications@github.com wrote:

I have tried putting this code into my user page:

Editcount={{editcount}}

and received this output: Editcount=Edit count for {{{1}}}

Tried adding a parameter, like this:

{{editcount|user_name=xyzzy529}}

but had the same result.

I would like to use the editcount to subst: into the page and have a current update of the number each time I look at the page.

My goal is to do something like this:

{{Service award progress|year=2007|month=8|day=24|edits={{subst:editcount|user_name=xyzzy529}} }}

— Reply to this email directly or view it on GitHub https://github.com/x-Tools/SuperCount/issues/23.

— Reply to this email directly or view it on GitHub < https://github.com/x-Tools/SuperCount/issues/23#issuecomment-53814682>.

— Reply to this email directly or view it on GitHub https://github.com/x-Tools/SuperCount/issues/23#issuecomment-53815509.

— Reply to this email directly or view it on GitHub https://github.com/x-Tools/SuperCount/issues/23#issuecomment-53817943.

waldyrious commented 10 years ago

FYI, the LiveEditCounter userbox uses a javascript function to access the API via XHR (Ajax) and get the edit count.

Also, User:PleaseStand's User info script uses a similar technique for the same effect.

cyberpower678 commented 10 years ago

I'm not sure exactly what the issue is? If your asking to use this edit counter's api, then yes.

Gesendet von Maximilian's iPhone. (Sent from Maximilian's iPhone.)

On Aug 30, 2014, at 18:38, Waldir Pimenta notifications@github.com wrote:

FYI, the LiveEditCounter userbox uses a javascript function to access the API via XHR (Ajax) and get the edit count.

Also, User:PleaseStand's User info script uses a similar technique for the same effect.

— Reply to this email directly or view it on GitHub.

pcoughlin commented 10 years ago

Thanks waldyrious pointed me in a good direction. I used some of that code to get what I wanted.