మాడ్యూల్ చర్చ:WikidataIB/sandbox/testing

message: * 
Article	Code                                                                                                       	Result
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50}}                                                	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |Fred Bloggs}}                                   	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=author; number_of_pages |name=author}}      	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=title; number_of_pages |name=author}}       	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL}}                                       	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |Freda Bloggs}}                         	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author}}                           	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author |name=author}}              	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=title |name=author}}               	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author |name=author |Freda Bloggs}}	
 Note that when a blacklist is supplied, a field name is also needed, otherwise the call returns nothing.
thread_title:  Local parameter, fetchwikidata, suppressfields 

message: * 
* 
Article	Code                                                                          	Result
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=no}}  	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=yes}} 	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=no}} 	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=yes}}	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=}}
thread_title:  Only sourced 

message: * 
Article	Code                                                                            	Result
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=no}} 	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=yes}}	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=}}
thread_title:  No icon 

message: * 
Article	Code                                                                            	Result
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q90 |P17 |fwd=ALL |osd=n |rank=b}}  	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q84 |P17 |fwd=ALL |osd=n |rank=b}}  	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q3777 |P17 |fwd=ALL |osd=n |rank=b}}	
{{#invoke:WikidataIB/sandbox |showNoLinks}} →
thread_title:  Don't link common items 

message: * 
* 
Article	Code                                                                                	Result
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q357585 |P569 |fwd=ALL |osd=no}}        	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no}}         	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |bc=BC}}  	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |bc=BCE}} 	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |df=mdy}} 	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |df=y}}   	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |lang=fr}}	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no}}        	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |bc=BC}} 	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |df=mdy}}	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |df=y}}  	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1817 |P569 |fwd=ALL |osd=no}}          	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1817 |P569 |fwd=ALL |osd=no |pd=yes}}  	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q1817 |P570 |fwd=ALL |osd=no}}          	
=== Earliest and latest date as qualifiers ===
* 
* 
* 
* 
Article	Code                                                                                        	Result
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P570 |qid=Q61714940}}                         	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P570 |qid=Q61714940 |qual=ALL}}               	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P569 |qid=Q1786}}                             	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P569 |qid=Q1786 |qual=ALL}}                   	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P569 |qid=Q1048}}                             	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P569 |qid=Q1048 |qual=ALL}}                   	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P582 |qid=Q2269}}                             	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P582 |qid=Q2269 |qual=ALL}}                   	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P582 |qid=Q2269 |lang=fr |qual=ALL}}          	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P582 |qid=Q2269 |lang=zh |qual=ALL}}          	
       	{{#invoke:WikidataIB/sandbox |getValue |fwd=ALL |osd=n |P610 |qid=Q142 |list=ubl}}          	
       	{{#invoke:WikidataIB/sandbox |getValue |fwd=ALL |osd=n |P610 |qid=Q142 |list=ubl |qual=ALL}}
thread_title:  getValue for dates 

message: * 
* 
* 
* 
Article	Code                                                                                        	Result
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P570 |qid=Q61714940}}                         	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P570 |qid=Q61714940 |qual=ALL}}               	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P569 |qid=Q1786}}                             	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P569 |qid=Q1786 |qual=ALL}}                   	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P569 |qid=Q1048}}                             	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P569 |qid=Q1048 |qual=ALL}}                   	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P582 |qid=Q2269}}                             	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P582 |qid=Q2269 |qual=ALL}}                   	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P582 |qid=Q2269 |lang=fr |qual=ALL}}          	
       	{{#invoke:WikidataIB/sandbox |getValue |ps=1 |P582 |qid=Q2269 |lang=zh |qual=ALL}}          	
       	{{#invoke:WikidataIB/sandbox |getValue |fwd=ALL |osd=n |P610 |qid=Q142 |list=ubl}}          	
       	{{#invoke:WikidataIB/sandbox |getValue |fwd=ALL |osd=n |P610 |qid=Q142 |list=ubl |qual=ALL}}
thread_title:  Earliest and latest date as qualifiers 

message: Article	Code                                                                                                                	Result
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no}}                                   	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=}}                             	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |locally supplied value}}  	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |2=locally supplied value}}	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |}}                        	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |2=}}                      	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42}}                          	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=1}}               	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=4}}               	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=99}}              	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=0}}               	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=yes |qid=Q42 |maxvals=0}}
thread_title:  maxvals 

