Module:Sandbox/RexxS/Wd: Difference between revisions

Content deleted Content added
create skeleton
 
more examples
Line 9:
function p.rundemo(frame)
local out = {}
local val
 
local-- val1this =is wd._property(equivalent to {"{wikidata|property|Q17533992", "|P31" } )}
val = wd._property( {"Q17533992", "P31"} )
out[#out+1] = val1val
 
-- this is equivalent to {{wikidata|property|Q17533992|P1435}}
val = wd._property( {"Q17533992", "P1435"} )
out[#out+1] = val
 
-- this is equivalent to {{wikidata|qualifier|Q17533992|P1435|P580}}
val = wd._qualifier( {"Q17533992", "P1435", "P580"} )
out[#out+1] = val
 
-- this is equivalent to {{wikidata|property|qualifier|Q17533992|P1435|P580}}
return ">" .. table.concat(out, "<br>") .."<"
val = wd._property( {"qualifier", "Q17533992", "P1435", "P580"} )
out[#out+1] = val
 
-- this is equivalent to {{wikidata|property|reference|Q17533992|P1435}}
val = wd._property( {"reference", "Q17533992", "P1435"} )
out[#out+1] = val
 
return "=== Demo ===<br>" .. table.concat(out, "<br>") .."<"
end