User:Bene*/Items by cat

From Wikidata
Jump to: navigation, search

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.

Contents

Documentation [edit]

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

If you want to find articles in this category which do not have a Wikidata item, you can select the checkbox show missing pages only. [1] Otherwise you can also select that only items with a missing label/description in a specific language should be shown. So this request searches all the articles in the English category Books which do not have a label in German. Finally you can select the output as wikisyntax so that you can copy it into any project page.

Translations [edit]

If you want to add a new language for translation, copy the following lines and add them (alphabetically sorted) to the other translations.

=== <your langcode here> ===
{{/Translate | lang=<your langcode here>
 | title=Items by cat
 | language=Language: 
 | category=Category: 
 | missing-only=show missing pages only
 | condition-language=Language for condition: 
 | missing=Missing: 
 | label=label
 | description=description
 | create=create
 | search=search
 | select=select
 | reset=reset
 | wikisyntax=output as wikisyntax
 | intro=The list of all items which are linking to a page in category $1.
 | intro-missing=The list of all pages in category $1 which have no item.
 | error-unknown=An unknown error had occured.
 | error-nocategory=The category $1 does not exist.
 | error-language=Please check the language.
 | written-by=Tool written by $1.
 | documentation=Documentation
 | run-again=Run it with the same settings again.
}}

en [edit]

es [edit]

de [edit]

da [edit]

fa [edit]

fr [edit]

it [edit]

no/nb [edit]


or [edit]

pt [edit]

pt-br [edit]

ru [edit]

sr [edit]

id [edit]

min [edit]

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!
    • [2] 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)