İçeriğe atla

Modül:Wd/belge

Sanarşiv, sanat ansiklopedisi

Bu Modül:Wd belgelendirme sayfası içindir

Şablon:Module ratingŞablon:Hatnote This modül is intended to fetch data from Wikidata with or without a link to the connected Sanarsiv article.

The modül is under development and is not yet complete. Of the available datatypes, it currently supports strings, quantities, monolingual text, time and globe coordinates.

{{Şablon:Hashinvoke:wd|function|flag1|flag2|flag3|arg1|arg2|arg3}}

  • property
    Returns the requested property or list of properties from the given item.
  • qualifier
    Returns the requested qualifier or list of qualifiers from the given property of the given item.
  • propertyWithQualifier
    Returns the requested property and its requested qualifier or a list thereof from the given item, with the qualifier formatted between parentheses behind the property and with units of measurement if applicable.
  • label
    Returns the label of the given item or property.

Parameters

[kaynağı düzenle]
  • linked
    Creates a link to the Sanarsiv article that is connected to the property or qualifier if it exists.
    If this parameter is omitted, then the plain property or qualifier value will be returned.
  • unit
    Appends the unit of measurement to the value if applicable.
    For units, the linked flag behaves slightly different in that it links the unit of measurement where it would normally link the property or qualifier value.
    If this flag is used with time datatypes, then it makes the returned dates more verbose (e.g. 11 February 1731). Either way, dates in the Julian calendar stored with a precision of days through millenniums will have "Julian" attached to the output, where without the unit flag it will look like 1731-2-11/Julian (which may be split off using the {{#titleparts}} template function).
    If this flag is used with globe coordinate datatypes, then it adds the various symbols to the returned value (e.g. 52°5'3"N, 4°19'3"E). Without the unit flag, globe coordinates will look like 52/5/3/N/4/19/3/E (which may be split into parts using the {{#titleparts}} template function).
  • short (Şablon:Renk when used)
    Gets the short name (P1813) of any item returned if they have one attached. If that is not the case, then the default behaviour of returning the item label will occur.
  • single
    Returns only a single value instead of multiple (if multiple claims match). The returned value is the first match found from the best-ranked claims.
  • One of:
    best (default)
    preferred
    normal
    deprecated
    Sets a rank constraint for the selected claims.
    The latter three can be followed by a + or a -, e.g.normal+ or preferred-, where the first selects claims with a 'normal' rank or higher and the second selects claims with a 'preferred' rank or lower. To get claims of all ranks, use preferred- or deprecated+.
    Output is always sorted from highest rank to lowest (regardless of this flag being set).
  • One of:
    future
    current
    former
    Sets a time constraint for the selected claims. Uses the claims' qualifiers of start time (P580) and end time (P582) to determine if the claim is valid for the selected time period.
  • property | [<flags>] | [<item_id>] | <property_id>
    • <flags> (optional)
      A list of flags (see above).
    • <item_id> (optional, Şablon:Renk when used)
      Q-identifier of the item to be accessed (e.g. Q55).
      If this parameter is omitted, then the item connected to the current page will be used.
    • <property_id>
      P-identifier of the property to be accessed (e.g. P38).


  • qualifier | [<flags>] | [<item_id>] | <property_id> | [<claim_id_or_value>] | <qualifier_id>
    • <flags> (optional)
      A list of flags (see above).
    • <item_id> (optional, Şablon:Renk when used)
      Q-identifier of the item to be accessed (e.g. Q55).
      If this parameter is omitted, then the item connected to the current page will be used.
    • <property_id>
      P-identifier of the property to be accessed (e.g. P38).
    • <claim_id_or_value> (optional)
      Either the Q-identifier of the particular claim to be accessed (e.g. Q6655) or a literal value (i.e. string or quantity etc., no item label) equal to the claim to be accessed.
      Dates as literal values must be formatted year-month-day (e.g. 1731-2-11) for dates with a precision of days, year-month (e.g. 1731-2) for dates with a precision of months, and year (e.g. 1731) for dates of lesser precision without any spaces or leading zeros. Dates BCE require a minus sign in front of the year (e.g. -2950-1-31). Dates stored in the Julian calendar must have /Julian attached to the end (e.g. 1731-2-11/Julian). Decades like the 2010s must be given as 2010 (but the 2010s BCE as -2019), centuries like the 20th century as 1901 (but the 20th century BCE as -2000), and millenniums like the 3rd millennium as 2001 (but the 3rd millennium BCE as -3000).
      Globe coordinates as literal values must be formatted with forward slashes (i.e. /) between the parts and no symbols (e.g. 52/5/3/N/4/19/3/E) without any spaces or leading zeros.
      The special type 'no value' can be given by entering the empty string (i.e. ||) and the special type 'unknown value' can be given by entering a space (i.e. ||).
      If this parameter is omitted, then all claims (matching any other constraints) within the property will be accessed.
    • <qualifier_id>
      P-identifier of the qualifier to be accessed (e.g. P518).


  • propertyWithQualifier | [<flags>] | [<item_id>] | <property_id> | [<claim_id_or_value>] | <qualifier_id>
    This function is equivalent to qualifier, except that the property is also returned with the qualifier between parentheses behind it. It also enables the unit flag (see above).


  • label | [<flags>] | [<item_or_property_id>]
    • <flags> (optional)
      A list of flags (see above).
    • <item_or_property_id> (optional)
      Q-identifier of the item (e.g. Q55) or P-identifier of the property (e.g. P38) to be accessed.
      If this parameter is omitted, then the item connected to the current page will be used.
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P395 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|property|Q55|P395}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P1549 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|property|Q55|P1549}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


property with rank

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P38 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
best rank (default)
{{Şablon:Hashinvoke:wd|property|Q55|P38}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|best|Q55|P38}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|best|linked|Q55|P38}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
other ranks
{{Şablon:Hashinvoke:wd|property|preferred|Q55|P38}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|preferred-|linked|Q55|P38}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|normal+|Q55|P38}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|normal|Q55|P38}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


