Template:CityLocative/doc

From Wikimedia Commons, the free media repository
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.

Caption text
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

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]