Template:Wikidata

被永久保护的模板
维基百科,自由的百科全书
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

此模板旨在从维基数据获取数据链接至维基百科条目,附带多个功能。

用法

{{wikidata|命令1|标记1a|标记1b|标记1c|命令2|标记2a|标记2b|标记2c|标记0a|标记0b|标记0c|参数1|参数2|参数3}}

命令

命令(命令1, 命令2, ...)确定返回值的类型。一次调用只能包含单个类的命令。

声称类

声称类命令可以组合,意味着可以一次给出该类不同类型的多个命令。

将多个命令组合到一个对此template的调用中,而非使用单个命令多次调用此template,以确保所有返回的信息属于彼此。

类型 命令 返回 基本用法 描述
I property 首个匹配[a] {{wikidata|property|P1}} 从当前项目-实体或给定实体返回请求的属性或属性列表。
properties 所有匹配 {{wikidata|properties|P1}}
II qualifier 首个匹配[a] {{wikidata|qualifier|P1|P2}} 从当前项目-实体的给定属性或给定实体返回请求的限定符或限定符列表。

与其他声称类命令不同,此命令可以多次给出以便在一次调用中检索不同的限定符。

qualifiers 所有匹配 {{wikidata|qualifiers|P1|P2}}
III reference 首个匹配[a] {{wikidata|reference|P1}} 从当前项目-实体的给定属性或给定实体返回参考或参考列表。[b]
references 所有匹配 {{wikidata|references|P1}}
  1. ^ 1.0 1.1 1.2 仅返回单个值而不是多个(如果多个声称或语句匹配)。返回的值是从等级最高的声称中找到的第一个匹配项。
  2. ^ 仅返回根据维基数据来源指南有效的参考(即至少具有 载于 (P248)来源网址 (P854) 属性的参考)

通用类

通用类命令无法组合。

类型 命令 返回 基本用法 描述
I label {{wikidata|label}} 如果存在的话,返回当前项目-实体或给定实体的标签。
II title {{wikidata|title}} 如果存在此类页面的话,返回链接到当前项目实体或给定项目实体的页面标题。
III description {{wikidata|description}} 如果存在的话,返回当前项目-实体或给定实体的描述。
IV alias 首个匹配[a] {{wikidata|alias}} 如果存在的话,返回当前项目-实体或给定实体的别名或别名列表。
aliases 所有匹配 {{wikidata|aliases}}
V badge 首个匹配[a] {{wikidata|badge}} 如果存在此类页面的话,返回链接到当前项目-实体或给定项目-实体的徽章或徽章列表。
badges 所有匹配 {{wikidata|badges}}
  1. ^ 1.0 1.1 如果存在多个值的话,仅返回单个值。


标记

以下(可选)标记可用于更改此template的行为。它们必须在(第一个)命令和另一个参数之前给出。

为方便起见,允许使用空标志(即||),这种写法会被忽略。

命令标记

这些标记(标记1*, 标记2*, ...)适用于直接位于它们前面的命令。

标记 描述
linked 如果存在的话,创建指向维基百科条目的链接,该条目连接到属性或限定符。还可链接至度量单位(可附加值)。

如果省略此参数,则将返回纯属性或限定符值。

short [昂贵] 如果存在的话,返回任意实体的 简称 (P1813)

如果不是这种情况,则默认返回实体的标签。

raw 如果适用,返回原始值。

如果此标记与项目或属性数据类型一起使用,则返回Q标识符或P标识符。

对于数量数据类型,此标记将移除任何度量单位,除非给出 unit 标记,在这种情况下将返回原始度量单位(其Q标识符)。

