Module:Wd/testcases: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 42:
self:preprocess_equals('{{#invoke:wd|property|linked|Q55|P625}}', "[https://tools.wmflabs.org/geohack/geohack.php?language=en&params=" .. ({mw.ustring.gsub(wdib._getValue{'P625',qid='Q55',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'}, "[°′″ ]", "_")})[1] .. "_globe:earth " .. ({mw.ustring.gsub(({mw.ustring.gsub(({mw.ustring.gsub(wdib._getValue{'P625',qid='Q55',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'}, "′", "'", 2)})[1], '″', '"', 2)})[1], " ", ", ", 1)})[1] .. "]")
self:preprocess_equals('{{#invoke:wd|property|raw|Q55|P625}}', ({mw.ustring.gsub(wdib._getValue{'P625',qid='Q55',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'}, "[°′″ ]", "/")})[1])
self:preprocess_equals('{{#invoke:wd|property|Q55|coord}}', ({mw.ustring.gsub(({mw.ustring.gsub(({mw.ustring.gsub(wdib._getValue{'P625',qid='Q55',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'}, "′", "'", 2)})[1], '″', '"', 2)})[1], " ", ", ", 1)})[1])
self:preprocess_equals('{{#invoke:wd|property|linked|Q55|P41}}', '')
self:preprocess_equals('{{#invoke:wd|property|raw|Q915684|P2534}}', '')