property with time constraint

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P38 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|property|normal+|current|Q55|P38}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|normal+|former|Q55|P38}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


property with short name

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P38 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|property|normal|current|short|Q55|P38}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|normal|current|short|linked|Q55|P38}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


property with unit

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P2884 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|property|unit|Q55|P2884}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|unit|linked|Q55|P2884}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


property with return of globe coordinate

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P625 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|property|Q55|P625}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|unit|Q55|P625}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|unit|linked|Q55|P625}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


property with return of single value

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P150 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|property|Q55|P150}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|single|Q55|P150}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


qualifier with rank

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P38 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P518 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
best rank (default)
{{Şablon:Hashinvoke:wd|qualifier|Q55|P38|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|qualifier|best|Q55|P38|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|qualifier|best|linked|Q55|P38|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
other ranks
{{Şablon:Hashinvoke:wd|qualifier|preferred|Q55|P38|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|qualifier|preferred-|linked|Q55|P38|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|qualifier|normal+|Q55|P38|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|qualifier|normal|Q55|P38|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


qualifier with time constraint

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P38 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P518 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|qualifier|normal+|current|Q55|P38|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|qualifier|normal+|former|Q55|P38|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


qualifier with claim ID

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P38 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), Q4917 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P518 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|qualifier|Q55|P38|Q4917|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|qualifier|linked|Q55|P38|Q4917|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


qualifier with literal value

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P2884 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), 230 volt, P2144 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|qualifier|Q55|P2884|230|P2144}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


qualifier with unit

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P2884 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), 230 volt, P2144 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|qualifier|unit|Q55|P2884|230|P2144}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|qualifier|unit|linked|Q55|P2884|230|P2144}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


qualifier with return of time

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P38 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), Q788472 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P582 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|qualifier|Q55|P38|Q788472|P582}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|qualifier|unit|Q55|P38|Q788472|P582}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


propertyWithQualifier

[kaynağı düzenle]
  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P2884 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P2144 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|property|Q55|P2884|P2144}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|linked|Q55|P2884|P2144}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


  • Q55 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P38 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P518 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|property|normal+|current|Q55|P38|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
{{Şablon:Hashinvoke:wd|property|normal+|current|short|linked|Q55|P38|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


If the module is transcluded on the Hollanda page (which is linked to Q55), then the Q55 can be omitted:

  • P38 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).), P518 (Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).): [[[:Şablon:Küçük büyük harfler]]]
{{Şablon:Hashinvoke:wd|property|normal+|current|P38|P518}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).


  • {{Şablon:Hashinvoke:wd|label|Q4917}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
  • {{Şablon:Hashinvoke:wd|label|linked|Q4917}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
  • {{Şablon:Hashinvoke:wd|label|short|Q4917}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
  • {{Şablon:Hashinvoke:wd|label|short|linked|Q4917}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
  • {{Şablon:Hashinvoke:wd|label|P38}}Lua hatası 621 satırında Modül:Wd: attempt to index field 'wikibase' (a nil value).
  • {{Wikidata}}, a user-friendly wrapper template for this module.