Module:Wd/testcases: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 81:
self:preprocess_equals('{{#invoke:wd/sandbox|property|edit|Q55|P395}}', wdib._getValue{'P395',qid='Q55',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'} .. ' [[File:OOjs UI icon edit-ltr-progressive.svg|frameless|text-top|10px|alt=Edit this on Wikidata|link=https://www.wikidata.org/wiki/Q55?uselang=en#P395|Edit this on Wikidata]]')
self:preprocess_equals('{{#invoke:wd/sandbox|property|edit@end|Q55|P395}}', wdib._getValue{'P395',qid='Q55',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'} .. '<span style="float:right">[[File:OOjs UI icon edit-ltr-progressive.svg|frameless|text-top|10px|alt=Edit this on Wikidata|link=https://www.wikidata.org/wiki/Q55?uselang=en#P395|Edit this on Wikidata]]</span>')
self:preprocess_equals('{{#invoke:wd/sandbox|property|P625|P31}}', '')
self:preprocess_equals('{{#invoke:wd/sandbox|property|Property:P625|P31}}', wdib._getValue{'P31',qid='P31',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'})
self:preprocess_equals('{{#invoke:wd/sandbox|property|eid=P625|P31}}', wdib._getValue{'P31',qid='P31',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'})
self:preprocess_equals('{{#invoke:wd/sandbox|property|eid=Property:P625|P31}}', wdib._getValue{'P31',qid='P31',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'})
self:preprocess_equals('{{#invoke:wd/sandbox|property|coord|P31}}', '')
self:preprocess_equals('{{#invoke:wd/sandbox|property|Property:coord|P31}}', wdib._getValue{'P31',qid='P31',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'})
self:preprocess_equals('{{#invoke:wd/sandbox|property|eid=coord|P31}}', wdib._getValue{'P31',qid='P31',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'})
self:preprocess_equals('{{#invoke:wd/sandbox|property|eid=Property:coord|P31}}', wdib._getValue{'P31',qid='P31',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'})
self:preprocess_equals('{{#invoke:wd/sandbox|property|normal+|Q55|P1082}}', wdib._getValue{'P1082',qid='Q55',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'})
self:preprocess_equals('{{#invoke:wd/sandbox|properties|normal+|Q55|P1082}}', table.concat({wdib._getValue{'P1082',qid='Q55',noicon='true',osd='no',rank='p',fwd='ALL'}, wdib._getValue{'P1082',qid='Q55',noicon='true',osd='no',rank='n',fwd='ALL'}}, ', '))
Line 132 ⟶ 140:
self:preprocess_equals('{{#invoke:wd/sandbox|label}}', '')
self:preprocess_equals('{{#invoke:wd/sandbox|label|raw}}', '')
self:preprocess_equals('{{#invoke:wd/sandbox|label|P625}}', wdib.getLabel{args={'P625'}})
self:preprocess_equals('{{#invoke:wd/sandbox|label|Property:P625}}', wdib.getLabel{args={'P625'}})
self:preprocess_equals('{{#invoke:wd/sandbox|label|eid=P625}}', wdib.getLabel{args={'P625'}})
self:preprocess_equals('{{#invoke:wd/sandbox|label|eid=Property:P625}}', wdib.getLabel{args={'P625'}})
self:preprocess_equals('{{#invoke:wd/sandbox|label|coord}}', wdib.getLabel{args={'P625'}})
self:preprocess_equals('{{#invoke:wd/sandbox|label|Property:coord}}', wdib.getLabel{args={'P625'}})
self:preprocess_equals('{{#invoke:wd/sandbox|label|eid=coord}}', wdib.getLabel{args={'P625'}})
self:preprocess_equals('{{#invoke:wd/sandbox|label|eid=Property:coord}}', wdib.getLabel{args={'P625'}})
self:preprocess_equals('{{#invoke:wd/sandbox|title|Q776}}', wdib.getSiteLink{args={qid='Q776'}})
self:preprocess_equals('{{#invoke:wd/sandbox|title|linked|Q776}}', '[[' .. wdib.getSiteLink{args={qid='Q776'}} .. ']]')