message: , 
Article	Code                                                                                             	Result
       	{{#invoke:WikidataIB/sandbox |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no}}                      	
       	{{#invoke:WikidataIB/sandbox |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no |unitabbr=yes}}        	
       	{{#invoke:WikidataIB/sandbox |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no |unitabbr=yes |conv=y}}	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q18208369 |P2044 |ps=1 |uabbr=y |conv=y}}            	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q4574072 |P2044 |ps=1 |uabbr=y |conv=y}}             	
       	{{#invoke:WikidataIB/sandbox |getValue |qid=Q25271 |P2044 |ps=1 |uabbr=y |conv=y}}
thread_title:  Quantity handling 

message: * 
Article	Code                                                                                	Result
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fwd=ALL |osd=no |qid=Q42}}            	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |sep=" – "}} 	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |list=hlist}}	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |list=ubl}}  	
       	{{#invoke:WikidataIB/sandbox |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |list=prose}}
thread_title:  List handling 

message: :  for 
replies: text: Qualifiers:  and 
Code                                                                                                        	Result
                                   	
                        	
                        	
                       	
                       	
                         	
	
----

text: for 
Code                                                                                          	Result
	
----

text: for

text: Qualifiers:  is handled to include "before "
Code                                                                                             	Result
                        	
            	
            	

thread_title:  Getting value and qualifiers 

message: :  for  and 
Code                                                                                                 	Result
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n}}                     	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |uabbr=y}}            	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=3}}}           	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=3 |uabbr=y}}}  	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=6}}}           	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=6 |uabbr=y}}}  	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=9}}}           	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=9 |uabbr=y}}}  	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=12}}}          	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=12 |uabbr=y}}} 	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=}}}            	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale= |uabbr=y}}}   	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=10}}}          	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=10 |uabbr=y}}} 	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=-10}}}         	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=-10 |uabbr=y}}}	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=auto}}}        	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=A |uabbr=y}}}  	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=auto}}}        	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=A |uabbr=y}}}  	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q183 |P2131 |rank=b |fwd=ALL |osd=n |scale=auto}}}       	
{{#invoke:WikidataIB/sandbox |getValue |qid=Q183 |P2131 |rank=b |fwd=ALL |osd=n |scale=A |uabbr=y}}}
thread_title:  Scaling quantities 

message: Fetching the names of the  from  (one value preferred):
Code                                                                                   	Result
{{#invoke:WikidataIB/sandbox |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no}}         	
{{#invoke:WikidataIB/sandbox |getPreferredValue |P170 |fwd=ALL |qid=Q29016906 |osd=no}}	
Using getValue only:                                                                   	Using getValue only:
{{#invoke:WikidataIB/sandbox |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=}}  	
{{#invoke:WikidataIB/sandbox |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=p}} 	
{{#invoke:WikidataIB/sandbox |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=n}} 	
{{#invoke:WikidataIB/sandbox |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=b}} 	
{{#invoke:WikidataIB/sandbox |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=x}} 	
----
Fetching the values of  from  (no values preferred):
Code                                                                                   	Result
{{#invoke:WikidataIB/sandbox |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no}}         	
{{#invoke:WikidataIB/sandbox |getPreferredValue |P180 |fwd=ALL |qid=Q29016906 |osd=no}}	
Using getValue only:                                                                   	Using getValue only:
{{#invoke:WikidataIB/sandbox |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=}}  	
{{#invoke:WikidataIB/sandbox |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=p}} 	
{{#invoke:WikidataIB/sandbox |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=n}} 	
{{#invoke:WikidataIB/sandbox |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=b}} 	
{{#invoke:WikidataIB/sandbox |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=x}} 	
----
Using template – Fetching the names of the  from  (one value preferred):
Code                                                     	Result
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no}}           	
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=p}}   	
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=n}}   	
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=best}}	
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=xyz}}
thread_title:  Ranks 

message: {{#invoke:WikidataIB/sandbox |getValue |P734 |qid=Q16240603 |fwd=ALL | osd=no | linked=no |lang=}}  	
	{{#invoke:WikidataIB/sandbox |getValue |P734 |qid=Q16240603 |fwd=ALL | osd=no | linked=no |lang=en}}	
	{{#invoke:WikidataIB/sandbox |getValue |P734 |qid=Q16240603 |fwd=ALL | osd=no | linked=no |lang=ru}}
thread_title:  Language code 

message: * 
 Testing getValue using  for 
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no}}            	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=}}     	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=en}}   	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=en-gb}}	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=de}}   	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=zh-mo}}	
 Testing getValue using  for 
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no}}            	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=}}     	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=en}}   	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=en-gb}}	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=gu}}   	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=zh-mo}}	
 Testing getValue using  for 
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no}}            	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=}}     	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=en}}   	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=en-gb}}	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=gu}}   	
	{{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=zh-mo}}
thread_title:  Monolingual text handling 

message: * 
* 
Code                                                                                                   	Result
{{coord |-24.627333 |-70.404167 |display=inline}}                                                      	
{{coord |-24.627333 |-70.404167 |display=inline |format=dms}}                                          	
{{#invoke:WikidataIB/sandbox |getValue |P625 |fwd=ALL |osd=no |qid=Q265628}}                           	
{{#invoke:WikidataIB/sandbox |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline}}                	
{{#invoke:WikidataIB/sandbox |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |format=dms}}               	
{{#invoke:WikidataIB/sandbox |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline|format=dms}}     	
{{#invoke:WikidataIB/sandbox |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |format=dec}}               	
{{#invoke:WikidataIB/sandbox |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline|format=dec}}     	
{{#invoke:WikidataIB/sandbox |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |noicon=true |show=long}}   	
{{#invoke:WikidataIB/sandbox |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |noicon=true |show=lat}}    	
{{#invoke:WikidataIB/sandbox |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |noicon=true |show=longlat}}
thread_title:  Coordinates 

message: ; Date precision is month:
replies: text: In : property  equal to  has a  qualifier
Code                                                                                                           	Result
        	
	
; Date precision is day:

text: In : property  equal to  has a  qualifier
Code                                                                                                                  	Result
                	
        	
	
; Multiple date values:

text: In : property  equal to  has  qualifiers
Code                                                                                                                	Result
                	
        	
	
; Qualifier value is an article:

text: In : property  equal to  has an  qualifier
Code                                                                                                            	Result
        	

thread_title:  getQualifierValue 

message: In , the value of the property  which has qualifier  equal to :                                                                      	In , the value of the property  which has qualifier  equal to :
{{#invoke:WikidataIB/sandbox |getValueByQual |qid=Q10990 |P443 |qualID=P407 |qvalue=Q7979 |fwd=ALL |osd=no |noicon=true}}            	
In , the value of the property  which has qualifier  equal to :                                                                      	In , the value of the property  which has qualifier  equal to :
{{#invoke:WikidataIB/sandbox |getValueByQual |qid=Q96 |P571 |qualID=P1013 |qvalue=Q1464916 |fwd=ALL |osd=no |noicon=true}}           	
In , the best value of the property  which has qualifier  equal to :                                                                 	In , the best value of the property  which has qualifier  equal to :
{{#invoke:WikidataIB/sandbox |getValueByQual |qid=Q96 |P571 |qualID=P1013 |qvalue=Q1464916 |rank=best |fwd=ALL |osd=no |noicon=true}}
thread_title:  getValueByQual 

message: * getSumOfParts scans the property 'has part' (P527) for values matching a list.
* The list is passed in parameter vlist.
* It consists of a string of Qids separated by spaces or any usual punctuation.
* If the matched values have a qualifier 'quantity' (P1114), those quantities are summed.
* The sum is returned as a number or nothing if it's zero.
For  (which has 4 RBMK + 4 water-water energetic reactors):
* {{#invoke:WikidataIB/sandbox |getSumOfParts |fwd=ALL| osd=n |qid=Q3279825 |vlist=Q377968, Q468846, Q558152, Q558181, Q319449, Q3100709, Q1204277, Q379573, Q557804, Q552334, Q1058741,Q2058283, Q1622414, Q373950, Q4391458, Q432432, Q35957}} → 
For  (which has 1 PWR + 2 boiling water reactors):
* {{#invoke:WikidataIB/sandbox |getSumOfParts |fwd=ALL| osd=n |qid=Q1412996 |vlist=Q377968, Q468846, Q558152, Q558181, Q319449, Q3100709, Q1204277, Q379573, Q557804, Q552334, Q1058741,Q2058283, Q1622414, Q373950, Q4391458, Q432432, Q35957}} → 
For  (which has 8 CANDU reactors):
* {{#invoke:WikidataIB/sandbox |getSumOfParts |fwd=ALL| osd=n |qid=Q795104 |vlist=Q377968, Q468846, Q558152, Q558181, Q319449, Q3100709, Q1204277, Q379573, Q557804, Q552334, Q1058741,Q2058283, Q1622414, Q373950, Q4391458, Q432432, Q35957}} → 
For  (which doesn't seem to have any reactors, according to Wikidata):
* {{#invoke:WikidataIB/sandbox |getSumOfParts |fwd=ALL| osd=n |qid=Q862589 |vlist=Q377968, Q468846, Q558152, Q558181, Q319449, Q3100709, Q1204277, Q379573, Q557804, Q552334, Q1058741,Q2058283, Q1622414, Q373950, Q4391458, Q432432, Q35957}} →
thread_title:  getSumOfParts 

message: In , the value of the property  which has the fixed qualifier "language of work or name" equal to a given language code (or default) is:
{{#invoke:WikidataIB/sandbox |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true}}            	
{{#invoke:WikidataIB/sandbox |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=sv}}   	
{{#invoke:WikidataIB/sandbox |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en}}   	
{{#invoke:WikidataIB/sandbox |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en-gb}}	
{{#invoke:WikidataIB/sandbox |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en-us}}
thread_title:  getValueByLang 

message: Testing getDescription
	{{#invoke:WikidataIB/sandbox |getDescription}}                                       	
	{{#invoke:WikidataIB/sandbox |getDescription |qid=}}                                 	
	{{#invoke:WikidataIB/sandbox |getDescription |qid=Q42}}                              	
	{{#invoke:WikidataIB/sandbox |getDescription |qid=Q42 |}}                            	
	{{#invoke:WikidataIB/sandbox |getDescription |qid=Q42 |1=}}                          	
	{{#invoke:WikidataIB/sandbox |getDescription |qid=Q42 |wikidata}}                    	
	{{#invoke:WikidataIB/sandbox |getDescription |qid=Q42 |1=wikidata}}                  	
	{{#invoke:WikidataIB/sandbox |getDescription |qid=Q42 |locally supplied description}}	
	{{#invoke:WikidataIB/sandbox |getDescription |qid=Q42 |none}}
thread_title:  getDescription 

message: Expensive call if using arbitrary access.
 Testing getAliases
	{{#invoke:WikidataIB/sandbox |getAliases |qid= |fwd=ALL}}                            	
	{{#invoke:WikidataIB/sandbox |getAliases |qid=Q407592 |fwd=}}                        	
	{{#invoke:WikidataIB/sandbox |getAliases |qid=Q407592 |fwd=ALL}}                     	
	{{#invoke:WikidataIB/sandbox |getAliases |qid=Q407592 |fwd=alias}}                   	
	{{#invoke:WikidataIB/sandbox |getAliases |qid=Q407592 |fwd=alias |Tramadol}}         	
	{{#invoke:WikidataIB/sandbox |getAliases |qid=Q407592 |fwd=ALL |spf=alias}}          	
	{{#invoke:WikidataIB/sandbox |getAliases |qid=Q407592 |fwd=ALL |spf=alias |Tramadol}}	
	{{#invoke:WikidataIB/sandbox |getAliases |qid=Q407592 |fwd=ALL |list=hlist}}         	
	{{#invoke:WikidataIB/sandbox |getAliases |qid=Q407592 |fwd=ALL |list=ubl}}           	
	{{#invoke:WikidataIB/sandbox |getAliases |qid=Q407592 |fwd=ALL |lang=de}}            	
	{{#invoke:WikidataIB/sandbox |getAliases |qid=Q407592 |fwd=ALL |lang=fr}}
thread_title:  getAliases 

message: ; debugging
replies: text:  →

text:  →

text:  →

text:  →

text:  →

text:  → 
;

text: ;

text:  →

text:  → 
But for the USA, we normally miss off the "US" part. So put it back and change Wikidata's "USA" to enwiki's "US" when skip is true.
;

text:  →

text:  → 
For British locations, it would skip to  which is the first instance of .  Unfortunately  is not an instance of a country, but an instance of a , according to Wikidata. So also test for Q3336843 when skip is true.
;

text:  →

text:  → 
Some locations (like ) have multiple values for . So check for qualifier  to pick the right one.
;

text:  →

text:  →
thread_title:  location 

message: ; Examining  
replies: text:  →

text:  →

text:  →

text:  →

text:  → 
; Using wrapper template

text:  →
thread_title:  examine 

message: Some test cases for the function formatDate. Call like {{#invoke:WikidataIB/sandbox |formatDate | 1 August 30 BCE |bc=BCE |df=dmy}}
 Input date: 1 August 30 BCE, 12:39:56
no parameters	
bc=BC        	
bc=BCE       	
bc=bc        	
bc=bce       	
bc=XYZ       	
df=dmy       	
df=DMY       	
df=mdy       	
df=MDY       	
df=ABC       	
df=y         	
bc=BCE df=dmy	
bc=BCE df=mdy	
bc=BCE df=y  	
bc=BC df=dmy 	
bc=BC df=mdy 	
bc=BC df=y   	
 Input date: 20 January 2017, 12:39:56
no parameters	
bc=BC        	
bc=BCE       	
bc=bc        	
bc=bce       	
bc=XYZ       	
df=dmy       	
df=DMY       	
df=mdy       	
df=MDY       	
df=ABC       	
df=y         	
bc=BCE df=dmy	
bc=BCE df=mdy	
bc=BCE df=y  	
bc=BC df=dmy 	
bc=BC df=mdy 	
bc=BC df=y
thread_title:  Format Dates