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

--- Comment #4 from [email protected] 2012-05-14 19:50:14 UTC ---
The problem seems to be more general than the simple example I provided first.

For example, on frwiki, if I try to retrieve the list of templates in Hacker,
it orks :
http://fr.wikipedia.org/w/api.php?action=query&prop=templates&format=xml&titles=Hacker

<?xml version="1.0"?>
<api>
  <query>
    <pages>
      <page pageid="1830125" ns="0" title="Hacker">
        <templates>
          <tl ns="10" title="Modèle:Autres projets" />
          <tl ns="10" title="Modèle:Homonymie" />
        </templates>
      </page>
    </pages>
  </query>
</api>

If I had a tltemplates argument with only "Modèle:Homonymie", it works also :
http://fr.wikipedia.org/w/api.php?action=query&prop=templates&format=xml&tltemplates=Mod%C3%A8le%3AHomonymie&titles=Hacker

<?xml version="1.0"?>
<api>
  <query>
    <pages>
      <page pageid="1830125" ns="0" title="Hacker">
        <templates>
          <tl ns="10" title="Modèle:Homonymie" />
        </templates>
      </page>
    </pages>
  </query>
</api>

But, when I put all disambiguation templates in the tltemplates argument, the
result is wrong (Modèle:Homonymie is not returned as one of the templates in
Hacker) :
/w/api.php?action=query&prop=templates&format=xml&tltemplates=Mod%C3%A8le%3AArrondissements%20homonymes%7CMod%C3%A8le%3ABandeau%20standard%20pour%20page%20d'homonymie%7CMod%C3%A8le%3ABatailles%20homonymes%7CMod%C3%A8le%3ACantons%20homonymes%7CMod%C3%A8le%3ACommunes%20fran%C3%A7aises%20homonymes%7CMod%C3%A8le%3AFilms%20homonymes%7CMod%C3%A8le%3AGouvernements%20homonymes%7CMod%C3%A8le%3AGuerres%20homonymes%7CMod%C3%A8le%3AHomonymie%7CMod%C3%A8le%3AHomonymie%20bateau%7CMod%C3%A8le%3AHomonymie%20d'%C3%A9tablissements%20scolaires%20ou%20universitaires%7CMod%C3%A8le%3AHomonymie%20d'%C3%AEles%7CMod%C3%A8le%3AHomonymie%20de%20clubs%20sportifs%7CMod%C3%A8le%3AHomonymie%20de%20comt%C3%A9s%7CMod%C3%A8le%3AHomonymie%20de%20monument%7CMod%C3%A8le%3AHomonymie%20de%20nom%20romain%7CMod%C3%A8le%3AHomonymie%20de%20parti%20politique%7CMod%C3%A8le%3AHomonymie%20de%20route%7CMod%C3%A8le%3AHomonymie%20dynastique%7CMod%C3%A8le%3AHomonymie%20vid%C3%A9oludique%7CMod%C3%A8le%3AHomonymie%20%C3%A9difice%20religieux%7CMod%C3%A8le%3AInternationalisation%7CMod%C3%A8le%3AIsom%C3%A9rie%7CMod%C3%A8le%3AParonymie%7CMod%C3%A8le%3APatronyme%7CMod%C3%A8le%3APatronyme%20basque%7CMod%C3%A8le%3APatronyme%20italien%7CMod%C3%A8le%3APatronymie%7CMod%C3%A8le%3APersonnes%20homonymes%7CMod%C3%A8le%3ASaints%20homonymes%7CMod%C3%A8le%3ATitres%20homonymes%7CMod%C3%A8le%3AToponymie%7CMod%C3%A8le%3AUnit%C3%A9s%20homonymes%7CMod%C3%A8le%3AVilles%20homonymes%7CMod%C3%A8le%3A%C3%89difices%20religieux%20homonymes&titles=Hacker

<?xml version="1.0"?>
<api>
  <query>
    <pages>
      <page pageid="1830125" ns="0" title="Hacker" />
    </pages>
  </query>
</api>

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
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