Padron:Data
Itsura
Retrieves data from Wikidata, and formats it using Module:Wikidata. Same parameters as those in the p.formatStatements property of the module.
Parameters
[baguhin ang wikitext]- 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
[baguhin ang wikitext]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
[baguhin ang wikitext]- ↑ Giorgio Vasari, Le vite de piu eccellenti architetti, pittori, et scultori italiani, da Cimabue insino a' tempi nostri, at
- ↑ https://web.archive.org/web/20110508121954/http://www.ub.uni-heidelberg.de/Englisch/news/monalisa.html
- ↑ Q902623 (no title property provided!), European Bioinformatics Institute, Creative Commons Attribution 4.0 International
- ↑ Q116031405 (no title property provided!)
- ↑ CAS Common Chemistry
See also
[baguhin ang wikitext]- {{Label}}