Skip to content

Search only existing items with P31=Q5 #10

@framawiki

Description

@framawiki

In new item creation, may I suggest to use a search that restrict to human items, instead of plain text as actually? For example researchers often are in plaintext author list of papers items in WD but don't have items themselves.
I've used something like:

generator = pagegenerator.SearchPageGenerator(f'"{name}" haswbstatement:P31=Q5', total=50, site=site, namespaces=[0])

Thank you for this script, which is an incredible service to the community!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions