మూస:Wikidata/doc: కూర్పుల మధ్య తేడాలు

noinclude {{documentation subpage}}
fixed Wd/doc to not include it directly into other docs
పంక్తి 1:
<noinclude>{{documentation subpage}}</noinclude>
{{Template shortcut|Wd}}
<!-- Original documentation located at [[:en:Template:Wd/doc]]. -->
{{Lua|Module:Wd}}
This {{lcfirst:{{NAMESPACE}}}} is intended to fetch data from '''[[Wikidata]]''' with or without a link to the connected Wikipedia article and with many other features. {{{intro|}}}
{{Hatnote|For a version of this template with an opt-in toggle, see {{t|WikidataOI}}.}}
 
{{Wd/doc|seealso=*{{t|WikidataOI}}, the same template but including an opt-in toggle.}}
== Usage ==
{{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}{{0|&ensp;}}{{Background color|#cddae3|<nowiki>|command1|flag1a|flag1b|flag1c</nowiki>}}{{0|&ensp;}}{{Background color|#dce5ec|<nowiki>|command2|flag2a|flag2b|flag2c</nowiki>}}{{0|&ensp;}}{{Background color|#c1debf|<nowiki>|flag0a|flag0b|flag0c</nowiki>}}{{0|&ensp;}}{{Background color|#ffdfc4|<nowiki>|arg1|arg2|arg3</nowiki>}}}}
 
== Commands ==
The commands (<code>{{Background color|#cddae3|command1}}</code>, <code>{{Background color|#dce5ec|command2}}</code>, ...) determine what kind of values are returned. One call can only contain commands from a single class{{module other|, except that the main class is always used together with one other class}}.
 
=== Claim class ===
The claim class commands can be combined, meaning that multiple commands of different types from this class can be given at one time.
 
Combine multiple commands into one call to this {{lcfirst:{{NAMESPACE}}}}, instead of making multiple calls to this {{lcfirst:{{NAMESPACE}}}} with one command each, to be sure that all the returned pieces of information belong to each other.
{| class="wikitable"
|-
! Type
! Command
! Returns
! Basic usage
! Description
|-
| rowspan="2" style="text-align:right;" | I
! style="text-align:left;" | <code>property</code>
| <small>first match{{efn|Returns only a single value instead of multiple (if multiple claims or statements match). The returned value is the first match found from the best-ranked claims.|name=fmc}}</small>
| {{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}|property|P1|{{{extraparams|}}}}}
| rowspan="2" | Returns the requested property – or list of properties – from the current item-entity or from a given entity.
|-
! style="text-align:left;" | <code>properties</code>
| <small>all matches</small>
| {{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}|properties|P1|{{{extraparams|}}}}}
|-
| colspan="5" |
|-
| rowspan="2" style="text-align:right;" | II
! style="text-align:left;" | <code>qualifier</code>
| <small>first match{{efn|name=fmc}}</small>
| {{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}|qualifier|P1|P2|{{{extraparams|}}}}}
| rowspan="2" | Returns the requested qualifier – or list of qualifiers – from the given property of the current item-entity or of a given entity.
Unlike the other claim class commands, this command can be given multiple times to retrieve different qualifiers in one call.
|-
! style="text-align:left;" | <code>qualifiers</code>
| <small>all matches</small>
| {{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}|qualifiers|P1|P2|{{{extraparams|}}}}}
|-
| colspan="5" |
|-
| rowspan="2" style="text-align:right;" | III
! style="text-align:left;" | <code>reference</code>
| <small>first match{{efn|name=fmc}}</small>
| {{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}|reference|P1|{{{extraparams|}}}}}
| rowspan="2" | Returns a reference – or list of references – from the given property of the current item-entity or of a given entity.{{efn|Only references that are valid according to the [[d:Help:Sources|Wikidata guideline on sources]] are returned (i.e. those that have at least a property {{wpl|P248}} or {{wpl|P854}}).}}
|-
! style="text-align:left;" | <code>references</code>
| <small>all matches</small>
| {{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}|references|P1|{{{extraparams|}}}}}
|-
| colspan="5" |
|-
| colspan="5" style="text-align:left;" | {{notelist}}
|}
 
=== General class ===
The general class commands cannot be combined.
{| class="wikitable"
|-
! Type
! Command
! Returns
! Basic usage
! Description
|-
| style="text-align:right;" | I
! style="text-align:left;" | <code>label</code>
|
| {{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}|label{{{extraparams|}}}}}
| Returns the label of the current item-entity or of a given entity if present.
|-
| colspan="5" |
|-
| style="text-align:right;" | II
! style="text-align:left;" | <code>title</code>
|
| {{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}|title{{{extraparams|}}}}}
| Returns the title of the page linked to the current item-entity or to a given item-entity if such page exists.
|-
| colspan="5" |
|-
| rowspan="2" style="text-align:right;" | III
! style="text-align:left;" | <code>alias</code>
| <small>first match{{efn|Returns only a single value instead of multiple (if multiple values are present).|name=fmg}}</small>
| {{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}|alias{{{extraparams|}}}}}
| rowspan="2" | Returns an alias – or list of aliases – of the current item-entity or of a given entity if present.
|-
! style="text-align:left;" | <code>aliases</code>
| <small>all matches</small>
| {{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}|aliases{{{extraparams|}}}}}
|-
| colspan="5" |
|-
| rowspan="2" style="text-align:right;" | IV
! style="text-align:left;" | <code>badge</code>
| <small>first match{{efn|name=fmg}}</small>
| {{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}|badge{{{extraparams|}}}}}
| rowspan="2" | Returns a badge – or list of badges – for the page linked to the current item-entity or to a given item-entity if such page exists.
|-
! style="text-align:left;" | <code>badges</code>
| <small>all matches</small>
| {{tnull|{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}|badges{{{extraparams|}}}}}
|-
| colspan="5" |
|-
| colspan="5" style="text-align:left;" | {{notelist}}
|}
{{{section|}}}
== Flags ==
The following (optional) flags are available which can be used to alter this {{lcfirst:{{NAMESPACE}}}}'s behaviour. They must be given after the (first) {{Background color|#cddae3|command}} and before the other {{Background color|#ffdfc4|arguments}}. For convenience, empty flags (i.e. <code>||</code>) are allowed and will simply be ignored.
 
