Small bug in categorymembers?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Small bug in categorymembers?

Ian Cabell
Reply | Threaded
Open this post in threaded view
|

Re: Small bug in categorymembers?

Roan Kattouw
Ian Cabell schreef: I think embeddedin should handle this the same as categorymembers: what
happens if you have Template:Example and Template:Template:Example and
someone specifies &eititle=Template:Example ? The fact that the
namespace prefix is implied and must not be specified should be
documented of course.

Catrope

_______________________________________________
Mediawiki-api mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Small bug in categorymembers?

Bryan Tong Minh
I think EI should not guess the namespace, because you can transclude
from any namespace. Categories are different, since it is only used
with NS 14.

On 10/10/07, Roan Kattouw <[hidden email]> wrote:

> Ian Cabell schreef:
> > Does "categorymembers" work different from the others?  When I try
> > http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=Template:LGBTProject
> > <http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=Template:LGBTProject>
> > it returns exactly the same results as
> > http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=LGBTProject
> > <http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=LGBTProject>
> >
> > "categorymembers" doesn't seem to be the same -
> > http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=categorymembers&cmlimit=20&cmcategory=Category:Compositions_by_Alexander_Glazunov
> > <http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=categorymembers&cmlimit=20&cmcategory=Category:Compositions_by_Alexander_Glazunov>
> > returns nothing, while
> > http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=categorymembers&cmlimit=20&cmcategory=Compositions_by_Alexander_Glazunov
> > <http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=categorymembers&cmlimit=20&cmcategory=Compositions_by_Alexander_Glazunov>
> > returns the list of articles.
> >
> > --SatyrTN
> I think embeddedin should handle this the same as categorymembers: what
> happens if you have Template:Example and Template:Template:Example and
> someone specifies &eititle=Template:Example ? The fact that the
> namespace prefix is implied and must not be specified should be
> documented of course.
>
> Catrope
>
> _______________________________________________
> Mediawiki-api mailing list
> [hidden email]
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>

_______________________________________________
Mediawiki-api mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Small bug in categorymembers?

Roan Kattouw
In reply to this post by Ian Cabell
Ian Cabell schreef: Weirdly enough, the above is simply not true: [1] returns the expected
result whereas [2] returns nothing (no page transcludes {{:LGBTProject}}).

The described semantics of categorymembers are accurate, and, as Brion
pointed out, correct.

Catrope

[1]
http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=Template:LGBTProject 
<http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=Template:LGBTProject>
[2]
http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=LGBTProject 
<http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=LGBTProject>


_______________________________________________
Mediawiki-api mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Small bug in categorymembers?

Ian Cabell
Is that a recent change?  [1] and [2] *were* returning the same things...

Thanks for the replies.
--SatyrTN

On 10/10/07, Roan Kattouw <[hidden email]> wrote:
Ian Cabell schreef:Weirdly enough, the above is simply not true: [1] returns the expected
result whereas [2] returns nothing (no page transcludes {{:LGBTProject}}).

The described semantics of categorymembers are accurate, and, as Brion
pointed out, correct.

Catrope

[1]
http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=Template:LGBTProject
<http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=Template:LGBTProject >
[2]
http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=LGBTProject
<http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=LGBTProject >


_______________________________________________
Mediawiki-api mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api



--
----------------------------
Ian Cabell
RadiantWeb Services
( 877 ) 406 - 6272 [toll free]
[hidden email]
http://www.radiantweb.net

"There is more than one right way .. to make it perfect!"
_______________________________________________
Mediawiki-api mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Small bug in categorymembers?

Roan Kattouw
Ian Cabell schreef:
> Is that a recent change?  [1] and [2] *were* returning the same things...
>
> Thanks for the replies.
> --SatyrTN
Not necessarily recent, but Wikipedia only updates to the most recent
version every so many weeks. You could've hit one of those upgrades.

Catrope

_______________________________________________
Mediawiki-api mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api