Padron:Data/doc

Retrieves data from Wikidata, and formats it using Module:Wikidata. Same parameters as those in the p.formatStatements property of the module.

Parameters

  • item (required): Q + numeric ID
  • property (required) P + numeric ID of the property that the claims should have
  • withqualfier = qualifiers that the statement should have
  • withrank = rank of the statement ; 'preferred', 'normal', 'deprecated' or 'valid' (ie normal and preferred). By default = preferred.
  • sourceproperty = items should have this property in the source
  • withsource = the source that should be provided in the statement (if the sourceproperty parameter is not provided, the property used is p248)
  • excludespecial = set to true if you do not want to get "novalue" and "somevalue".
  • numval = if you want to set a maximum number of values to be returned
  • sorttype = set to "chronological" to get the statements in chronological order using the Padron:P, Padron:P and Padron:P qualifiers. Set to "inverrted for chronological order. From a Lua module, you can also define your own sorting criteria.
  • showsource = set to "true" if you want the source of the statement to be displayed.
  • lang for the desired language
  • targetvalue the value should of the statement should be this value (only works for item-type properties)
  • format = the format in which the args should be returned. For example, for a string-type property displayformat = "weblink" returns a formatted weblink.
  • conjtype = the conjunction separating the statements. For example, conj = <br />, will make a add a new line after each statement.
  • showqualifier = the qualifiers that should be shown along with the mainsnak value

Examples

Code render comment
{{Data|item=Q42|property=p31}} tao
{{Data|item=Q42|property=p31|lang=ja}} ヒト
{{Data|item=Q42|property=p569}}
{{Data|item=Q42|property=p569|lang=ja}}
{{Data|item=Q12418|property=p186}} oil paint at poplar panel
{{Data|item=Q12418|property=p186|lang=ja}} 油絵具 および ポプラ板
{{Data|item=Q12418|property=p186|rank=valid}} oil paint, poplar panel at kahoy rank = "valid" accepts both "preferred" and "normal" values
{{Data|item=Q12418|property=p186|showqualifiers==p518}} oil paint at poplar panel (painting support) shows the value of the p518 qualifier (if any) in addition to the main value
{{Data|item=Q12418|property=p186|qualifier=p518}} poplar panel should only display values that have a p518 qualifier
{{Data|item=Q12418|property=p186|numval=1}} oil paint
{{Data|item=Q12418|property=P276|sourceproperty=P854}} Salle des États, Louvre
{{Data|item=Q11879536|property=P460|source=Q1645493}} Lisa del Giocondo
{{Data|item=Q11879536|property=P460|source=Q1645493|showsource=true}} Lisa del Giocondo[1][2]
{{Data|item=Q153|property=P231|showsource=true}} 64-17-5[3][4][5]
{{Data|item=Q205309|property=P793|sorttype=inverted}} closure, demolition, renovation, renovation, first match at konstruksiyon
{{Data|item=Q205309|property=P793|sorttype=chronological|conjtype=<br />|withdate=true}} konstruksiyon
first match
renovation
renovation
demolition
closure
{{Data|item=Q205309|property=P793|targetvalue=331483|withdate=true}} demolition
{{Data|item=Q76|property=P856}} https://barackobama.com
{{Data|item=Q76|property=P856|format=weblink}} https://barackobama.com

References

  1. Giorgio Vasari, Le vite de piu eccellenti architetti, pittori, et scultori italiani, da Cimabue insino a' tempi nostri, at
  2. https://web.archive.org/web/20110508121954/http://www.ub.uni-heidelberg.de/Englisch/news/monalisa.html
  3. Q902623 (no title property provided!), EMBL's European Bioinformatics Institute, Creative Commons Attribution 4.0 International
  4. Q116031405 (no title property provided!)
  5. CAS Common Chemistry

See also


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.