ഇത് ഘടകം:Location/ml എന്നതിന്റെ വിവരണതാൾ ആണ്

This is the documentation of Module:Location in English.

This module adds a referent to a location or administrative entity, for example it fetches ബെർലിൻ (Q64) as "Berlin, Germany".

Syntax തിരുത്തുക

  • On a sandbox page:
    {{#invoke:Location|debug|<Qid>|<Qid2>|lang=<code>}}
  • From another module:
    require('Module:Location').naming(<label>, _, <lang>, <Qid>, <Qid2>)
  • With syntax of Module:Wikidades#Function claim:
    case=location
    case=locationcontext

Parameters:

  • <Qid>, requested, is the Wikidata id of the location. With case=location only this parameter is used considering that the referent is not time dependent, that the current administrative structure is valid.
  • <Qid2>, optional, is the Wikidata id with a context date to be used for avoiding anachronistic references. With case=locationcontext this parameter is fetched from the current page.
  • <lang> is the language code, by default the language of local wiki.
  • <label>, used from another module, is used to avoid redundant referents.

When used with Module:Wikidades and case parameter, all parameters are obtained by that module.

It is not intented to be used with a template. Comment on the talk page if needed.

Data തിരുത്തുക

Data is fetched from Wikidata based on definition of രാജ്യം (P17). In cases with more detail, it uses Module:Wikidades function getParentValues with definition of സ്ഥിതിചെയ്യുന്ന ഭരണസ്ഥലം (P131) used recursively. See the documentation Module:Wikidades#Function getParentValues. In you found any supposed inconsistency, check first how these properties are defined on Wikidata.

If the referent is conditioned to a context date, for example in biographical infobox with case=locationcontext, this date is obtained from the current page:

The context date is compared with the referent date that indicates from when the referent is valid. The referent date can be defined in the criteria by language, for example the countries of UK are considered from year 1000. Otherwise:

  • From table anachronic_date with particular cases.
  • From property Creació (P571).
  • By default 1945.

Criteria തിരുത്തുക

The general referent is the country. Criteria may change in some cases according to style rules in each language. Currently languages available are: Catalan, English. You can request specific rules for other languages on the talk page.

Rules applied in English are:

Otherwise by രാജ്യം (P17).

There is an exception table for cases where any referent is considered unnecessary as too obvious. Currently if avoids "Washington, D.C., USA".


"https://ml.wikipedia.org/w/index.php?title=ഘടകം:Location/ml/വിവരണം&oldid=3453467" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്