Frisa, Raquel, VF-ES (rfrisar) schreef: > Hi Magnus, > > I'm working now in Api Random Page functionality. > > This is the first version format: > > api.php?action=query&prop=randompage&rpprop=timestamp|user|comment|conte > nt > > Parameters: > rpprop - Which properties to get for page. > Values (separate with '|'): ids, flags, timestamp, > user, size, comment, content > Default: ids|timestamp|flags|comment|user > > Soon, maybe I will add a new parameter "rpns" to be able to indicate the > namespace desired of the page obtained. > Wouldn't it be better to just output the name of the page, and use a generator to obtain additional information? Like:
api.php?action=query&generator=randompage&grpns=0|4&prop=info (or &prop=revision&rvprop=flags|user|comment|content, whatever the user would like). Also, there's no need to put it in the Vodafone branch: if it works, just commit it on trunk. Catrope _______________________________________________ Mediawiki-api mailing list [email protected] http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
