User:Bene*/Items by cat

Items by cat is a tool to find existing or missing items by a Wikipedia category. This page is used for the documentation and internationalisation of the script.

Documentation edit

You have to give the wiki shorcut the category is in (eg. enwiki is the wiki shortcut of en.wikipedia.org) and the name of the category itselves (eg. Books). Run with this settings.

There are three input boxes called offset, limit and recursion level. You can either use the first two or the third one. A set limit will override the recursion level. If you set limit and/or offset the results will be limited to limit and starting at offset. This parameters make sense if you try to check a huge category where the query would take too long.

If you want to include subcategories, you can enter a value into the recursion level box. This number indicates how deep the tool should go into the category. So if you enter a value of 0 (the default), no subcats will be checked, if you enter 1 all categories in the given category will be checked but not "subsubcats" etc. Note that this parameter should be used very carefully. Recursion requires a lot of memory and the script will fail if too many pages are selected. Thus you should only enter a value greater than 0 for little categories with small subcats etc.

With the output parameter you can also modify the format of the list of items. You can choose between HTML, wiki markup and plain text.

Translations edit

Translations go to the subpage now: /i18n.json.

Bugs edit

Too big categories edit

A known bug is that the tool does not work for really big categories.

Can you give a exempel on a really big category it dont work on? --Trade (talk) 13:38, 16 April 2013 (UTC)

fa-Bugs edit

reza1615

for Farsi it has two bugs

  • fa > category:ایران shows error!
    • [1] does work for me
this shows error for me Reza1615 (talk) 18:00, 25 February 2013 (UTC)
  • the link after The list of all pages which have no item in should be in Unicode
    •   Done
  • it offers create to user but for example for : fa > آی‌بی‌ام (show missing pages only) it shows آی‌بی‌ام (en:IBM article) which has item here for (en:IBM article). in my opinion before offering create it should say in other language it has an item in wikidata. do you want to add it to that item.
    • This would be based on another request and slow down the performance. I will think about it.
  • for big categories it can limit results to 500 or any number that it can work and sent an alarm which says it can execute only this amount
    • Will be implemented soon.

thanksReza1615 (talk) 15:51, 24 February 2013 (UTC)

Thanks for reporting --Bene* talk 17:28, 25 February 2013 (UTC)
  • Missing label and Missing description doesn't work correctly. some of the items which is shown has label/description.(i.e. fa>اصفهان)
  • what is the difference between Language for condition and Language? Reza1615 (talk) 11:53, 25 February 2013 (UTC)
language for condition is the language where the item should not have a label or a description while language is the language of the category. --Bene* talk 17:24, 25 February 2013 (UTC)

wikisyntax edit

When using the wikisyntax and clicking on next, it doesn't show the wikisyntax again. (It uses then wikisyntax=1 instead of wikisyn=on)--CENNOXX (talk) 10:51, 8 April 2013 (UTC)

This bug is fixed now. --Bene* talk 18:22, 9 April 2013 (UTC)

Tool escapes articles edit

I found out that the tool automatically escapes all articles that contain an apostrophe (') in the title, such as it:Biblioteca comunale dell'Archiginnasio. Sannita - not just another it.wiki sysop 16:10, 5 April 2015 (UTC)