Difference between revisions of "Template:Claim/doc"

From Wikibase Personal data
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> Creates a formated claims. Its parameters are item number and a property number ==...")
 
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
== Usage ==
 
== Usage ==
  
* {{tl|Claim|42|31|5}}
+
* {{tl|Claim|42|3|5}}
{{Claim|42|31|5}}
+
{{Claim|42|3|5}}
* <nowiki>Here is {{C|https://www.wikidata.org/entity/Q1001|31|https://www.wikidata.org/entity/Q5|P19|Q2786019}} an example claim</nowiki>
+
* {{tl|C|Q1001|3|Q5|P19|Q2786019}}
Here is {{C|https://www.wikidata.org/entity/Q1001|31|https://www.wikidata.org/entity/Q5|P19|Q2786019}} an example claim
+
{{C|Q1001|3|Q5|P19|Q2786019}}
*<code><nowiki>:Here is {{C|1|31|1|P580|Q323}} an example claim</nowiki></code>
+
* {{tl|C|10|3|100|P580|Q323}}
:Here is {{C|1|31|1|P580|Q323}} an example claim
+
{{C|10|3|100|P580|Q323}}
*<code><nowiki>:Here is {{C|1|31|1|P580|Q323}} an example claim</nowiki></code>
+
* {{tl|C|10|3|10|P580|Q323}}
:Here is {{C|1|31|1|P580|Q323}} an example claim
+
{{C|10|3|10|P580|Q323}}
  
 
Note: there is a bug when the template is used on a page paragraph not wrapped into an indentation ":" in wikitext. A carriage return is inserted after each template.
 
Note: there is a bug when the template is used on a page paragraph not wrapped into an indentation ":" in wikitext. A carriage return is inserted after each template.
Line 20: Line 20:
  
 
=== Special values ===
 
=== Special values ===
* <nowiki>{{C|https://www.wikidata.org/wiki/Q9696|P157|some value}}</nowiki>
+
* {{tl|C|Q9696|P157|some value}}
{{C|https://www.wikidata.org/wiki/Q9696|P157|some value}}
+
{{C|Q9696|P157|some value}}
 
:It displayed "unknown value" in your language.
 
:It displayed "unknown value" in your language.
 
* {{tl|C|Q1140947|P3373|no value}}
 
* {{tl|C|Q1140947|P3373|no value}}
 
{{C|Q1140947|P3373|no value}}
 
{{C|Q1140947|P3373|no value}}
 
:It displayed "no value" in your language.
 
:It displayed "no value" in your language.
 
  
 
=== Non item values ===
 
=== Non item values ===

Latest revision as of 21:03, 23 October 2019

Creates a formated claims. Its parameters are item number and a property number

Usage

< DataPolitics (Q42) > instance of (P3) < personal data storage activity (Q5) >
  • {{C|Q1001|3|Q5|P19|Q2786019}}
< Centre Gauche - PCS Suisse (Q1001) > instance of (P3) < personal data storage activity (Q5) >
product (P19) < Q2786019 >
  • {{C|10|3|100|P580|Q323}}
< familial activity (Q10) > instance of (P3) < media company (Q100) >
P580 < Q323 >
  • {{C|10|3|10|P580|Q323}}
< familial activity (Q10) > instance of (P3) < familial activity (Q10) >
P580 < Q323 >

Note: there is a bug when the template is used on a page paragraph not wrapped into an indentation ":" in wikitext. A carriage return is inserted after each template.

Without parameters

  • {{C}}
Soggetto (it) / sujet (fr) / субъект (ru) / Subjekt (de) / assunto (pt) / subject (en-gb) / 主題 (ja) / assunto (pt-br) / subjekt (sv) / subjekto (eo) / subjekt (cs) / onderwerp (nl) / 主題 (zh-hant) / подмет (mk) / alany (hu) / sujeto (es) / subject (en) / subject (en-ca) / 主题 (zh-hans) / Subjecte (ca) >  Q18616576  oggetto o valore (it) / objet ou valeur (fr) / объект или значение (ru) / Objekt oder Wert (de) / objeto ou valor (pt) / object or value (en-gb) / オブジェクトまたは値 (ja) / objeto ou valor (pt-br) / objekt eller värde (sv) / objketo aŭ valoro (eo) / object of waarde (nl) / 對象或值 (zh-hant) / objekt nebo hodnota (cs) / tárgy vagy érték (hu) / objeto o valor (es) / object or value (en) / object or value (en-ca) / 对象或值 (zh-hans) / предмет или вредност (mk) >

Special values

  • {{C|Q9696|P157|some value}}
< Q9696 > end time (P157) unknown value Help
It displayed "unknown value" in your language.
  • {{C|Q1140947|P3373|no value}}
< Q1140947 > P3373 no value Help
It displayed "no value" in your language.

Non item values

  • {{C||number|1}}
Soggetto (it) / sujet (fr) / субъект (ru) / Subjekt (de) / assunto (pt) / subject (en-gb) / 主題 (ja) / assunto (pt-br) / subjekt (sv) / subjekto (eo) / subjekt (cs) / onderwerp (nl) / 主題 (zh-hant) / подмет (mk) / alany (hu) / sujeto (es) / subject (en) / subject (en-ca) / 主题 (zh-hans) / Subjecte (ca) > P1114 (P1114) < 1 >
  • {{C||date of birth|1863}}
Soggetto (it) / sujet (fr) / субъект (ru) / Subjekt (de) / assunto (pt) / subject (en-gb) / 主題 (ja) / assunto (pt-br) / subjekt (sv) / subjekto (eo) / subjekt (cs) / onderwerp (nl) / 主題 (zh-hant) / подмет (mk) / alany (hu) / sujeto (es) / subject (en) / subject (en-ca) / 主题 (zh-hans) / Subjecte (ca) > date of birth < 1863 >
  • {{C||date of birth|some value}}
Soggetto (it) / sujet (fr) / субъект (ru) / Subjekt (de) / assunto (pt) / subject (en-gb) / 主題 (ja) / assunto (pt-br) / subjekt (sv) / subjekto (eo) / subjekt (cs) / onderwerp (nl) / 主題 (zh-hant) / подмет (mk) / alany (hu) / sujeto (es) / subject (en) / subject (en-ca) / 主题 (zh-hans) / Subjecte (ca) > date of birth unknown value Help

Ranks

  • {{C||date of birth|some value|rank=Preferred}}
Preferred rankSoggetto (it) / sujet (fr) / субъект (ru) / Subjekt (de) / assunto (pt) / subject (en-gb) / 主題 (ja) / assunto (pt-br) / subjekt (sv) / subjekto (eo) / subjekt (cs) / onderwerp (nl) / 主題 (zh-hant) / подмет (mk) / alany (hu) / sujeto (es) / subject (en) / subject (en-ca) / 主题 (zh-hans) / Subjecte (ca) > date of birth unknown value Help

See also