Template:Wikidata/doc
![]() | これはTemplate:Wikidataの |
![]() | Luaモジュールを |
このテンプレートを
用法 [編集 ]
{{wikidata|コマンド1|フラグ1a|フラグ1b|フラグ1c|コマンド2|フラグ2a|フラグ2b|フラグ2c|フラグ0a|フラグ0b|フラグ0c|
コマンド[編集 ]
コマンド(コマンド1
, コマンド2
, ...)はどのような
値 クラス[編集 ]
コマンド | ||||
---|---|---|---|---|
1 | property
|
{{wikidata|property|P1}}
|
||
properties
|
{{wikidata|properties|P1}}
| |||
2 | qualifier
|
{{wikidata|qualifier|P1|P2}}
|
||
qualifiers
|
{{wikidata|qualifiers|P1|P2}}
| |||
3 | reference
|
{{wikidata|reference|P1}}
|
||
references
|
{{wikidata|references|P1}}
| |||
* ( |
名前 クラス[編集 ]
Name class[編集 ]
The name class commands cannot be combined.
タイプ | コマンド | |||
---|---|---|---|---|
I | label
|
{{wikidata|label}}
|
||
II | title
|
{{wikidata|title}}
|
||
III | alias
|
{{wikidata|alias}}
|
||
aliases
|
すべて | {{wikidata|aliases}}
| ||
* ( |
フラグ[編集 ]
||
)も
コマンドフラグ[編集 ]
これらのフラグ(フラグ1*
, フラグ2*
, ...)は
フラグ | |
---|---|
linked
|
そのプロパティや パラメータ |
short
|
[EXPENSIVE] |
raw
|
このフラグが このフラグが
|
multilanguage
|
コンフィグレーションフラグ[編集 ]
これらのフラグ(フラグ0*
)は
フラグ | ||
---|---|---|
preferred
|
デフォルトは | |
normal
| ||
deprecated
| ||
best
| ||
future
|
デフォルトは | |
current
| ||
former
| ||
edit
|
もし | |
edit@end
| ||
mdy
|
||
single
|
property /properties コマンドが | |
sourced
|
引数 [編集 ]
順番 付 き引数 [編集 ]
)をそのproperties
とqualifiers
コマンドがproperty_id
qualifier_id
ひとつqualifier
/qualifiers
コマンドをqualifier_id
( |
(オプション) | (オプション) | ( |
(オプション) | ( |
( |
|||
{{wikidata
|
コマンド
|
フラグ
|
entity_id
|
property_id
|
raw_value
|
qualifier_id
|
qualifier_id
|
}}
| |
---|---|---|---|---|---|---|---|---|---|
label , title
|
|||||||||
property /properties
|
|||||||||
reference /references
|
|||||||||
qualifier /qualifiers
|
|||||||||
qualifier /qualifiers (optional 2nd, 3rd, etc.)
| |||||||||
entity_id
(オプション) |
[EXPENSIVE] アクセスすべきQ55 )、またはProperty: Property:P38 )があるアクセスすべきプロパティエンティティのP
このパラメータが |
---|---|
property_id
|
アクセスすべきエンティティProperty: P35 )。
|
raw_value
(オプション) |
QQ29574 )にDates as literal values must be formatted Globe coordinates as literal values must be formatted with forward slashes (i.e. The special type 'no value' can be given by entering the empty string (i.e. このパラメータが |
qualifier_id
|
アクセスすべきエンティティProperty: P580 )を |
名前 付 き引数 [編集 ]
property_id
raw_value
のペアと
|qualifier=value
で、
qualifier
は修飾 子 のP識別子 (あるいは利用 可能 な別名 )でProperty:
接頭 辞 (例 :P518
)を持 ちません;value
はQ識別子 が修飾 子 の値 のひとつ(例 :Q27561
)に等 しいか、またはリテラル値 (すなわち文字 列 や数字 など、非 項目 ラベル)がアクセスすべき特定 の主張 の生 の修飾 子 の値 のひとつに等 しい。値 の形式 は順番 付 き引数 raw_value
用 のものと同 じです。空 の文字 列 で与 えられる特別 な種別 '値 なし' は、特定 の修飾 子 の主張 内 に全 く無 い場合 にも一致 します。
|P518=Q27561
プロパティ別名 [編集 ]
プロパティ
P | ||
---|---|---|
coord | → | P625 |
author | → | P50 |
publisher | → | P123 |
importedFrom | → | P143 |
statedIn | → | P248 |
pages | → | P304 |
language | → | P407 |
publicationDate | → | P577 |
startTime | → | P580 |
endTime | → | P582 |
chapter | → | P792 |
retrieved | → | P813 |
referenceURL | → | P854 |
archiveURL | → | P1065 |
title | → | P1476 |
quote | → | P1683 |
shortName | → | P1813 |
archiveDate | → | P2960 |
高度 な用法 [編集 ]
|flag=value
)です。
value
の_
を\
を\_
)でエスケープします; リテラルのバックスラッシュ(すなわち\\
)
デフォルト |
デフォルト |
||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
format=
|
%p[%s][%r]
|
property /properties コマンドがqualifier /qualifiers コマンドが |
Optional parameters can be given by encapsulating them between square brackets: At least one parameter must be given that is not optional, while the To get a literal | ||||||||||||
%q[%s][%r]
|
if the property /properties command was not given and the qualifier /qualifiers command was given
| ||||||||||||||
%r
|
if only the reference /references command was given
| ||||||||||||||
%p[ <span style="font-size:smaller">(%q)</span>][%s][%r]
|
if the property /properties command was given and the qualifier /qualifiers 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.
| ||||||||||||
;
|
if the property /properties command was not given and the qualifier /qualifiers command was given
| ||||||||||||||
sep%q1= , sep%q2= , sep%q3= , ...
|
,_
|
default | The separator between each pair of qualifiers of a single claim. These are the value separators for the %q1 , %q2 , %q3 , ... parameters.
If only one | ||||||||||||
sep%q=
|
,_
|
if exactly one qualifier /qualifiers command was given
|
The separator between each set of qualifiers of a single claim. This is the value separator for the %q parameter.
If only one | ||||||||||||
;_
|
if more than one qualifier /qualifiers command was given
| ||||||||||||||
sep%r=
|
|
default | The separator between each pair of references of a single claim. This is the value separator for the %r parameter.
| ||||||||||||
_
|
if the raw flag was given for the reference /references command
| ||||||||||||||
punc=
|
|
default | A punctuation mark placed at the end of the output. This will be placed on the %s 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. |
例 [編集 ]
パラメータと |
||
---|---|---|
Q55 = "オランダ", P395 = "ナンバープレート・コード"
[string] |
{{wikidata|property|Q55|P395}}
|
リテラル |
P395 = "ナンバープレート・コード"
[string] |
{{wikidata|property|P395}}
|
templateがオランダのページ(Q55にリンク)にトランスクルード(Q55 は |
Q55 = "オランダ", P395 = "ナンバープレート・コード"
[string] |
{{wikidata|property|edit|Q55|P395}} |
|
Q55 = "オランダ", P395 = "ナンバープレート・コード"
[string] |
{{wikidata|property|edit@end|Q55|P395}} |
|
Q55 = "オランダ", P1082 = "
[quantity] |
{{wikidata|property|normal+|Q55|P1082}}
|
「 |
Q55 = "オランダ", P1082 = "
[quantity] |
{{wikidata|properties|normal+|Q55|P1082}}
|
「 |
Q55 = "オランダ", P1082 = "
[quantity], [time] |
{{wikidata|properties|qualifier|normal+|Q55|P1082|P585}}
|
プロパティ |
Q55 = "オランダ", P1082 = "
[quantity], [time], [reference] |
{{wikidata|properties|qualifier|references|normal+|Q55|P1082|P585}} |
|
Q55 = "オランダ", P1082 = "
[quantity], [reference] |
A total of {{wikidata|property|references|Q55|P1082}} people live in the Netherlands.
|
|
Q55 = "オランダ", P1082 = "
[quantity], [reference] |
The Netherlands has a population of {{wikidata|property|references|Q55|P1082|punc=.}}
|
|
Q55 = "オランダ", P1082 = "
[quantity], [time], [reference] |
<ul>{{wikidata|properties|qualifier|references|normal+|Q55|P1082|P585|format=<li>%p[%r][<ul><li>%q</li></ul>]</li>}}</ul>
|
|
Q55 = "オランダ", P1082 = "
[time] |
{{wikidata|qualifier|normal+|Q55|P1082|P585}}
|
|
Q55 = "オランダ", P1082 = "
[time] |
{{wikidata|qualifier|normal+|single|Q55|P1082|P585}}
|
single フラグも |
Q55 = "オランダ", P1082 = "
[time] |
{{wikidata|qualifier|Q55|P1082|10026773|P585}}
|
( |
Q55 = "オランダ", P1082 = "
[time] |
{{wikidata|qualifier|mdy|Q55|P1082|10026773|P585}}
|
|
Q55 = "オランダ", P1082 = "
[time] |
{{wikidata|qualifier|raw|Q55|P1082|10026773|P585}}
|
|
Q55 = "オランダ", P1082 = "
[reference] |
{{wikidata|references|Q55|P1082|10026773}}
|
|
Q55 = "オランダ", P1082 = "
[reference] |
{{wikidata|references|raw|Q55|P1082|10026773}}
|
|
Q55 = "オランダ", P1081 = "
[quantity], [reference] |
{{wikidata|properties|references|Q55|P1081}}
|
|
Q55 = "オランダ", P1081 = "
[quantity], [reference] |
{{wikidata|properties|references|sourced|Q55|P1081}}
|
|
Q55 = "オランダ", P2855 = "
[item label] |
{{wikidata|qualifier|Q55|P2855|P518}}
|
|
Q55 = "オランダ", P2855 = "
[item label] |
{{wikidata|qualifiers|Q55|P2855|P518}}
|
|
Q55 = "オランダ", P2855 = "
[quantity], [item label] |
{{wikidata|properties|qualifiers|Q55|P2855|P518}}
|
|
Q55 = "オランダ", P2855 = "
[quantity], [item label] |
{{wikidata|properties|qualifiers|Q55|P2855|P518|sep=_+_|sep%s=|sep%q=_/_}}
|
カスタムセパレータ |
Q55 = "オランダ", P35 = "
[item label], [time] |
{{wikidata|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582}}
|
|
Q55 = "オランダ", P35 = "
[item label], [time] |
{{wikidata|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582|sep%q=_–_}}
|
カスタムセパレータ |
Q55 = "オランダ", P35 = "
[item label], [time] |
{{wikidata|properties|qualifier|qualifier|normal+|Q55|P35|P580|P582|format=%p[ <span style="font-size:smaller">(%q1[ – %q2])</span>][%s][%r]}}
|
カスタムセパレータ |
Q55 = "オランダ", P35 = "
[item label], [time] |
{{wikidata|properties|qualifier|raw|qualifier|normal+|Q55|P35|Q29574|P580|P582|format=%p[ <span style="font-size:smaller">(%q1[ – %q2])</span>][%s][%r]}}
|
|
Q55 = "オランダ", P38 = "
[item label] |
{{wikidata|properties|qualifiers|normal+|current|Q55|P38|P518}}
|
|
Q55 = "オランダ", P38 = "
[item label] |
{{wikidata|properties|linked|qualifiers|normal+|current|Q55|P38|P518}} |
リンクされたプロパティ |
Q55 = "オランダ", P38 = "
[item label] |
{{wikidata|properties|qualifiers|linked|normal+|current|Q55|P38|P518}}
|
リンク |
Q55 = "オランダ", P38 = "
[item label] |
{{wikidata|properties|linked|short|qualifiers|linked|normal+|current|Q55|P38|P518}}
|
リンク |
Q55 = "オランダ", P38 = "
[item label] |
{{wikidata|qualifiers|normal+|current|Q55|P38|Q4917|P518}}
|
( |
Q55 = "オランダ", P38 = "
[item label] |
{{wikidata|properties|normal+|current|Q55|P38|P518=Q27561}}
|
( |
Q55 = "オランダ", P38 = "
[item label] |
{{wikidata|properties|normal+|former|Q55|P38}}
|
|
Q55 = "オランダ", P38 = "
[item label] |
{{wikidata|properties|raw|normal+|former|Q55|P38}}
|
|
Q55 = "オランダ", P38 = "
[item label] |
{{wikidata|properties|raw|linked|normal+|former|Q55|P38}}
|
ウィキデータにリンクした |
Q55 = "オランダ", P1549 = "デモニム"
[monolingual text] |
{{wikidata|property|Q55|P1549}}
|
|
Q55 = "オランダ", P1549 = "デモニム", P407 = "
[monolingual text] |
{{wikidata|property|multilanguage|Q55|P1549|P407=Q36846}}
|
|
Q55 = "オランダ", P2884 = "
[quantity] |
{{wikidata|property|Q55|P2884}}
|
|
Q55 = "オランダ", P2884 = "
[quantity] |
{{wikidata|property|linked|Q55|P2884}}
|
リンク |
Q55 = "オランダ", P2884 = "
[quantity] |
{{wikidata|property|raw|Q55|P2884}}
|
|
Q55 = "オランダ", P625 = "
[globe coordinate] |
{{wikidata|property|Q55|P625}}
|
|
Q55 = "オランダ", P625 = "
[globe coordinate] |
{{wikidata|property|linked|Q55|P625}} |
リンク |
Q55 = "オランダ", P625 = "
[globe coordinate] |
{{wikidata|property|raw|Q55|P625}}
|
|
Q55 = "オランダ", P625 = "
[globe coordinate] |
{{wikidata|property|Q55|coord}}
|
プロパティの |
Q55 = "オランダ", P41 = "
[commons media] |
{{wikidata|property|linked|Q55|P41}} |
メディアファイル |
Q55 = "オランダ", P41 = "
[commons media] |
{{wikidata|property|raw|Q55|P41|format=\[\[File:%p {{!}} thumb {{!}} left\]\]}} |
linked raw フラグをraw フラグを |
Q915684 = "ローレンツ・ローレンツの
[math] |
{{wikidata|property|Q915684|P2534}} |
|
Q6256 = "
[geographic shape] |
{{wikidata|property|linked|Q6256|P3896}} |
|
Q4917 = "
[item label] |
{{wikidata|label|Q4917}}
|
|
Q4917 = "
[item label] |
{{wikidata|label|short|linked|Q4917}}
|
|
P38 = "
[property label] |
{{wikidata|label|P38}}
|
プロパティのラベルを |
P38 = "
[property label] |
{{wikidata|label|linked|P38}}
|
ウィキデータへリンクしたプロパティのラベルを |
Q776 = "ユトレヒト
[item label] |
{{wikidata|label|Q776}}
|
|
Q776 = "ユトレヒト
[item label] |
{{wikidata|label|linked|Q776}}
|
|
[item label] |
{{wikidata|label}}
|
If the template is transcluded on the ユトレヒトQ776 can be omitted.
|
[item label] |
{{wikidata|label|raw}}
|
label コマンドをraw フラグ |
Q776 = "ユトレヒト
[page title] |
{{wikidata|title|Q776}}
|
|
Q776 = "ユトレヒト
[page title] |
{{wikidata|title|linked|Q776}}
|
|
[page title] |
{{wikidata|title}}
|
If the template is transcluded on the ユトレヒトQ776 can be omitted.
|
Example references[編集 ]
- ^ a b c d e f g h i j “Bevolking; kerncijfers, 1950-2022”. Template:Cite webの
呼 び出 しエラー:引数 accessdate は必須 です。 - ^ a b c d e “CBS StatLine - Bevolking; kerncijfers”.
中央 統計 局 . 27 8月 2015時 点 のオリジナルよりアーカイブ。22 8月 2015閲覧 。 - ^ a b “CBS StatLine - Bevolking; kerncijfers”. 3 9
月 2014時 点 のオリジナルよりアーカイブ。26 8月 2014閲覧 。 - ^ a b “Nederland telt 17 miljoen inwoners” (21 3
月 2016). Template:Cite webの呼 び出 しエラー:引数 accessdate は必須 です。 - ^ a b “Bevolking; kerncijfers, 1950-2022”. 18 3
月 2023閲覧 。 - ^ a b “Human Development Data (1990-2017)”.
人間 開発 報告 書 . 30 12月 2018時 点 のオリジナルよりアーカイブ。 Template:Cite webの呼 び出 しエラー:引数 accessdate は必須 です。
参考 情報 [編集 ]
- Module:Wd, the source module that is called by this template.
関連 項目 [編集 ]
- モジュール:Wikidata -
類似 の機能 を持 った、別 系統 のモジュール。名前 が似 ていてややこしいですが、別 のものです。