跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
MediaWiki帮助
代码酷
搜索
搜索
中文(中国大陆)
外观
创建账号
登录
个人工具
创建账号
登录
未登录编辑者的页面
了解详情
贡献
讨论
编辑“︁
模板:Wikidata/doc
”︁(章节)
模板
讨论
大陆简体
阅读
编辑源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
编辑源代码
查看历史
常规
链入页面
相关更改
特殊页面
页面信息
外观
移至侧栏
隐藏
您的更改会在有权核准的用户核准后向读者展示。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
=== 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" | {{smaller|''(required)''}} | {{smaller|{{color|#777|''(optional)''}}}} | {{smaller|{{color|#777|(optional)}}}} | {{smaller|(required)}} | {{smaller|{{color|#777|(optional)}}}} | {{smaller|(required)}} | {{smaller|(required)}} | 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>description</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> {{smaller|{{nobold|(optional)}}}} | '''<code>{{color|red|[EXPENSIVE]}}</code>''' '''Q-identifier''' of the item-entity to be accessed (e.g. <code>Q55</code>), '''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>), or '''page title''' of the Wikipedia article whose connected item-entity is to be accessed preceded by <code>:</code>, a prefixed colon (e.g. <code>:Netherlands</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> or <code>page=</code> is given, [[#Named arguments|see below]]). If this parameter is given, but empty (i.e. <code>||</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|named arguments <code>eid=</code> and <code>page=</code>]] below that can be used to give an entity-ID or page title too, but without the item-entity connected to the current page being used as a default. |- ! 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> {{smaller|{{nobold|(optional)}}}} | 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 ''''no value'''' can be given by entering the empty string (i.e. <code>||</code>) and the special type ''''unknown value'''' can be given by entering a single underscore (i.e. <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>&#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>). |}
摘要:
请注意,所有对代码酷的贡献均被视为依照知识共享署名-非商业性使用-相同方式共享发表(详情请见
代码酷:著作权
)。如果您不希望您的文字作品被随意编辑和分发传播,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)