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_Biography_volume_32.djvu

==Transcluded page==
* Page:Dictionary of National Biography volume 32.djvu/163
https://secure.wikimedia.org/wikisource/en/wiki/Page:Dictionary_of_National_Biography_volume_32.djvu/163

https://secure.wikimedia.org/wikisource/en/w/api.php?action=query&generator=embeddedin&geititle=Page:Dictionary_of_National_Biography_volume_32.djvu/163&prop=info
<?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_Biography_volume_32.djvu/263

https://secure.wikimedia.org/wikisource/en/w/api.php?action=query&generator=embeddedin&geititle=Page:Dictionary_of_National_Biography_volume_32.djvu/263&prop=info
<?xml version="1.0"?>
<api />


Thanks in advance for any guidance.
Regards Andrew

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to