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

Ricordisamoa <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #10 from Ricordisamoa <[email protected]> ---
(In reply to comment #0)
> 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.

I'd rather suggest something like:

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

-- 
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