At Wikisource we do a lot of work proofreading in our Page: ns, with the pages being "held together" by an overarching page in the Index: namespace. Principally the text gets proofread and the validated in the Page: pages and later transcluded into the main namespace (our presentation layer). A transclusion can be a part of a page, a whole page, or a series of pages depending on the work being reproduced, and how we are choosing to present it.
What I would like to do per work is to determine which pages are and which are not transcluded a yes/no answer, rather than to know to where the page is transcluded. At the moment, my only means to determine if a page is trancluded is to individually check each page via WhatLinksHere, and I am looking for an easier way to determine the Y/N answer, so I am looking for an easy way to dynamically determine this for a series of pages. Ultimately my ideal outcome is to have a link on the Index: page that could easily show which pages are and which pages are not transcluded.
I know what I want, however, I no idea to get either the API to work for me, or to work out how to do it for a series of pages. Hence I am here to ask for some guidance and assistance.
Examples based on the work of vol. 32 of the Dictionary of National Biography
* Index:Dictionary of National Biography volume 32.djvu https://secure.wikimedia.org/wikisource/en/wiki/Index:Dictionary_of_National...
==Transcluded page== * Page:Dictionary of National Biography volume 32.djvu/163 https://secure.wikimedia.org/wikisource/en/wiki/Page:Dictionary_of_National_...
https://secure.wikimedia.org/wikisource/en/w/api.php?action=query&genera... <?xml version="1.0"?> <api> <query> <pages> <page pageid="554940" ns="0" title="Laski, John (DNB00)" touched="2011-03-14T21:59:25Z" lastrevid="2341119" counter="" length="341" /> </pages> </query> </api>
==Non-transcluded page== * Page:Dictionary of National Biography volume 32.djvu/263 https://secure.wikimedia.org/wikisource/en/Page:Dictionary_of_National_Biogr...
https://secure.wikimedia.org/wikisource/en/w/api.php?action=query&genera... <?xml version="1.0"?> <api />
Thanks in advance for any guidance. Regards Andrew
2011/3/28 Billinghurst billinghurst@gmail.com:
What I would like to do per work is to determine which pages are and which are not transcluded a yes/no answer, rather than to know to where the page is transcluded.
Do you want to know a) whether the page is transcluded *in a specific other page* or b) whether the page is transcluded *anywhere at all* ?
Roan Kattouw (Catrope)
On 28 Mar 2011 at 12:51, Roan Kattouw wrote:
2011/3/28 Billinghurst billinghurst@gmail.com:
What I would like to do per work is to determine which pages are and which are not transcluded a yes/no answer, rather than to know to where the page is transcluded.
Do you want to know a) whether the page is transcluded *in a specific other page* or b) whether the page is transcluded *anywhere at all* ?
Roan Kattouw (Catrope)
Anywhere. Transcluded - Yes or No
Generally it is only going to be transcluded to the right spot, plus we would see such an error from the main namepace side. Sanity check of it doesn't read properly. Thanks.
Regards, Andrew
2011/3/28 Billinghurst billinghurst@gmail.com:
Anywhere. Transcluded - Yes or No
Generally it is only going to be transcluded to the right spot, plus we would see such an error from the main namepace side. Sanity check of it doesn't read properly. Thanks.
In that case the best you can do is use list=backlinks&bllimit=1&bltitle=Foo . It kinda sucks that you have to do one request per page this way, but that's how it is.
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org