Content deleted Content added
merge to emit |
strip extras test |
||
Line 313:
{ 'May 2013 – February 2014', '<span style="display:none"> (<span class="dtstart">2013-05</span><span class="dtend">2014-02</span>)</span>' },
{ '2013 – 2014', '<span style="display:none"> (<span class="dtstart">2013</span><span class="dtend">2014</span>)</span>' },
}, { nowiki = true } )
end
function p:test_stripFieldExtras() -- Must begin with 'test'
self:preprocess_equals_many('{{#invoke:Sandbox/Hellknowz/Test|stripFieldExtras|', '}}', {
-- references stripping
Line 319 ⟶ 328:
{ '3 May 2013<ref name="hello">Well, hello there!</ref>', '2013-05-03' },
{ '3 May 2013<ref name="hello">Broken', '' },
{ '3 May 2013<ref></ref>', '2013-05-03' },
{ '3 May 2013<ref>Well, hello there!</ref><ref>Well, hello!</ref>', '2013-05-03' },
{ '3 May 2013<ref name="hello">Well,</ref><ref name="hello">..hello!</ref>', '2013-05-03' },
{ '3 May 2013<ref></ref><ref></ref>', '2013-05-03' },
}, { nowiki = true } )
|