Module:Stolperstein/doc
A module generating categories for Stolperstein categories based on the corresponding wikidata item. Part of the Stolpersteine goes Wikidata effort.
Category:Module documentation#Stolperstein/docInformation extracted from wikidata
The following informations are tried to be extracted from the QID passed to the function. If the information is missing or does not cohere to the expected conventions, it will be set to nil and the corresponding categories not inserted.
- last_name: Family name of the person commemorated
- First try to use P547 ("commemorates") and extract from linked item P734 ("family name")
- If P547 is not set, fall back to try to read from label if it has the form "Stolperstein für <full name>"
- first_letter: First letter of the family name
- Extracted from last_name
- city: Administrative territory, where Stolperstein is located
- Use P131 ("located in the administrative territorial entity") of Wikidata item
- state: Federal state in Germany, where Stolperstein is located
- Use P131 ("located in the administrative territorial entity") and pursue upwards until one of the German federal states is found
- street_name/house_number: Name of the street, where Stolperstein is located
- Follow P669 ("located on street") and get street name
- Extract from P670 ("house number") of P669
- country: Country of Stolperstein
- Use P17 ("country")
Categories automatically added
<family_name> in <country>
- Only set if last_name and country could be determined
Stolpersteine in <state> by name <first_letter>
- Only set if last_name and state could be determined
Stolpersteine at <street_name> (<city>)
- Only set if street_name and city could be determined
<street_name> <house_number> (<city>)
- Only set if street_name, house_number, and city could be determined
TODO
- Limit to German Stolpersteine?
- Throw error if not linked item is not a Stolperstein
Usage
{{#invoke:Stolperstein|categorizer|QID}}