Template:CityLocative/doc
Jump to navigation
Jump to search
Examples
[edit]Note: Pages are often redirects, which cause issues because they are not connected to Wikidata. Avoid for now, solve later.
QID (preferred) | Commons category | Commons page |
---|---|---|
{{CityLocative|Q1524|lang=fr}} neither-pl-nor-euCityLocativefromCat:"lang 'fr' not implemented yet"
|
{{CityLocative|Category:Athens|lang=fr}} neither-pl-nor-euCityLocativefromCat:"lang 'fr' not implemented yet"
|
{{CityLocative|Athens|lang=fr}} neither-pl-nor-euCityLocativefromCat:"lang 'fr' not implemented yet"
|
{{CityLocative|Q64|lang=en}} in
|
{{CityLocative|Category:Berlin|lang=en}} in Berlin
|
{{CityLocative|Berlin|lang=en}} in
|
{{CityLocative|Q5465|lang=pl}} Invalid ID provided.
|
{{CityLocative|Category:Cape Town|lang=pl}} ok
|
{{CityLocative|Cape Town|lang=pl}} ok
|
{{CityLocative|Category:Dar es Salaam|lang=XX}}
in Dar es Salaam{{CityLocative|Category:El Aaiún|lang=XX}}
in El Aaiún{{CityLocative|Category:Flying Fish Cove|lang=XX}}
in Flying Fish Cove{{CityLocative|Category:Geneva|lang=XX}}
in Geneva{{CityLocative|Category:Hagåtña, Guam|lang=XX}}
in Hagåtña, Guam{{CityLocative|Category:Islamabad|lang=XX}}
in Islamabad{{CityLocative|Category:Jerusalem|lang=XX}}
in Jerusalem{{CityLocative|Category:Sri Jayawardenepura Kotte|lang=XX}}
in Sri Jayawardenepura Kotte{{CityLocative|Category:The Hague|lang=ru}}
neither-pl-nor-euCityLocativefromCat:"lang 'ru' not implemented yet"{{CityLocative|Category:Washington, D.C.|lang=XX}}
in Washington, D.C.
Special cases
[edit]- QID exists, language has a description, but no page linked to it, and no label for the QID (not even in English, to which it defaults)
- fr and pl have been set up in CityLocative/fr and CityLocative/pl, so they display the correct QID, and it is clickable thanks to one of the modules.
- In this case, (Category:People born in Hagåtña (Q32154055) has pl+pt and en label; Q32421041 has ru and only ru label). Will merge after testing.
{{CityLocative|Category:Hagåtña, Guam|lang=pl}}
ok{{CityLocative|Category:Hagåtña, Guam|lang=fr}}
neither-pl-nor-euCityLocativefromCat:"lang 'fr' not implemented yet"
...after adding a fr label to the Russian-only Q item, CityLocative displayed immediately the extracted locative for Hagåtña in French, so the series of calls work as expected.
- Same as above, except they have not been set up yet, and therefore display...P1?
{{CityLocative|Category:Hagåtña, Guam|lang=eo}}
in Hagåtña, Guam{{CityLocative|Category:Hagåtña, Guam|lang=sq}}
in Hagåtña, Guam
- QID exists, but language has no description, no page linked to it, and no label for the QID (not even in English, to which it defaults)
{{CityLocative|Category:Hagåtña, Guam|lang=zu}}
in Hagåtña, Guam
Dependencies
[edit]- {{CityLocativefromCat}} — template used to extract the locative form of a given city in a given language from Birth/Death category names.
See also
[edit]- Template:CityLocative/testcases — sandbox used to test the template
- Template:CityLocative/examples — template used to generate a list of examples in the documentation
- Related template: Template:CountryLocative