=== Command flags ===
These flags (<code>{{Background color|#cddae3|flag1*}}</code>, <code>{{Background color|#dce5ec|flag2*}}</code>, ...) apply to the command that precedes them directly.
{| class="wikitable"
|-
! Flag
! Description
|-
! style="text-align:left;" | <code>linked</code>
| Creates a link to the Wikipedia article that is connected to the property or qualifier if it exists. Also links units of measurement that may be appended to values.
 
If this parameter is omitted, then the plain property or qualifier value will be returned.
|-
! style="text-align:left;" | <code>short</code>
| '''<code>{{color|red|[EXPENSIVE]}}</code>''' Returns the {{wpl|P1813}} of any entity returned if they have one attached. If that is not the case, then the default behaviour of returning the entity's label will occur.
|-
! style="text-align:left;" | <code>raw</code>
| Returns the raw value if applicable.
 
If this flag is used with item or property datatypes, then this will return the Q-identifier or P-identifier.
 
For quantity datatypes, this flag will strip off any units of measurement, unless the <code>unit</code> flag is also given in which case the raw unit of measurement (its Q-identifier) will be returned.
 
If this flag is used with time datatypes, then the returned date will be in the format of <code>yyyy-mm-dd</code> (e.g. <code>1731-02-11</code>), or <code>yyyy-mm</code>, or <code>yyyy</code> depending on the date's precision. Dates in the Julian calendar stored with a precision of days through millenniums will have <code>/Julian</code> attached to the output (e.g. <code>1731-02-11/Julian</code>, which may be split off using the [[mw:Help:Extension:ParserFunctions#.23titleparts|{{tlf|#titleparts}} template function]]).
 
If it is used with globe coordinate datatypes, then it replaces the various symbols with forward slashes in the returned value (e.g. <code>52/5/3/N/4/19/3/E</code>, which may be split into parts using the [[mw:Help:Extension:ParserFunctions#.23titleparts|{{tlf|#titleparts}} template function]]).
|-
! style="text-align:left;" | <code>multilanguage</code>
| Returns monolingual text values in any available language, not just the current wiki's language.
|-
! style="text-align:left;" | <code>unit</code>
| Returns only the unit of measurement for quantity datatypes.
|}
 
=== Configuration flags ===
These flags (<code>{{Background color|#c1debf|flag0*}}</code>) are general configuration flags and can be given anywhere after the first command (but before the other arguments).
{| class="wikitable"
|-
!
! Flag
! Command class
! Description
|-
| rowspan="4" style="text-align:right;" | {{nowrap|Combination of:}}
! style="text-align:left;" | <code>preferred</code>
| rowspan="4" | [[#Claim class|claim]]
| rowspan="4" | Sets a rank constraint for the selected claim(s).
 
The first three set the ranks for which claim(s) will be selected. They can optionally be followed by a <code>+</code> or a <code>-</code>, e.g. <code>normal+</code> or <code>preferred-</code>, 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 <code>preferred-</code> or <code>deprecated+</code>.
 
If the <code>best</code> flag is given additionally, then only the claims that have the highest rank amongst the selected claims will be returned.
 
The default is <code>normal+|best</code> (so by default claims with a 'deprecated' rank are never returned).
 
Output is always sorted from highest rank to lowest (regardless of any of these flags being set).
|-
! style="text-align:left;" | <code>normal</code>
|-
! style="text-align:left;" | <code>deprecated</code>
|-
! style="text-align:left;" | <code>best</code>
|-
| rowspan="3" style="text-align:right;" | {{nowrap|Combination of:}}
! style="text-align:left;" | <code>future</code>
| rowspan="3" | claim
| rowspan="3" | Sets a time constraint for the selected claim(s). Uses the claims' qualifiers of {{wpl|P580}} and {{wpl|P582}} to determine if the claim is valid for the selected time period(s).
 
The default is <code>future|current|former</code> (so by default claims that are valid for any time period are returned).
|-
! style="text-align:left;" | <code>current</code>
|-
! style="text-align:left;" | <code>former</code>
|-
|
! style="text-align:left;" | <code>mdy</code>
| claim
| Returns date values in month-day-year order instead of day-month-year order.
|-
|
! style="text-align:left;" | <code>single</code>
| claim
| Returns only a single claim instead of multiple (if multiple claims match). Has no effect if the <code>property</code>/<code>properties</code> command is given, in which case this flag would be redundant.
|-
|
! style="text-align:left;" | <code>sourced</code>
| claim
| Only returns claims that have at least one valid reference.
|-
| rowspan="2" style="text-align:right;" | {{nowrap|One of:}}
! style="text-align:left;" | <code>edit</code>
| rowspan="2" | claim, [[#General class|general]]
| rowspan="2" | Adds a clickable icon after the output that may be used by readers to edit the returned claim on Wikidata.
 
If <code>edit@end</code> is used, then the icon will be placed at the end of the line for neat alignment in infoboxes.
|-
! style="text-align:left;" | <code>edit@end</code>
|}
 
== Arguments ==
The arguments determine the sources from which all the returned values are fetched.
 
=== Positional arguments ===
The following table shows the available positional arguments (<code>{{Background color|#ffdfc4|arg*}}</code>) in their fixed order. For each command, the applicable set of arguments is marked. If multiple commands are given, then the applicable set is the union of the individual sets. For instance, if the commands <code>properties</code> and <code>qualifiers</code> have been given, then at least both the arguments <code>property_id</code> and <code>qualifier_id</code> should be given as well.
 
More than one <code>qualifier</code>/<code>qualifiers</code> command can be given. The order in which these commands with their flags are given matches the order in which the respective <code>qualifier_id</code> arguments are given.
{| class="wikitable" style="background:none;border:none;"
|- style="text-align:center;"
| rowspan="2" style="background:none;border:none;" |
| colspan="2" | <small>''(required)''</small>
| <small style="color:#777;">''(optional)''</small>
| <small style="color:#777;">(optional)</small>
| <small>(required)</small>
| <small style="color:#777;">(optional)</small>
| <small>(required)</small>
| <small>(required)</small>
| rowspan="2" style="background:none;border:none;" |
|-
| colspan="2" |
|
|
|
|
|
|
|-
| style="border-right:2px solid #000;" | ''<code><nowiki>{{</nowiki>{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}</code>''
| colspan="2" style="border-right:2px solid #000;" | ''<code>commands</code>''
| style="border-right:2px solid #000;" | ''<code style="color:#777;">flags</code>''
! style="border-right:2px solid #000;background-color:#ffdfc4;" | <code style="color:#777;">entity_id</code>
! style="border-right:2px solid #000;background-color:#ffdfc4;" | <code>property_id</code>
! style="border-right:2px solid #000;background-color:#ffdfc4;" | <code style="color:#777;">raw_value</code>
! style="border-right:2px solid #000;background-color:#ffdfc4;" | <code>qualifier_id</code>
! style="background-color:#ffdfc4;" | <code>qualifier_id</code>
| ''<code><nowiki>}}</nowiki></code>''
|-
| rowspan="12" colspan="2" style="background:none;border:none;" |
| rowspan="2" colspan="2" style="border-style:dashed;border-left-color:blue;border-bottom-color:blue;" |
|
|
|
|
|
| rowspan="12" style="background:none;border:none;" |
|- style="text-align:center;"
| rowspan="2" | <code>label</code>, <code>title</code>,<br /><code>alias</code>/<code>aliases</code>,<br /><code>badge</code>/<code>badges</code>
| rowspan="2" style="border-top:none;border-bottom:none;" |
| rowspan="2" style="border-top:none;border-bottom:none;" |
| rowspan="2" style="border-top:none;border-bottom:none;" |
| rowspan="2" style="border-top:none;border-bottom:none;" |
|-
| rowspan="2" colspan="2" style="border-style:dashed;border-left-color:blue;border-bottom-color:blue;" |
|- style="text-align:center;"
| rowspan="2" colspan="2" style="border-top:none;" | <code>property</code>/<code>properties</code>
| rowspan="2" style="border-top:none;border-bottom:none;" |
| rowspan="2" style="border-top:none;border-bottom:none;" |
| rowspan="2" style="border-top:none;border-bottom:none;" |
|-
| rowspan="2" colspan="2" style="border-style:dashed;border-left-color:blue;border-bottom-color:blue;" |
|- style="text-align:center;"
| rowspan="2" colspan="3" style="border-top:none;" | <code>reference</code>/<code>references</code>
| rowspan="2" style="border-top:none;border-bottom:none;" |
| rowspan="2" style="border-top:none;border-bottom:none;" |
|-
| rowspan="2" colspan="2" style="border-style:dashed;border-left-color:blue;border-bottom-color:blue;" |
|- style="text-align:center;"
| rowspan="2" colspan="4" style="border-top:none;" | <code>qualifier</code>/<code>qualifiers</code>
| rowspan="2" style="border-top:none;border-bottom:none;" |
|-
| rowspan="2" colspan="2" style="border-style:dashed;border-left-color:blue;border-bottom-color:blue;" |
|- style="text-align:center;"
| rowspan="2" colspan="5" style="border-top:none;" | <code>qualifier</code>/<code>qualifiers</code> ''(optional 2<sup>nd</sup>, 3<sup>rd</sup>, etc.)''
|-
| rowspan="2" colspan="2" style="border:none;" |
|-
| colspan="5" style="border:none;" |
|}
 
Below follows a description of all positional arguments.
 
{| class="wikitable"
|-
! Argument
! Description
|-
! style="text-align:left;" | <code style="color:#777;">entity_id</code>
 
<small style="font-weight:normal;">(optional)</small>
| '''<code>{{color|red|[EXPENSIVE]}}</code>''' '''Q-identifier''' of the item-entity to be accessed (e.g. <code>Q55</code>), or '''P-identifier''' (or an available '''[[#Property aliases|alias]]''') of the property-entity to be accessed preceded by the <code>Property:</code> prefix (e.g. <code>Property:P38</code>).
 
In case of the [[#General class|general class commands]], the <code>Property:</code> prefix may be omitted for P-identifiers (e.g. <code>P38</code>).
 
If this parameter is omitted, then the item-entity connected to the current page will be used (except when <code>eid=</code> is given, see below). If this parameter is given, but empty (i.e. <code>&#124;&#124;</code>), then due to its position it will be interpreted as an [[#Flags|empty flag]] and thus be ignored, giving the same result as if it were omitted. See also the [[#Named arguments|<code>eid=</code> named argument]] below that can be used to give an entity-ID too, but without the item-entity connected to the current page being used as a result in this specific case.
|-
! style="text-align:left;" | <code>property_id</code>
| '''P-identifier''' (or an available '''[[#Property aliases|alias]]''') of the property within the entity to be accessed, without the <code>Property:</code> prefix (e.g. <code>P35</code>).
|-
! style="text-align:left;" | <code style="color:#777;">raw_value</code>
 
<small style="font-weight:normal;">(optional)</small>
| Either the '''Q-identifier''' equal to the property value (e.g. <code>Q29574</code>) or a '''literal value''' (i.e. string or quantity etc., ''no entity label'') equal to the raw property value of the particular claim to be accessed.
 
Dates as literal values must be formatted <code>yyyy-mm-dd</code> (e.g. <code>1731-02-11</code>) for dates with a precision of days, <code>yyyy-mm</code> (e.g. <code>1731-02</code>) for dates with a precision of months, and <code>yyyy</code> (e.g. <code>1731</code>) for dates of lesser precision. Dates BCE require a minus sign in front of the year (e.g. <code>-2950-01-31</code>). Dates stored in the Julian calendar must have <code>/Julian</code> attached to the end (e.g. <code>1731-02-11/Julian</code>). Decades like the 2010s must be given as <code>2010</code> (but the 2010s BCE as <code>-2019</code>), centuries like the 20th century as <code>1901</code> (but the 20th century BCE as <code>-2000</code>), and millenniums like the 3rd millennium as <code>2001</code> (but the 3rd millennium BCE as <code>-3000</code>).
 
Globe coordinates as literal values must be formatted with forward slashes (i.e. <code>/</code>) between the parts and no symbols (e.g. <code>52/5/3/N/4/19/3/E</code>) ''without any spaces or leading zeros''.
 
The special type &#39;'''no value'''&#39; can be given by entering the empty string (i.e. <code>&#124;&#124;</code>) and the special type &#39;'''unknown value'''&#39; can be given by entering a single underscore (i.e. <code>&#124;_&#124;</code>). To get a literal underscore, escape it by placing a backslash <code>\</code> directly in front of it (i.e. <code>\_</code>); the same holds for a literal backslash (i.e. <code>\\</code>).
 
To get a literal vertical bar <code>|</code>, use <code>{{tl|!}}</code> or <code>&amp;#124;</code>.
 
If this parameter is omitted, then all claims (matching any other constraints) within the property will be accessed.
|-
! style="text-align:left;" | <code>qualifier_id</code>
| '''P-identifier''' (or an available '''[[#Property aliases|alias]]''') of the qualifier within the entity to be accessed, without the <code>Property:</code> prefix (e.g. <code>P580</code>).
|}
 
=== Named arguments ===
Below follows a description of all named arguments, which are name-value pairs (i.e. <code>|name=value</code>). These are all optional and can be given anywhere {{module other|after the first command|inside the call}}.
 
{| class="wikitable"
|-
! Argument
! Description
|-
! style="text-align:right;" | <code>eid=</code>
| '''<code>{{color|red|[EXPENSIVE]}}</code>''' This argument offers the same functionality as the [[#Positional arguments|positional argument <code>entity_id</code>]] (e.g. <code>&#124;eid=Q55</code>), with one difference: if the argument is given but its value is left empty (i.e. <code>&#124;eid=</code>), then no entity is accessed at all instead of the item-entity connected to the current page. This is useful in some cases where a variable entity-ID is expected, but where the item-entity connected to the current page should not be accessed as the default.
 
Also, the <code>Property:</code> prefix may be omitted for P-identifiers (e.g. <code>&#124;eid=P38</code>) for all commands.
 
This argument only has effect if the positional argument <code>entity_id</code> is omitted.
|-
! style="text-align:right;" | <code>''<qualifier>''=</code>
| The <code>''<qualifier>''</code> is a placeholder for a set of arguments that determine which claims should be accessed based on qualifier value, analogous to the pair of [[#Positional arguments|positional arguments <code>property_id</code> and <code>raw_value</code>]] that determine access based on property value.
 
As such, <code>''<qualifier>''</code> is any qualifier's '''P-identifier''' (or an available '''[[#Property aliases|alias]]''') without the <code>Property:</code> prefix (e.g. <code>P518</code>). Its value is either the '''Q-identifier''' equal to one of the qualifier values (e.g. <code>Q27561</code>) or a '''literal value''' (i.e. string or quantity etc., ''no entity label'') equal to one of the raw qualifier values of the particular claim to be accessed. The value format is the same as for the positional argument <code>raw_value</code>. The special type &#39;'''no value'''&#39; given by the empty string also matches the total absence within the claim of the particular qualifier.
 
Example: <code>|P518=Q27561</code>
 
Multiple arguments of this type can be given to match multiple qualifier values simultaneously for each claim.
|}
 
=== Property aliases ===
Property aliases are other names for P-identifiers that can be used instead. The following property aliases (which are [[Case sensitivity|case-sensitive]]) are currently available:
 
{| class="wikitable"
|-
! Alias
! <sub>translates<br /></sub><sup>to</sup>
! P-identifier
|- <!-- property aliases purely for convenience -->
| coord ||style="text-align: center;"| → || [[d:Property:P625|P625]]
|-
!colspan="3"|
|- <!-- property aliases used by the module itself -->
| image ||style="text-align: center;"| → || [[d:Property:P18|P18]]
|-
| author ||style="text-align: center;"| → || [[d:Property:P50|P50]]
|-
| publisher ||style="text-align: center;"| → || [[d:Property:P123|P123]]
|-
| importedFrom ||style="text-align: center;"| → || [[d:Property:P143|P143]]
|-
| statedIn ||style="text-align: center;"| → || [[d:Property:P248|P248]]
|-
| pages ||style="text-align: center;"| → || [[d:Property:P304|P304]]
|-
| language ||style="text-align: center;"| → || [[d:Property:P407|P407]]
|-
| publicationDate ||style="text-align: center;"| → || [[d:Property:P577|P577]]
|-
| startTime ||style="text-align: center;"| → || [[d:Property:P580|P580]]
|-
| endTime ||style="text-align: center;"| → || [[d:Property:P582|P582]]
|-
| chapter ||style="text-align: center;"| → || [[d:Property:P792|P792]]
|-
| retrieved ||style="text-align: center;"| → || [[d:Property:P813|P813]]
|-
| referenceURL ||style="text-align: center;"| → || [[d:Property:P854|P854]]
|-
| sectionVerseOrParagraph ||style="text-align: center;"| → || [[d:Property:P958|P958]]
|-
| archiveURL ||style="text-align: center;"| → || [[d:Property:P1065|P1065]]
|-
| title ||style="text-align: center;"| → || [[d:Property:P1476|P1476]]
|-
| formatterURL ||style="text-align: center;"| → || [[d:Property:P1630|P1630]]
|-
| quote ||style="text-align: center;"| → || [[d:Property:P1683|P1683]]
|-
| shortName ||style="text-align: center;"| → || [[d:Property:P1813|P1813]]
|-
| archiveDate ||style="text-align: center;"| → || [[d:Property:P2960|P2960]]
|-
| inferredFrom ||style="text-align: center;"| → || [[d:Property:P3452|P3452]]
|-
| typeOfReference ||style="text-align: center;"| → || [[d:Property:P3865|P3865]]
|-
| column ||style="text-align: center;"| → || [[d:Property:P3903|P3903]]
|}
 
== Advanced usage ==
The layout of the output from (a combination of) commands that have both a singular and a plural form (e.g. <code>property</code>/<code>properties</code>) can be customized by using a number of named flags, which are name-value pairs (i.e. <code>|flag=value</code>), that can be given anywhere {{module other|after the first command|inside the call}}. The table below shows the available named flags.
 
To insert a space at the beginning or end of a <code>value</code>, use an underscore <code>_</code>. To get a literal underscore, escape it by placing a backslash <code>\</code> directly in front of it (i.e. <code>\_</code>); the same holds for a literal backslash (i.e. <code>\\</code>). To get a literal vertical bar <code>|</code>, use <code>{{tl|!}}</code> or <code>&amp;#124;</code>.
 
{| class="wikitable"
|-
! Named flag
! Default value
! Default condition
! Description
|-
! rowspan="6" style="text-align:right;" | <code>format=</code>
| <code>%p[%s][%r]</code>
| if the <code>property</code>/<code>properties</code> command '''was''' given and the <code>qualifier</code>/<code>qualifiers</code> command '''was not''' given
| rowspan="6" | The format of a single claim. The available parameters are as follows.
 
{| class="wikitable"
|-
! Parameter
! Description
|-
| <code>%p</code>
| The claim's property value applied by the <code>property</code>/<code>properties</code> command.
|-
| <code>%q1</code>, <code>%q2</code>, <code>%q3</code>, ...
| The claim's qualifier value or list of qualifier values applied by the corresponding <code>qualifier</code>/<code>qualifiers</code> command.
|-
| <code>%q</code>
| The collection of the qualifier values applied by each <code>qualifier</code>/<code>qualifiers</code> command (i.e. <code>%q1</code> + <code>%q2</code> + <code>%q3</code> + ...). If only one <code>qualifier</code>/<code>qualifiers</code> command was given, then this parameter is equivalent to <code>%q1</code>.
|-
| <code>%r</code>
| The claim's reference value or list of reference values applied by the <code>reference</code>/<code>references</code> command.
|-
| <code>%a</code>
| The entity's alias applied by the <code>alias</code>/<code>aliases</code> command.
|-
| <code>%b</code>
| The entity's page badge applied by the <code>badge</code>/<code>badges</code> command.
|-
| <code>%s</code>
| The movable separator placeholder. This is a special parameter that is not applied by a command, but instead is filled automatically between each pair of claims (if a list of claims is returned). This is handy in case a reference is returned as well, since it allows the reference to be placed after the punctuation mark as prescribed by [[Wikipedia:Manual of Style#Punctuation and footnotes|Wikipedia's manual of style]]. The default value is a comma (<code>,</code>) and can be overridden with the <code>sep%s</code> flag (see below).
|}
 
Optional parameters can be given by encapsulating them between square brackets: <code>[...]</code>. All content between the square brackets is only displayed if a value for each optional parameter that has been defined between the same brackets has been found. Optional content can also be nested.
 
To use two opening square brackets that directly follow each other (i.e. <code>{{!((}}</code>), use <code>{{tl|!((}}</code>.
 
At least one parameter must be given that is not optional, while the <code>%s</code> parameter must always be defined as optional.
 
To get a literal <code>[</code>, <code>]</code>, <code>%</code> or <code>\</code>, escape the character by placing a backslash <code>\</code> directly in front of it (e.g. <code>\%</code>). See also the description directly above this table for more.
|-
| <code>%q[%s][%r]</code>
| if the <code>property</code>/<code>properties</code> command '''was not''' given and the <code>qualifier</code>/<code>qualifiers</code> command '''was''' given
|-
| <code>%r</code>
| if '''only''' the <code>reference</code>/<code>references</code> command was given
|-
| <code><nowiki>%p[ <span style="font-size:85%">(%q)</span>][%s][%r]</nowiki></code>
| if the <code>property</code>/<code>properties</code> command '''was''' given and the <code>qualifier</code>/<code>qualifiers</code> command '''was''' given
|-
| <code>%a[%s]</code>
| if the <code>alias</code>/<code>aliases</code> command was given
|-
| <code>%b[%s]</code>
| if the <code>badge</code>/<code>badges</code> command was given
|-
| colspan="4" |
|-
! rowspan="2" style="text-align:right;" | <code>sep=</code>
| <code>{{dfn|_|title=space}}</code>
| <span style="color:#777;">''default''</span>
| rowspan="2" | The fixed separator between each pair of claims.
|-
| {{dfn|<code>{{0|&ensp;}}</code>|title=empty}}
| if '''only''' the <code>reference</code>/<code>references</code> command was given '''without''' the <code>raw</code> flag
|-
| colspan="4" |
|-
! rowspan="2" style="text-align:right;" | <code>sep%s=</code>
| <code>,</code>
| <span style="color:#777;">''default''</span>
| rowspan="2" | The movable separator between each pair of claims. This will be the value of the <code>%s</code> parameter applied to all claims except for the last in the list.
|-
| <code>;</code>
| if the <code>property</code>/<code>properties</code> command '''was not''' given and the <code>qualifier</code>/<code>qualifiers</code> command '''was''' given
|-
| colspan="4" |
|-
! style="text-align:right;" | <code>sep%q1=</code>, <code>sep%q2=</code>, <code>sep%q3=</code>, ...
| <code>{{dfn|,_|title=comma space}}</code>
| <span style="color:#777;">''default''</span>
| The separator between each pair of qualifiers of a single claim. These are the value separators for the <code>%q1</code>, <code>%q2</code>, <code>%q3</code>, ... parameters.
If only one <code>qualifier</code>/<code>qualifiers</code> command was given, then the <code>sep%q1</code> flag is equivalent to <code>sep%q</code>.
|-
| colspan="4" |
|-
! rowspan="2" style="text-align:right;" | <code>sep%q=</code>
| <code>{{dfn|,_|title=comma space}}</code>
| if '''exactly one''' <code>qualifier</code>/<code>qualifiers</code> command was given
| rowspan="2" | The separator between each set of qualifiers of a single claim. This is the value separator for the <code>%q</code> parameter.
If only one <code>qualifier</code>/<code>qualifiers</code> command was given, then this flag is equivalent to <code>sep%q1</code>.
|-
| <code>{{dfn|{{;}}_|title=semicolon space}}</code>
| if '''more than one''' <code>qualifier</code>/<code>qualifiers</code> command was given
|-
| colspan="4" |
|-
! rowspan="2" style="text-align:right;" | <code>sep%r=</code>
| {{dfn|<code>{{0|&ensp;}}</code>|title=empty}}
| <span style="color:#777;">''default''</span>
| rowspan="2" | The separator between each pair of references of a single claim. This is the value separator for the <code>%r</code> parameter.
|-
| <code>{{dfn|_|title=space}}</code>
| if the <code>raw</code> flag '''was''' given for the <code>reference</code>/<code>references</code> command
|-
| colspan="4" |
|-
! style="text-align:right;" | <code>punc=</code>
| {{dfn|<code>{{0|&ensp;}}</code>|title=empty}}
| <span style="color:#777;">''default''</span>
| A punctuation mark placed at the end of the output. This will be placed on the <code>%s</code> parameter applied to the last claim in the list.
This allows any references to be placed after the punctuation mark when the output is used as part of a sentence.
|}
 
== Examples ==
<!--
Original documentation located at [[:en:Module:Wd/doc]].
 
This documentation is included by wrapper templates like [[:en:Template:Wikidata]] and [[:en:Template:WikidataOI]] as well, where these examples also function as a way to verify that those templates are working correctly. This is done by calling the respective PAGENAME.
 
It makes the examples section a bit bloated, though. For a bit of convenience, the following table row can be used as a basic template for any new example (note the 'xxx' that need to be substituted):
 
|-
| style="color:#777;font-size:small;" | Pxxx = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Pxxx|fetch=true}}"<br />
:↓<br />
[{{smallcaps|xxx}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|Pxxx{{{extraparams|}}}}}<br />
:↓<br />
:{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Pxxx|fetch=true}}
| Description...
 
-->
{| class="wikitable"
|-
! Parameters and output types
! Example
! Description
|-
| style="color:#777;font-size:small;" | [[d:Q55|Q55]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", [[d:Property:P395|P395]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P395|fetch=true}}"<br />
:↓<br />
[{{smallcaps|string}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P395|{{{extraparams|}}}}}<br />
:↓<br />
:{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P395|fetch=true}}
| Gets a literal string value.
|-
| style="color:#777;font-size:small;" | P395 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P395|fetch=true}}"<br />
:↓<br />
[{{smallcaps|string}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|P395|{{{extraparams|}}}}}<br />
:↓<br />
:{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P395|fetch=true}}
| If the {{lcfirst:{{NAMESPACE}}}} is transcluded on the {{ {{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|title|linked|Q55}} page (which is linked to Q55), then the <code>Q55</code> can be omitted.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P395 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P395|fetch=true}}"<br />
:↓<br />
[{{smallcaps|string}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|'''eid{{=}}Q55'''|P395|{{{extraparams|}}}}}<br />
:↓<br />
:{{ {{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|eid=Q55|P395|fetch=true}}
| An entity-ID can also be given using the <code>eid=</code> argument.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P395 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P395|fetch=true}}"<br />
:↓<br />
[{{smallcaps|string}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|'''edit'''|Q55|P395|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|edit|Q55|P395}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|edit|Q55|P395|fetch=true}}}}
| Adds a clickable icon that may be used to edit the returned value on Wikidata.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P395 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P395|fetch=true}}"<br />
:↓<br />
[{{smallcaps|string}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|'''edit@end'''|Q55|P395|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|edit@end|Q55|P395}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|edit@end|Q55|P395|fetch=true}}}}
| Places the edit icon at the end of the line.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", [[d:Property:P1082|P1082]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''property'''|'''normal+'''|Q55|P1082|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|normal+|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|normal+|Q55|P1082|fetch=true}}}}
| Gets a single property value from claims with a 'normal' rank or higher.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''properties'''|normal+|Q55|P1082|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|normal+|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|normal+|Q55|P1082|fetch=true}}}}
| Gets multiple property values from claims with a 'normal' rank or higher.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}", [[d:Property:P585|P585]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P585|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}], [{{smallcaps|time}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|'''qualifier'''|normal+|Q55|P1082|'''P585'''|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|normal+|Q55|P1082|P585}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|normal+|Q55|P1082|P585|fetch=true}}}}
| Gets a single qualifier value for each claim, additional to the property value.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}", P585 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P585|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}], [{{smallcaps|time}}], [{{smallcaps|reference}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|'''references'''|normal+|Q55|P1082|P585|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|references|normal+|Q55|P1082|P585}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|references|normal+|Q55|P1082|P585|fetch=true}}}}
| Gets references for each claim.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}], [{{smallcaps|reference}}]
| <code>A total of {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|references|Q55|P1082|{{{extraparams|}}}}} people live in the Netherlands.</code><br />
:↓<br />
:A total of {{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|references|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|references|Q55|P1082|fetch=true}}}} people live in the Netherlands.
| Gets a property with its references.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}], [{{smallcaps|reference}}]
| <code>The Netherlands has a population of {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|references|Q55|P1082|'''punc{{=}}.'''|{{{extraparams|}}}}}</code>
:↓<br />
:The Netherlands has a population of {{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|references|Q55|P1082|punc=.}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|references|Q55|P1082|punc=.|fetch=true}}}}
| Adds a punctuation mark at the end of the output, in front of the references.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}", P585 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P585|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}], [{{smallcaps|time}}], [{{smallcaps|reference}}]
| <code>'''<nowiki><ul></nowiki>'''{{tlf|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|references|normal+|Q55|P1082|P585|'''<nowiki>format=<li>%p[%r][<ul><li>%q</li></ul>]</li></nowiki>'''|{{{extraparams|}}}}}'''<nowiki></ul></nowiki>'''</code><br />
:↓<br />
<ul>{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|references|normal+|Q55|P1082|P585|format=<li>%p[%r][<ul><li>%q</li></ul>]</li>}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|references|normal+|Q55|P1082|P585|format=<li>%p[%r][<ul><li>%q</li></ul>]</li>|fetch=true}}}}</ul>
| Returns the output in a custom format.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}", P585 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P585|fetch=true}}"<br />
:↓<br />
[{{smallcaps|time}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''qualifier'''|normal+|Q55|P1082|P585|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|qualifier|normal+|Q55|P1082|P585}}|{{{{lcfirst:{{BASEPAGENAME}}}}|qualifier|normal+|Q55|P1082|P585|fetch=true}}}}
| Gets a single qualifier per claim, by default for multiple matching claims.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}", P585 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P585|fetch=true}}"<br />
:↓<br />
[{{smallcaps|time}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|qualifier|normal+|'''single'''|Q55|P1082|P585|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|qualifier|normal+|single|Q55|P1082|P585}}|{{{{lcfirst:{{BASEPAGENAME}}}}|qualifier|normal+|single|Q55|P1082|P585|fetch=true}}}}
| To get a single qualifier for only a single claim, give the <code>single</code> flag too so that only a single claim will be accessed.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}", P585 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P585|fetch=true}}"<br />
:↓<br />
[{{smallcaps|time}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|qualifier|Q55|P1082|'''{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082|fetch=true}}}}'''|P585|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|qualifier|Q55|P1082|{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}}}|P585}}|{{{{lcfirst:{{BASEPAGENAME}}}}|qualifier|Q55|P1082|{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082|fetch=true}}}}|P585|fetch=true}}}}
| Gets a qualifier from claims for which the (raw) property value matches a given literal value.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}", P585 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P585|fetch=true}}"<br />
:↓<br />
[{{smallcaps|time}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|qualifier|'''mdy'''|Q55|P1082|{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082|fetch=true}}}}|P585|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|qualifier|mdy|Q55|P1082|{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}}}|P585}}|{{{{lcfirst:{{BASEPAGENAME}}}}|qualifier|mdy|Q55|P1082|{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082|fetch=true}}}}|P585|fetch=true}}}}
| Gets dates in month-day-year order.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}", P585 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P585|fetch=true}}"<br />
:↓<br />
[{{smallcaps|time}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|qualifier|'''raw'''|Q55|P1082|{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082|fetch=true}}}}|P585|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|qualifier|raw|Q55|P1082|{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}}}|P585}}|{{{{lcfirst:{{BASEPAGENAME}}}}|qualifier|raw|Q55|P1082|{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082|fetch=true}}}}|P585|fetch=true}}}}
| Gets a raw date value.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}"<br />
:↓<br />
[{{smallcaps|reference}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''references'''|Q55|P1082|'''{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082|fetch=true}}}}'''|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|references|Q55|P1082|{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}}}}}|{{{{lcfirst:{{BASEPAGENAME}}}}|references|Q55|P1082|{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082|fetch=true}}}}|fetch=true}}}}
| Gets the references from a particular claim.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1082 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1082|fetch=true}}"<br />
:↓<br />
[{{smallcaps|reference}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''references'''|'''raw'''|Q55|P1082|'''{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082|fetch=true}}}}'''|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|references|raw|Q55|P1082|{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}}}}}|{{{{lcfirst:{{BASEPAGENAME}}}}|references|raw|Q55|P1082|{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|normal|Q55|P1082|fetch=true}}}}|fetch=true}}}}
| Gets references from a particular claim in their raw form.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", [[d:Property:P1081|P1081]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1081|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}], [{{smallcaps|reference}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|'''references'''|Q55|P1081|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|references|Q55|P1081}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|references|Q55|P1081|fetch=true}}}}
| Gets properties from each claim with any references they have.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1081 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1081|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}], [{{smallcaps|reference}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|references|'''sourced'''|Q55|P1081|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|references|sourced|Q55|P1081}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|references|sourced|Q55|P1081|fetch=true}}}}
| Only gets properties from claims that have at least one reference.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", [[d:Property:P2855|P2855]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P2855|fetch=true}}", [[d:Property:P518|P518]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P518|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''qualifier'''|Q55|P2855|P518|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|qualifier|Q55|P2855|P518}}|{{{{lcfirst:{{BASEPAGENAME}}}}|qualifier|Q55|P2855|P518|fetch=true}}}}
| Gets a single qualifier value (for each matching claim).
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P2855 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P2855|fetch=true}}", P518 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P518|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''qualifiers'''|Q55|P2855|P518|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|qualifiers|Q55|P2855|P518}}|{{{{lcfirst:{{BASEPAGENAME}}}}|qualifiers|Q55|P2855|P518|fetch=true}}}}
| Gets multiple qualifier values (for each matching claim).
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P2855 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P2855|fetch=true}}", P518 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P518|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}], [{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''properties'''|qualifiers|Q55|P2855|P518|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifiers|Q55|P2855|P518}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifiers|Q55|P2855|P518|fetch=true}}}}
| Gets multiple property values along with multiple qualifier values.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P2855 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P2855|fetch=true}}", P518 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P518|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}], [{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifiers|Q55|P2855|P518|'''sep{{=}}_+_'''|'''sep%s{{=}}'''|'''sep%q{{=}}_/_'''|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifiers|Q55|P2855|P518|sep=_+_|sep%s=|sep%q=_/_}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifiers|Q55|P2855|P518|sep=_+_|sep%s=|sep%q=_/_|fetch=true}}}}
| Returns the output with custom separators.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", [[d:Property:P35|P35]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P35|fetch=true}}", [[d:Property:P580|P580]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P580|etch={{{fetch|}}}}}", [[d:Property:P582|P582]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P582|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}], [{{smallcaps|time}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|'''qualifier'''|'''qualifier'''|normal+|Q55|P35|'''P580'''|'''P582'''|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582|fetch=true}}}}
| Gets two different qualifier values for each claim.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P35 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P35|fetch=true}}", P580 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P580|etch={{{fetch|}}}}}", P582 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P582|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}], [{{smallcaps|time}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582|'''sep%q{{=}}_–_'''|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582|sep%q=_–_}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582|sep%q=_–_|fetch=true}}}}
| Returns the output with a custom separator.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P35 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P35|fetch=true}}", P580 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P580|etch={{{fetch|}}}}}", P582 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P582|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}], [{{smallcaps|time}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582|'''<nowiki>format=%p[ <span style="font-size:85%">(%q1[ – %q2])</span>][%s][%r]</nowiki>'''|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582|format=%p[ <span style="font-size:85%">(%q1[ – %q2])</span>][%s][%r]}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582|format=%p[ <span style="font-size:85%">(%q1[ – %q2])</span>][%s][%r]|fetch=true}}}}
| Returns the output in a custom format instead of with a custom separator.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P35 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P35|fetch=true}}", [[d:Q29574|Q29574]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q29574}}", P580 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P580|fetch=true}}", P582 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P582|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}], [{{smallcaps|time}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|'''raw'''|qualifier|normal+|Q55|P35|'''Q29574'''|P580|P582|<nowiki>format=%p[ <span style="font-size:85%">(%q1[ – %q2])</span>][%s][%r]</nowiki>|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|raw|qualifier|normal+|Q55|P35|Q29574|P580|P582|format=%p[ <span style="font-size:85%">(%q1[ – %q2])</span>][%s][%r]}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifier|raw|qualifier|normal+|Q55|P35|Q29574|P580|P582|format=%p[ <span style="font-size:85%">(%q1[ – %q2])</span>][%s][%r]|fetch=true}}}}
| Gets a property with qualifiers from claims for which the property matches a given Q-identifier, with one of the qualifier values in its raw form.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", [[d:Property:P38|P38]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P38|fetch=true}}", P518 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P518|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifiers|normal+|'''current'''|Q55|P38|P518|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifiers|normal+|current|Q55|P38|P518}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifiers|normal+|current|Q55|P38|P518|fetch=true}}}}
| Gets claims that are currently valid.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P38 = {{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P38|fetch=true}}", P518 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P518|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|'''linked'''|qualifiers|normal+|current|Q55|P38|P518|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|linked|qualifiers|normal+|current|Q55|P38|P518}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|linked|qualifiers|normal+|current|Q55|P38|P518|fetch=true}}}}
| Gets claims with linked property values.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P38 = {{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P38|fetch=true}}", P518 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P518|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifiers|'''linked'''|normal+|current|Q55|P38|P518|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifiers|linked|normal+|current|Q55|P38|P518}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|qualifiers|linked|normal+|current|Q55|P38|P518|fetch=true}}}}
| Gets claims with linked qualifier values.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P38 = {{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P38|fetch=true}}", P518 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P518|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|'''linked'''|'''short'''|qualifiers|'''linked'''|normal+|current|Q55|P38|P518|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|linked|short|qualifiers|linked|normal+|current|Q55|P38|P518}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|linked|short|qualifiers|linked|normal+|current|Q55|P38|P518|fetch=true}}}}
| Gets claims with linked property and qualifier values, with short property values wherever available.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P38 = {{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P38|fetch=true}}", [[d:Q4917|Q4917]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q4917|fetch=true}}", P518 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P518|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|qualifiers|normal+|current|Q55|P38|'''Q4917'''|P518|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|qualifiers|normal+|current|Q55|P38|Q4917|P518}}|{{{{lcfirst:{{BASEPAGENAME}}}}|qualifiers|normal+|current|Q55|P38|Q4917|P518|fetch=true}}}}
| Gets qualifiers from claims for which the (raw) property value matches a given Q-identifier.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P38 = {{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P38|fetch=true}}", P518 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P518|fetch=true}}", [[d:Q27561|Q27561]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q27561|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|normal+|current|Q55|P38|'''P518{{=}}Q27561'''|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|normal+|current|Q55|P38|P518=Q27561}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|normal+|current|Q55|P38|P518=Q27561|fetch=true}}}}
| Gets properties from claims for which a (raw) qualifier value matches a given Q-identifier.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P38 = {{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P38|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|normal+|'''former'''|Q55|P38|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|normal+|former|Q55|P38}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|normal+|former|Q55|P38|fetch=true}}}}
| Gets claims that were valid in the past.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P38 = {{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P38|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|'''raw'''|normal+|former|Q55|P38|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|raw|normal+|former|Q55|P38}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|raw|normal+|former|Q55|P38|fetch=true}}}}
| Gets raw property values.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P38 = {{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P38|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|properties|raw|'''linked'''|normal+|former|Q55|P38|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|properties|raw|linked|normal+|former|Q55|P38}}|{{{{lcfirst:{{BASEPAGENAME}}}}|properties|raw|linked|normal+|former|Q55|P38|fetch=true}}}}
| Gets raw property values that are linked to Wikidata.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", [[d:Property:P1549|P1549]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1549|fetch=true}}"<br />
:↓<br />
[{{smallcaps|monolingual text}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P1549|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P1549}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P1549|fetch=true}}}}
| Gets a monolingual text value in the current wiki's language.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P1549 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P1549|fetch=true}}", [[d:Property:P407|P407]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P407|fetch=true}}", [[d:Q36846|Q36846]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q36846|fetch=true}}"<br />
:↓<br />
[{{smallcaps|monolingual text}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|'''multilanguage'''|Q55|P1549|P407{{=}}Q36846|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|multilanguage|Q55|P1549|P407=Q36846}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|multilanguage|Q55|P1549|P407=Q36846|fetch=true}}}}
| Gets a monolingual text value in any available language.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", [[d:Property:P2884|P2884]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P2884|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P2884|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P2884}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P2884|fetch=true}}}}
| Gets a quantity value with its associated unit of measurement.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P2884 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P2884|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|'''linked'''|Q55|P2884|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|linked|Q55|P2884}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|linked|Q55|P2884|fetch=true}}}}
| Gets a quantity value with a linked unit of measurement.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P2884 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P2884|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|'''raw'''|Q55|P2884|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|Q55|P2884}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|Q55|P2884|fetch=true}}}}
| Gets a raw quantity value.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P2884 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P2884|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|'''unit'''|Q55|P2884|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|unit|Q55|P2884}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|unit|Q55|P2884|fetch=true}}}}
| Gets only the unit of measurement.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P2884 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P2884|fetch=true}}"<br />
:↓<br />
[{{smallcaps|quantity}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|unit|'''raw'''|Q55|P2884|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|unit|raw|Q55|P2884}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|unit|raw|Q55|P2884|fetch=true}}}}
| Gets the raw unit of measurement.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", [[d:Property:P625|P625]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P625|fetch=true}}"<br />
:↓<br />
[{{smallcaps|globe coordinate}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P625|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P625}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|P625|fetch=true}}}}
| Gets a globe coordinate value.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P625 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P625|fetch=true}}"<br />
:↓<br />
[{{smallcaps|globe coordinate}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|'''linked'''|Q55|P625|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|linked|Q55|P625}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|linked|Q55|P625|fetch=true}}}}
| Gets a linked globe coordinate value.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P625 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P625|fetch=true}}"<br />
:↓<br />
[{{smallcaps|globe coordinate}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|'''raw'''|Q55|P625|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|Q55|P625}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|Q55|P625|fetch=true}}}}
| Gets a raw globe coordinate value.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P625 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P625|fetch=true}}"<br />
:↓<br />
[{{smallcaps|globe coordinate}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|'''coord'''|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|coord}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|Q55|coord|fetch=true}}}}
| A property alias can be used instead of the P-identifier.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", [[d:Property:P41|P41]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P41|fetch=true}}"<br />
:↓<br />
[{{smallcaps|commons media}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|'''linked'''|Q55|P41|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|linked|Q55|P41}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|linked|Q55|P41|fetch=true}}}}
| Gets a media file name and links to it on Commons.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}", P41 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P41|fetch=true}}"<br />
:↓<br />
[{{smallcaps|commons media}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|'''raw'''|Q55|P41|'''<nowiki>format=\[\[File:%p {{!}} thumb {{!}} left\]\]</nowiki>'''|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|raw|Q55|P41|format=\[\[File:%p{{!}} thumb {{!}} left\]\]}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|raw|Q55|P41|format=\[\[File:%p{{!}} thumb {{!}} left\]\]|fetch=true}}}}
| A Commons media file can be included on the page as-is by omitting the <code>linked</code> and <code>raw</code> flags, but by using the <code>raw</code> flag it can be freely formatted.
|-
| style="color:#777;font-size:small;" | [[d:Q915684|Q915684]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q915684|fetch=true}}", [[d:Property:P2534|P2534]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P2534|fetch=true}}"<br />
:↓<br />
[{{smallcaps|math}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|Q915684|P2534|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|Q915684|P2534}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|Q915684|P2534|fetch=true}}}}
| Gets a mathematical expression.
|-
| style="color:#777;font-size:small;" | [[d:Q6256|Q6256]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q6256|fetch=true}}", [[d:Property:P3896|P3896]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P3896|fetch=true}}"<br />
:↓<br />
[{{smallcaps|geographic shape}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|property|'''linked'''|Q6256|P3896|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|property|linked|Q6256|P3896}}|{{{{lcfirst:{{BASEPAGENAME}}}}|property|linked|Q6256|P3896|fetch=true}}}}
| Gets a geographic shape data file name and links to it on Commons.
|-
| style="color:#777;font-size:small;" | Q4917 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q4917|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''label'''|Q4917|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|label|Q4917}}|{{{{lcfirst:{{BASEPAGENAME}}}}|label|Q4917|fetch=true}}}}
| Gets an item's label.
|-
| style="color:#777;font-size:small;" | Q4917 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q4917|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|'''short'''|'''linked'''|Q4917|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|label|short|linked|Q4917}}|{{{{lcfirst:{{BASEPAGENAME}}}}|label|short|linked|Q4917|fetch=true}}}}
| Gets an item's short and linked label.
|-
| style="color:#777;font-size:small;" | P38 = {{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P38|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P38|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|label|P38}}|{{{{lcfirst:{{BASEPAGENAME}}}}|label|P38|fetch=true}}}}
| Gets a property's label.
|-
| style="color:#777;font-size:small;" | P38 = {{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|P38|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|'''linked'''|P38|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|label|linked|P38}}|{{{{lcfirst:{{BASEPAGENAME}}}}|label|linked|P38|fetch=true}}}}
| Gets a property's label that is linked to Wikidata.
|-
| style="color:#777;font-size:small;" | [[d:Q776|Q776]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q776|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q776|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|label|Q776}}|{{{{lcfirst:{{BASEPAGENAME}}}}|label|Q776|fetch=true}}}}
| Gets an item's label.
|-
| style="color:#777;font-size:small;" | Q776 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q776|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|'''linked'''|Q776|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|label|linked|Q776}}|{{{{lcfirst:{{BASEPAGENAME}}}}|label|linked|Q776|fetch=true}}}}
| Gets an item's linked label.
|-
| style="color:#777;font-size:small;" | <br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|label|Q776}}|{{{{lcfirst:{{BASEPAGENAME}}}}|label|Q776|fetch=true}}}}
| If the {{lcfirst:{{NAMESPACE}}}} is transcluded on the {{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|title|linked|Q776}}|{{{{lcfirst:{{BASEPAGENAME}}}}|title|linked|Q776}}}} page (which is linked to Q776), then the <code>Q776</code> can be omitted.
|-
| style="color:#777;font-size:small;" | <br />
:↓<br />
[{{smallcaps|entity label}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|'''raw'''|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|label|raw|Q776}}|{{{{lcfirst:{{BASEPAGENAME}}}}|label|raw|Q776|fetch=true}}}}
| If just the <code>label</code> command with the <code>raw</code> flag is given, then the Q-identifier of the item connected to the current page is returned.
|-
| style="color:#777;font-size:small;" | Q776 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q776|fetch=true}}"<br />
:↓<br />
[{{smallcaps|page title}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''title'''|Q776|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|title|Q776}}|{{{{lcfirst:{{BASEPAGENAME}}}}|title|Q776|fetch=true}}}}
| Gets the title of the page on the current wiki that is linked to the given item.
|-
| style="color:#777;font-size:small;" | Q776 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q776|fetch=true}}"<br />
:↓<br />
[{{smallcaps|page title}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|title|'''linked'''|Q776|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|title|linked|Q776}}|{{{{lcfirst:{{BASEPAGENAME}}}}|title|linked|Q776|fetch=true}}}}
| Gets the linked title of the page on the current wiki that is linked to the given item.
|-
| style="color:#777;font-size:small;" | <br />
:↓<br />
[{{smallcaps|page title}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|title|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|title|Q776}}|{{{{lcfirst:{{BASEPAGENAME}}}}|title|Q776|fetch=true}}}}
| If the {{lcfirst:{{NAMESPACE}}}} is transcluded on the {{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|title|linked|Q776}}|{{{{lcfirst:{{BASEPAGENAME}}}}|title|linked|Q776}}}} page (which is linked to Q776), then the <code>Q776</code> can be omitted.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity alias}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''alias'''|Q55|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|alias|Q55}}|{{{{lcfirst:{{BASEPAGENAME}}}}|alias|Q55|fetch=true}}}}
| Gets one of an item's aliases.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity alias}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''aliases'''|Q55|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|aliases|Q55}}|{{{{lcfirst:{{BASEPAGENAME}}}}|aliases|Q55|fetch=true}}}}
| Gets all of an item's aliases.
|-
| style="color:#777;font-size:small;" | Q55 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q55|fetch=true}}"<br />
:↓<br />
[{{smallcaps|entity alias}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|alias|'''linked'''|Q55|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|alias|linked|Q55}}|{{{{lcfirst:{{BASEPAGENAME}}}}|alias|linked|Q55|fetch=true}}}}
| Gets a linked alias from an item.
|-
| style="color:#777;font-size:small;" | <br />
:↓<br />
[{{smallcaps|entity alias}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|alias|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|alias|Q55}}|{{{{lcfirst:{{BASEPAGENAME}}}}|alias|Q55|fetch=true}}}}
| If the {{lcfirst:{{NAMESPACE}}}} is transcluded on the {{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|title|linked|Q55}}|{{{{lcfirst:{{BASEPAGENAME}}}}|title|linked|Q55}}}} page (which is linked to Q55), then the <code>Q55</code> can be omitted.
|-
| style="color:#777;font-size:small;" | [[d:Q2|Q2]] = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q2|fetch=true}}"<br />
:↓<br />
[{{smallcaps|page badge}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|'''badges'''|Q2|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|badges|Q2}}|{{{{lcfirst:{{BASEPAGENAME}}}}|badges|Q2|fetch=true}}}}
| Gets the badges for the page on the current wiki that is linked to the given item.
|-
| style="color:#777;font-size:small;" | Q2 = "{{{{{prename_code|}}}{{lcfirst:{{BASEPAGENAME}}}}|label|Q2|fetch=true}}"<br />
:↓<br />
[{{smallcaps|page badge}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|badges|'''raw'''|Q2|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|badges|raw|Q2}}|{{{{lcfirst:{{BASEPAGENAME}}}}|badges|raw|Q2|fetch=true}}}}
| Gets the raw badges for the page on the current wiki that is linked to the given item.
|-
| style="color:#777;font-size:small;" | <br />
:↓<br />
[{{smallcaps|page badge}}]
| {{tnull|{{{prename|}}}{{lcfirst:{{BASEPAGENAME}}}}|badges|{{{extraparams|}}}}}<br />
:↓<br />
:{{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|badges|Q2}}|{{{{lcfirst:{{BASEPAGENAME}}}}|badges|Q2|fetch=true}}}}
| If the {{lcfirst:{{NAMESPACE}}}} is transcluded on the {{module other|{{#invoke:{{lcfirst:{{BASEPAGENAME}}}}|title|linked|Q2}}|{{{{lcfirst:{{BASEPAGENAME}}}}|title|linked|Q2}}}} page (which is linked to Q2), then the <code>Q2</code> can be omitted.
|}
 
=== Example references ===
{{Reflist}}
 
== See also ==
{{module other|*{{t|Wikidata}}, a user-friendly wrapper template for this module.
*{{t|WikidataOI}}, a wrapper template for this module that adds an opt-in toggle.|{{{seealso|}}}
*{{t|Wikidata entity link}} or redirect {{t|Q}}), to add a Wikidata entity link to a Wikipedia page
*{{t|Wikidata property link}} or redirect {{t|Property}}, to add a Wikidata property link to a Wikipedia page
*{{t|Wikidata property}}, to add a Wikidata property {{t|side box}} to a Wikipedia page or template documentation
*{{t|Uses Wikidata}}, to add a Wikidata property box to the documentation of a template or module
*{{t|Tracks Wikidata}}, to add a Wikidata property box to the documentation of a template, module, or category
*[[Module:Wd]], the source module that is called by this template.}}
*{{t|Pageid to title}}, to get a page title using its local page id, rather than Wikidata
 
{{#ifeq:{{PAGENAME}}|{{ROOTPAGENAME}}|{{module other|[[Category:Wikidata modules]][[Category:Modules using data from Wikidata]]|[[Category:Wikidata templates]]}}}}
"https://te.wikipedia.org/wiki/మూస:Wikidata/doc" నుండి వెలికితీశారు