https://bugzilla.wikimedia.org/show_bug.cgi?id=41345

       Web browser: ---
             Bug #: 41345
           Summary: add info if langlink is stored at repository or local
           Product: MediaWiki extensions
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: WikidataClient
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Add info if a langlinks is stored at repository of local to langlinks/ll on
api.php?action=query&prop=langlinks&titles=...

Bots need this info, because currently bots try to search for a langlink source
on local wikipages. If the cannot find its source on the main page they start
searching for langlink on included pages (mostly on template namespace lankings
are included from subpage). This costs many page source requests and 
processing time for parsers a  bot frameworks.

But if bots would know that langlinks are already stored at wikidata they do
not have to request source code of many local pages.

Example:
http://de.wikipedia.org/w/api.php?action=query&prop=langlinks&titles=Vorlage:!

currently returns
<api>
  <query>
    <pages>
      <page pageid="5327033" ns="10" title="Vorlage:!">
        <langlinks>
          <ll lang="ace" xml:space="preserve">Pola:!</ll>
          <ll lang="ar" xml:space="preserve">قالب:!</ll>
          <ll lang="as" xml:space="preserve">সাঁচ:!</ll>
        </langlinks>
      </page>
    </pages>
  </query>
</api>

maybe this can be extended to
<api>
  <query>
    <pages>
      <page pageid="5327033" ns="10" title="Vorlage:!">
        <langlinks>
          <ll lang="ace" storage="repository" xml:space="preserve">Pola:!</ll>
          <ll lang="ar" storage="local" xml:space="preserve">قالب:!</ll>
          <ll lang="as" storage="repository" xml:space="preserve">সাঁচ:!</ll>
        </langlinks>
      </page>
    </pages>
  </query>
</api>

If querying this info takes much resources an extra parameter should be added
(like llurl for fullurl extra info) and info should only be shown if requested.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to