Module:Work link/testcases
Appearance
This is the test cases page for the module Module:Work link. Results of the test cases. |
local p = require('Module:UnitTests')
function p:test_something()
self:preprocess_equals_many('{{#invoke:Work link|link|', '}}', {
{
'Q19053527',
'<span class="wst-worklink wst-worklink-frbr-edition" data-wikidata-id="Q19053527"><span class="wst-worklink-title">[[War Prisoners (Darrow)|War Prisoners]]</span> by <span class="wst-worklink-authors"><span class="wst-worklink-creator">[[Author:Clarence Seward Darrow|Clarence Darrow]]</span></span> (<span class="wst-worklink-date">1919</span>)</span>',
},
}
)
end
return p