如果此标记与时间数据类型一起使用,则返回的日期将采用 yyyy-mm-dd(如 1731-02-11 )或 yyyy-mmyyyy 格式,具体取决于日期的精度。要使用儒略历日期可将 /Julian 附加到输出(如 1731-02-11/Julian,可以使用{{#titleparts}} 模板功能分成几个部分)。

如果它与地球坐标数据类型一起使用,则它将在返回值中用正斜杠替换各种符号(如 52/5/3/N/4/19/3/E,可以使用{{#titleparts}} 模板功能分成几个部分)。

multilanguage 返回任何一种可用语言的文本值,不局限于当前维基语言。
unit 仅返回数量数据类型的度量单位。

配置标记

这些标记(flag0*)是通用配置标记,可以在第一个命令之后的任意地方给出(但需在其他参数前)。

标记 命令类 描述
组合 preferred 声称 为所选声称设定等级约束。

前三个标记设定将选择约束的等级,可选择在后面添加 +-,例如 normal+preferred-,其中前者选择具有“正常”(normal)等级“或更高”等级的声称,后者选择具有“首选”(preferred)等级“或更低”等级的声称。要得到各个等级的声称,使用 preferred-deprecated+

如果另外给出 best 标记,那么只返回所选声称中等级最高的声称。

默认为 normal+|best(因此默认情况下,永远不会返回具有“已弃用”(deprecated)等级的声称)。

无论是否设置了这些标记,始终按从高到低的等级输出。

normal
deprecated
best
组合 future 声称 为所选声称设置时间约束。使用 始於 (P580)終於 (P582) 声称限定符来确定声称是否对所选时间段有效。

默认为 future|current|former(因此默认情况下,返回对任何时间段有效的声称)。

current
former
single 声称 如果有多个声称匹配的话,仅返回单个声称。如果给出了 property/properties 命令,则此标记无效。在这种情况下,该标记是多余的。
sourced 声称 仅返回至少具有一个有效参考的声称。
单一 edit 声称、通用 在输出后添加可点击图标,读者可以使用该图标编辑维基数据上返回的声称。

如果使用 edit@end ,则图标将放置于行尾,以便在信息框中整齐排列。

edit@end

参数

参数确定抓取的所有返回值的来源。

位置参数

下表按固定顺序显示了可用的位置参数(参数*)。对于每个命令,都会标记适用的参数集。如果给出了多个命令,则适用的参数集是各集合的并集。例如,如果已给出命令 propertiesqualifiers,那么至少应给出 property_idqualifier_id 两个参数。

可以给出多个 qualifier/qualifiers 命令。这些带有标记的命令的顺序与给定的相应 qualifier_id 参数的顺序相匹配。

(必要) (可选) (可选) (必要) (可选) (必要) (必要)
{{wikidata 命令 标记 entity_id property_id raw_value qualifier_id qualifier_id }}
label, title,
description,
alias/aliases,
badge/badges
property/properties
reference/references
qualifier/qualifiers
qualifier/qualifiers (可选 2nd, 3rd 等)

下面是所有位置参数的描述。

参数 描述
entity_id

(optional)

[昂贵] 要访问的项目实体的Q标识符(如 Q55)或要访问的属性-实体的带由前缀Property:P标识符(或是可用的别名)(如 Property:P38)。

如果是通用类命令,可以省略P标识符前缀Property:(如 P38)。

如果省略此参数,则使用连接到当前页面的项目-实体(除非给出 eid=,见下文)。如果给出此参数但为空(如 ||),那么依据它的位置,此字段会被解释为空标记,因此被忽略。另见下面的eid= 命名参数,也可用于提供实体ID,但不会出现连接到当前页面的项目-实体被用作此特定情况的结果。

property_id 要访问的实体内的属性的P标识符(或是可用的别名),无前缀 Property:(如 P35)。
raw_value

(optional)

Either the Q标识符 equal to the property value (e.g. Q29574) 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 yyyy-mm-dd (e.g. 1731-02-11) for dates with a precision of days, yyyy-mm (e.g. 1731-02) for dates with a precision of months, and yyyy (e.g. 1731) for dates of lesser precision. Dates BCE require a minus sign in front of the year (e.g. -2950-01-31). Dates stored in the Julian calendar must have /Julian attached to the end (e.g. 1731-02-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 single underscore (i.e. |_|). To get a literal underscore, escape it by placing a backslash \ directly in front of it (i.e. \_); the same holds for a literal backslash (i.e. \\).

要获得竖线 |,使用 {{!}}|

如果省略此参数, 将访问该属性中的所有声称(匹配任何其他约束)。

qualifier_id 要访问的实体内的限定符的P标识符(或是可用的别名),无前缀 Property:(如 P580)。

命名参数

下面是对所有命名参数的描述,这些参数是name-value对(即 |name=value)。这些都是可选的,可以在任何地方给出 inside the call。

参数 描述
eid= [EXPENSIVE] 该参数提供与 positional argument entity_id 相同的功能(如 |eid=Q55), 有一点不同:如果给出了参数但是它的值是空的(如 |eid=),那么不会有任何实体,而不是连接到当前页面的项目实体。这在需要变量entity-ID的某些情况下很有用,但是不应将连接到当前页面的项目实体作为默认值进行访问。

此外对于所有命令的P标识符,可以省略前缀 Property:(如 |eid=P38)。

仅当省略位置参数 entity_id 时,此参数才有效。

<qualifier>= The <qualifier> 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 property_id and raw_value that determine access based on property value.

As such, <qualifier> is any qualifier's P-identifier (or an available alias) without the Property: prefix (e.g. P518). Its value is either the Q-identifier equal to one of the qualifier values (e.g. Q27561) 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 raw_value. The special type 'no value' given by the empty string also matches the total absence within the claim of the particular qualifier.

Example: |P518=Q27561

Multiple arguments of this type can be given to match multiple qualifier values simultaneously for each claim.

属性别名

属性别名是可以替代使用的P标识符的名称。以下属性别名(大小写敏感)目前可用:

别名
P标识符
coord P625
image P18
author P50
publisher P123
importedFrom P143
statedIn P248
pages P304
language P407
publicationDate P577
startTime P580
endTime P582
chapter P792
retrieved P813
referenceURL P854
sectionVerseOrParagraph P958
archiveURL P1065
title P1476
formatterURL P1630
quote P1683
shortName P1813
archiveDate P2960
inferredFrom P3452
typeOfReference P3865
column P3903

高级用法

可以通过使用多个命名标志来定制具有单数和复数形式(e.g. property/properties)的(组合)命令的输出布局,这些标志是name-value对(即 |flag=value ),可以在调用内部的任意地方给出。下表列出了可用的命名标志。

要在 value 的开头或结尾插入空格,使用下划线 _。要获得文字下划线,请通过在其前面(i.e. \_)直接放置反斜杠\;对于文字反斜杠(i.e. \\)也是如此。要获得文字竖线|,使用{{!}} or &#124;

命名标志 默认值 默认条件 描述
format= %p[%s][%r] 如果 property/properties 命令 was given and the qualifier/qualifiers command was not given 单一声称的格式。可用参数如下。
参数 描述
%p 声称属性值由 property/properties 命令施加。
%q1, %q2, %q3, ... 声称的限定符值或限定符值列表由相应的 qualifier/qualifiers 命令施加。
%q The collection of the qualifier values applied by each qualifier/qualifiers command (i.e. %q1 + %q2 + %q3 + ...). If only one qualifier/qualifiers command was given, then this parameter is equivalent to %q1.
%r 声称的参考资料值或参考资料值列表由 reference/references 命令施加。
%a 实体的别名由 alias/aliases 命令施加。
%b 实体的页面badge badge/badges 命令施加。
%s 可移动的分隔符占位符。这是一个特殊参数,不由命令施加,但是在每对声称之间自动填写(如果返回索赔列表)。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's manual of style. 默认值为顿号(),可以使用 sep%s 标志覆盖(见下文)。

可选参数可以通过将它们封装在方括号之间来给出: [...]。仅当找到在相同括号之间定义的每个可选参数的值时,才会显示方括号之间的所有内容。可选内容也可以嵌套。

使用两个直接相互对应的开口方括号(i.e. [[),使用use {{!((}}

必须至少给出一个非可选参数,同时 %s 参数必须始终定义为可选参数。

To get a literal [, ], % or \, escape the character by placing a backslash \ directly in front of it (e.g. \%). 有关更多信息,另请参阅此表正上方的说明。

%q[%s][%r] 如果 property/properties command was not given and the qualifier/qualifiers command was given
%r 如果 only the reference/references command was given
%p[ <span style="font-size:85\%">(%q)</span>][%s][%r] 如果 property/properties command was given and the qualifier/qualifiers command was given
%a[%s] 如果 alias/aliases command was given
%b[%s] 如果 badge/badges command was given
sep= _ default The fixed separator between each pair of claims.
if only the reference/references command was given without the raw flag
sep%s= , default The movable separator between each pair of claims. This will be the value of the %s parameter applied to all claims except for the last in the list.
; 如果 property/properties command was not given and the qualifier/qualifiers command was given
sep%q1=, sep%q2=, sep%q3=, ... ,_ default 单个声称的每对限定符之间的分隔符。These are the value separators for the %q1, %q2, %q3, ... parameters.

If only one qualifier/qualifiers command was given, then the sep%q1 flag is equivalent to sep%q.

sep%q= ,_ 如果只有一个 qualifier/qualifiers 命令已经给出 The separator between each set of qualifiers of a single claim. This is the value separator for the %q parameter.

If only one qualifier/qualifiers command was given, then this flag is equivalent to sep%q1.

;_ 如果超过一个 qualifier/qualifiers 命令已经给出
sep%r= default 单个声称的每对引用之间的分隔符。这是值分隔符,为 %r 参数。
_ 如果 raw flag was given for the reference/references 命令
punc= default 标点符号位于输出的末尾。这将放在 %s 参数上,适用于列表中的最后一个声称。

当输出用作句子的一部分时,这允许在标点符号后面放置任何引用。

范例

参数和输出类型 例子 描述
Q55 = "荷蘭", P395 = "车牌代码"

[string]

{{wikidata|property|Q55|P395}}

NL
获取文字字符串值。
P395 = "车牌代码"

[string]

{{wikidata|property|P395}}

NL
如果 template is transcluded on the 荷兰 页面(链接到Q55),那么 Q55 可被忽略。
Q55 = "荷蘭", P395 = "NL"

[string]

{{wikidata|property|eid=Q55|P395}}

NL
也可以使用 eid= 参数给出entity-ID。
Q55 = "荷蘭", P395 = "车牌代码"

[string]

{{wikidata|property|edit|Q55|P395}}

NL在维基数据编辑
添加可点击的图标,用于编辑维基数据上的返回值。
Q55 = "荷蘭", P395 = "车牌代码"

[string]

{{wikidata|property|edit@end|Q55|P395}}

NL在维基数据编辑
将编辑图标置于行尾。
Q55 = "荷蘭", P1082 = "人口"

[quantity]

{{wikidata|property|normal+|Q55|P1082}}

17,590,672
从具有“normal”等级或更高等级的声称中获取单个属性值。
Q55 = "荷蘭", P1082 = "人口"

[quantity]

{{wikidata|properties|normal+|Q55|P1082}}

17,590,672、10,026,773、16,779,575、16,829,289、17,000,000、17,081,507、17,181,084、17,282,163、17,407,585
从具有“normal”等级或更高等级的声称中获取多个属性值。
Q55 = "荷蘭", P1082 = "人口", P585 = "时间点"

[quantity], [time]

{{wikidata|properties|qualifier|normal+|Q55|P1082|P585}}

17,590,672 (2022年1月1日)、10,026,773 (1950)、16,779,575 (2013)、16,829,289 (2014年8月26日)、17,000,000 (2016年3月21日)、17,081,507 (2017年1月1日)、17,181,084 (2018年1月1日)、17,282,163 (2019年1月1日)、17,407,585 (2020年1月1日)
获取每个声称的单个限定符值,属性值除外。
Q55 = "荷蘭", P1082 = "人口", P585 = "时间点"

[quantity], [time], [reference]

{{wikidata|properties|qualifier|references|normal+|Q55|P1082|P585}}

17,590,672 (2022年1月1日)[1]10,026,773 (1950)[2]16,779,575 (2013)[2]16,829,289 (2014年8月26日)[3]17,000,000 (2016年3月21日)[4]17,081,507 (2017年1月1日)[5]17,181,084 (2018年1月1日)[1]17,282,163 (2019年1月1日)[1]17,407,585 (2020年1月1日)[1]
获取每个声称的引用。
Q55 = "荷蘭", P1082 = "人口"

[quantity], [reference]

A total of {{wikidata|property|references|Q55|P1082}} people live in the Netherlands.

A total of 17,590,672[1] people live in the Netherlands.
获取具有引用的属性。
Q55 = "荷蘭", P1082 = "人口"

[quantity], [reference]

The Netherlands has a population of {{wikidata|property|references|Q55|P1082|punc=.}}

The Netherlands has a population of 17,590,672.[1]
在输出的末尾添加一个标点符号,位于引用之前。
Q55 = "荷蘭", P1082 = "人口", P585 = "时间点"

[quantity], [time], [reference]

<ul>{{wikidata|properties|qualifier|references|normal+|Q55|P1082|P585|format=<li>%p[%r][<ul><li>%q</li></ul>]</li>}}</ul>

  • 17,590,672[1]
    • 2022年1月1日
  • 10,026,773[2]
    • 1950
  • 16,779,575[2]
    • 2013
  • 16,829,289[3]
    • 2014年8月26日
  • 17,000,000[4]
    • 2016年3月21日
  • 17,081,507[5]
    • 2017年1月1日
  • 17,181,084[1]
    • 2018年1月1日
  • 17,282,163[1]
    • 2019年1月1日
  • 17,407,585[1]
    • 2020年1月1日
以自定义格式返回输出。
Q55 = "荷蘭", P1082 = "人口", P585 = "时间点"

[time]

{{wikidata|qualifier|normal+|Q55|P1082|P585}}

2022年1月1日;1950;2013;2014年8月26日;2016年3月21日;2017年1月1日;2018年1月1日;2019年1月1日;2020年1月1日
默认情况下,为每个声称获取一个限定符,用于多个匹配的声称。
Q55 = "荷蘭", P1082 = "人口", P585 = "时间点"

[time]

{{wikidata|qualifier|normal+|single|Q55|P1082|P585}}

2022年1月1日
要仅针对单个声称获得单个限定符,需同时提供 single 标志,以便仅访问单个声称。
Q55 = "荷蘭", P1082 = "人口", P585 = "时间点"

[time]

{{wikidata|qualifier|Q55|P1082|10026773|P585}}

1950
从与给定文字值匹配的(原始)属性值的声称中获取限定符。
Q55 = "荷蘭", P1082 = "人口", P585 = "时间点"

[time]

{{wikidata|qualifier|mdy|Q55|P1082|10026773|P585}}

以月 - 日 - 年获取日期。
Q55 = "荷蘭", P1082 = "人口", P585 = "时间点"

[time]

{{wikidata|qualifier|raw|Q55|P1082|10026773|P585}}

1950
获取原始日期值。
Q55 = "荷蘭", P1082 = "人口"

[reference]

{{wikidata|references|Q55|P1082|10026773}}

[2]
获取特定声称的引用。
Q55 = "荷蘭", P1082 = "人口"

[reference]

{{wikidata|references|raw|Q55|P1082|10026773}}

CBS StatLine - Bevolking; kerncijfers. 荷蘭中央統計局. [2015年8月22日]. (原始内容存档于2015年8月27日). 
以原始形式获取特定声称的引用。
Q55 = "荷蘭", P2855 = "增值稅率", P518 = "適用部分"

[entity label]

{{wikidata|qualifier|Q55|P2855|P518}}

食物
获取单个限定符值(对于每个匹配的声称)。
Q55 = "荷蘭", P2855 = "增值稅率", P518 = "適用部分"

[entity label]

{{wikidata|qualifiers|Q55|P2855|P518}}

食物、医疗药物、輔具、杂志、書本、藝術、文物、髮型師、酒店、露營場、休閒、体育、水
获取多个限定符值(对于每个匹配的声称)。
Q55 = "荷蘭", P2855 = "增值稅率", P518 = "適用部分"

[quantity], [entity label]

{{wikidata|properties|qualifiers|Q55|P2855|P518}}

21%、6% (食物、医疗药物、輔具、杂志、書本、藝術、文物、髮型師、酒店、露營場、休閒、体育、水)
获取多个属性值以及多个限定符值。
Q55 = "荷蘭", P2855 = "增值稅率", P518 = "適用部分"

[quantity], [entity label]

{{wikidata|properties|qualifiers|Q55|P2855|P518|sep=_+_|sep%s=|sep%q=_/_}}

21% + 6% (食物 / 医疗药物 / 輔具 / 杂志 / 書本 / 藝術 / 文物 / 髮型師 / 酒店 / 露營場 / 休閒 / 体育 / 水)
使用自定义分隔符返回输出。
Q55 = "荷蘭", P35 = "国家元首", P580 = "始於", P582 = "終於"

[entity label], [time]

{{wikidata|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582}}

威廉-亚历山大 (2013年4月30日)、贝娅特丽克丝 (1980年4月30日;2013年4月30日)、朱丽安娜女王 (1948年9月4日;1980年4月30日)、威廉明娜 (1890年11月23日;1948年9月4日)、威廉三世 (1849年3月17日;1890年11月23日)、威廉二世 (1840年10月7日;1849年3月17日)、威廉一世 (尼德蘭) (1815年3月16日;1840年10月7日)
为每个声称获取两个不同的限定符值。
Q55 = "荷蘭", P35 = "国家元首", P580 = "始於", P582 = "終於"

[entity label], [time]

{{wikidata|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582|sep%q=_–_}}

威廉-亚历山大 (2013年4月30日)、贝娅特丽克丝 (1980年4月30日 – 2013年4月30日)、朱丽安娜女王 (1948年9月4日 – 1980年4月30日)、威廉明娜 (1890年11月23日 – 1948年9月4日)、威廉三世 (1849年3月17日 – 1890年11月23日)、威廉二世 (1840年10月7日 – 1849年3月17日)、威廉一世 (尼德蘭) (1815年3月16日 – 1840年10月7日)
使用自定义分隔符返回输出。
Q55 = "荷蘭", P35 = "国家元首", P580 = "始於", P582 = "終於"

[entity label], [time]

{{wikidata|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582|format=%p[ <span style="font-size:85\%">(%q1[ – %q2])</span>][%s][%r]}}

威廉-亚历山大 (2013年4月30日)、贝娅特丽克丝 (1980年4月30日 – 2013年4月30日)、朱丽安娜女王 (1948年9月4日 – 1980年4月30日)、威廉明娜 (1890年11月23日 – 1948年9月4日)、威廉三世 (1849年3月17日 – 1890年11月23日)、威廉二世 (1840年10月7日 – 1849年3月17日)、威廉一世 (尼德蘭) (1815年3月16日 – 1840年10月7日)
以自定义格式而不是自定义分隔符返回输出。
Q55 = "荷蘭", P35 = "国家元首", P580 = "始於", P582 = "終於"

[entity label], [time]

{{wikidata|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582|format=%p[ <span style="font-size:85\%">([<![]--%q2]since [%q2--[]>]%q1[ – %q2])</span>][%s][%r]}}

威廉-亚历山大 (since 2013年4月30日)、贝娅特丽克丝 (1980年4月30日 – 2013年4月30日)、朱丽安娜女王 (1948年9月4日 – 1980年4月30日)、威廉明娜 (1890年11月23日 – 1948年9月4日)、威廉三世 (1849年3月17日 – 1890年11月23日)、威廉二世 (1840年10月7日 – 1849年3月17日)、威廉一世 (尼德蘭) (1815年3月16日 – 1840年10月7日)
要仅在某个值不存在时添加文本,例如如果没有结束时间,则添加单词“'since',需将其包装在包含HTML注释标签和相关参数的两个可选块之间(这也可以防止将文本添加到页面源中)。
Q55 = "荷蘭", P35 = "国家元首", Q29574 = "贝娅特丽克丝", P580 = "始於", P582 = "終於"

[entity label], [time]

{{wikidata|properties|qualifier|raw|qualifier|normal+|Q55|P35|Q29574|P580|P582|format=%p[ <span style="font-size:85\%">(%q1[ – %q2])</span>][%s][%r]}}

贝娅特丽克丝 (1980-04-30 – 2013年4月30日)
获取具有限定符的属性,来自声称,其属性与给定的Q标识符匹配,其中一个限定符值采用其原始形式。
Q55 = "荷蘭", P38 = "货币", P518 = "適用部分"

[entity label]

{{wikidata|properties|qualifiers|normal+|current|Q55|P38|P518}}

歐元 (歐洲區尼德蘭)、美元 (荷蘭加勒比區)
获取当前有效的声称。
Q55 = "荷蘭", P38 = 货币", P518 = "適用部分"

[entity label]

{{wikidata|properties|linked|qualifiers|normal+|current|Q55|P38|P518}}

歐元 (歐洲區尼德蘭)美元 (荷蘭加勒比區)
获取具有链接属性值的声称。
Q55 = "荷蘭", P38 = 货币", P518 = "適用部分"

[entity label]

{{wikidata|properties|qualifiers|linked|normal+|current|Q55|P38|P518}}

歐元 (歐洲區尼德蘭)、美元 (荷蘭加勒比區)
获取具有链接限定符值的声称。
Q55 = "荷蘭", P38 = 货币", P518 = "適用部分"

[entity label]

{{wikidata|properties|linked|short|qualifiers|linked|normal+|current|Q55|P38|P518}}

歐元 (歐洲區尼德蘭)美元 (荷蘭加勒比區)
获取具有链接属性和限定符值的声称,并在可用时使用短属性值。
Q55 = "荷蘭", P38 = 货币", Q4917 = "美元", P518 = "適用部分"

[entity label]

{{wikidata|qualifiers|normal+|current|Q55|P38|Q4917|P518}}

荷蘭加勒比區
获取限定符,来自与给定Q标识符匹配的(原始)属性值的声称。Gets qualifiers from claims for which the (raw) property value matches a given Q-identifier.
Q55 = "荷蘭", P38 = 货币", P518 = "適用部分", Q27561 = "荷蘭加勒比區"

[entity label]

{{wikidata|properties|normal+|current|Q55|P38|P518=Q27561}}

美元
Gets properties from claims for which a (raw) qualifier value matches a given Q-identifier.
Q55 = "荷蘭", P38 = 货币"

[entity label]

{{wikidata|properties|normal+|former|Q55|P38}}

荷兰盾
获取过去有效的声称。
Q55 = "荷蘭", P38 = 货币"

[entity label]

{{wikidata|properties|raw|normal+|former|Q55|P38}}

Q788472
获取原始属性值。
Q55 = "荷蘭", P38 = 货币"

[entity label]

{{wikidata|properties|raw|linked|normal+|former|Q55|P38}}

Q788472
获取链接到维基数据的原始属性值。
Q55 = "荷蘭", P1549 = "居民稱謂詞"

[monolingual text]

{{wikidata|property|Q55|P1549}}

获取当前维基语言的单语言文本值。
Q55 = "荷蘭", P1549 = "居民稱謂詞", P407 = "作品或名稱使用語言", Q36846 = "道本语"

[monolingual text]

{{wikidata|property|multilanguage|Q55|P1549|P407=Q36846}}

获取任何可用语言的单语言文本值。
Q55 = "荷蘭", P2884 = "市電電壓"

[quantity]

{{wikidata|property|Q55|P2884}}

230 伏特
获取数量值及其关联的度量单位。
Q55 = "荷蘭", P2884 = "市電電壓"

[quantity]

{{wikidata|property|linked|Q55|P2884}}

230 伏特
获取具有链接测量单位的数量值。
Q55 = "荷蘭", P2884 = "市電電壓"

[quantity]

{{wikidata|property|raw|Q55|P2884}}

230
获取原始数量值。
Q55 = "荷蘭", P2884 = "市電電壓"

[quantity]

{{wikidata|property|unit|Q55|P2884}}

伏特
仅获取测量单位。
Q55 = "荷蘭", P2884 = "市電電壓"

[quantity]

{{wikidata|property|unit|raw|Q55|P2884}}

Q25250
获取原始测量单位。
Q55 = "荷蘭", P625 = "地理坐标"

[globe coordinate]

{{wikidata|property|Q55|P625}}

52°19'N, 5°33'E
获取globe坐标值。
Q55 = "荷蘭", P625 = "地理坐标"

[globe coordinate]

{{wikidata|property|linked|Q55|P625}}

52°19'N, 5°33'E
获取链接的globe坐标值。
Q55 = "荷蘭", P625 = "地理坐标"

[globe coordinate]

{{wikidata|property|raw|Q55|P625}}

52/19/N/5/33/E
获取原始globe坐标值。
Q55 = "荷蘭", P625 = "地理坐标"

[globe coordinate]

{{wikidata|property|Q55|coord}}

52°19'N, 5°33'E
可以使用属性别名代替P标识符。
Q55 = "荷蘭", P41 = "旗幟圖像"

[commons media]

{{wikidata|property|linked|Q55|P41}}

Flag of the Netherlands.svg
获取媒体文件名并将其链接至共享资源。
Q55 = "荷蘭", P41 = "旗幟圖像"

[commons media]

{{wikidata|property|raw|Q55|P41|format=\[\[File:%p {{!}} thumb {{!}} left\]\]}}

可以在页面上包含共享资源媒体文件通过省略 linkedraw 标志,但通过使用 raw 标志 它可以自由格式化。
Q915684 = "勞侖茲-勞侖次方程", P2534 = "公式定義"

[math]

{{wikidata|property|Q915684|P2534}}

获取一个数学表达式。
Q6256 = "國家", P3896 = "地理形狀"

[geographic shape]

{{wikidata|property|linked|Q6256|P3896}}

Data:Naturalearthdata.com/admin-0-countries-no-antarctica.map
获取地理形状数据文件名并将其链接至共享资源。
Q4917 = "美元"

[entity label]

{{wikidata|label|Q4917}}

美元
获取item的标签。
Q4917 = "美元"

[entity label]

{{wikidata|label|short|linked|Q4917}}

美元
获取item的简短链接标签。
P38 = 货币"

[entity label]

{{wikidata|label|P38}}

货币
获取属性的标签。
P38 = 货币"

[entity label]

{{wikidata|label|linked|P38}}

货币
获取链接到维基数据的属性标签。
Q776 = "乌得勒支省"

[entity label]

{{wikidata|label|Q776}}

乌得勒支省
获取item的标签。
Q776 = "乌得勒支省"

[entity label]

{{wikidata|label|linked|Q776}}

乌得勒支省
获取item的链接标签。


[entity label]

{{wikidata|label}}

乌得勒支省
如果 template is transcluded on the 乌得勒支省 page (which is linked to Q776), then the Q776 can be omitted.


[entity label]

{{wikidata|label|raw}}

Q776
如果只给出 label 命令与 raw 标志, 那么返回连接到当前页面的item的Q标识符。
Q776 = "乌得勒支省"

[page title]

{{wikidata|title|Q776}}

乌得勒支省
获取当前Wiki上页面的标题,链接到给定项目。
Q776 = "乌得勒支省"

[page title]

{{wikidata|title|linked|Q776}}

乌得勒支省
获取当前Wiki上页面的链接标题,链接到给定项目。


[page title]

{{wikidata|title}}

乌得勒支省
如果 template is transcluded on the 乌得勒支省 page (which is linked to Q776), then the Q776 can be omitted.
Q55 = "荷蘭"

[entity description]

{{wikidata|description|Q55}}

歐洲國家,荷蘭王國本土部分
获取item的描述。


[entity description]

{{wikidata|description}}

歐洲國家,荷蘭王國本土部分
如果 template is transcluded on the 荷兰 页面(链接至Q55),那么 Q55 可以忽略。
Q55 = "荷蘭"

[entity alias]

{{wikidata|alias|Q55}}

尼德蘭
获取item的别名之一。
Q55 = "荷蘭"

[entity alias]

{{wikidata|aliases|Q55}}

尼德蘭、尼德蘭王國、紅毛蕃、和蘭
获取item的所有别名。
Q55 = "荷蘭"

[entity alias]

{{wikidata|alias|linked|Q55}}

尼德蘭
获取链接别名从item。


[entity alias]

{{wikidata|alias}}

尼德蘭
If the template is transcluded on the 荷兰 page (which is linked to Q55), then the Q55 can be omitted.
Q2 = "地球"

[page badge]

{{wikidata|badges|Q2}}

优良条目
获取当前Wiki上页面的raw badges,链接到给定item。
Q2 = "地球"

[page badge]

{{wikidata|badges|raw|Q2}}

Q17437798
获取当前Wiki上页面的raw badges,链接到给定item。


[page badge]

{{wikidata|badges}}

优良条目
If the template is transcluded on the 地球 page (which is linked to Q2), then the Q2 can be omitted.

示例参考

  1. ^ 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 Bevolking; kerncijfers, 1950-2022. 
  2. ^ 2.0 2.1 2.2 2.3 2.4 CBS StatLine - Bevolking; kerncijfers. 荷蘭中央統計局. [2015年8月22日]. (原始内容存档于2015年8月27日). 
  3. ^ 3.0 3.1 CBS StatLine - Bevolking; kerncijfers. [2014年8月26日]. (原始内容存档于2014年9月3日). 
  4. ^ 4.0 4.1 Nederland telt 17 miljoen inwoners. 2016年3月21日. 
  5. ^ 5.0 5.1 Bevolking; kerncijfers, 1950-2022. [2023年3月18日]. 

参见