Content deleted Content added
add cases and strip cases |
add |
||
(4 intermediate revisions by the same user not shown) | |||
Line 226:
-- hp ymd
{ '10 pm, 1973-05-01', '1973-05-01 22'},
{ '10:38:, May 1, 1973', 'Unrecognized pattern'},
{ '10:, May 1, 1973', 'Unrecognized pattern'},
{ '10, May 1, 1973', 'Unrecognized pattern'},
-- invalid
Line 321 ⟶ 325:
{ ' ', 'Empty input' },
--{ '{{Start date|2012|12|10}}', 'Has metadata template' },
--{ '{{Enddate|2013|12|10}}', 'Has metadata template' },
--[[
Line 339 ⟶ 343:
function p:test_emitMetadata() -- Must begin with 'test'
self:preprocess_equals_many('{{#invoke:Sandbox/Hellknowz/Test|emitMetadata|<nowiki>', '</nowiki>|dtstart=yes|dtend=yes|noTrackingCat=yes}}', {
-- different styles
Line 356 ⟶ 360:
{ '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>' },
{ '3 May 2013 <!--Hello-->', '<span style="display:none"> (<span class="dtstart">2013-05-03</span>)</span>' },
{ '3 May 2013 {{Flag icon|USA}}', '<span style="display:none"> (<span class="dtstart">2013-05-03</span>)</span>' },
{ '3 May 2013<ref>Excellent job</ref>', '<span style="display:none"> (<span class="dtstart">2013-05-03</span>)</span>' },
{ '<!--Don`t change to 4-->3 May 2013', '<span style="display:none"> (<span class="dtstart">2013-05-03</span>)</span>' },
}, { nowiki = true } )
Line 391 ⟶ 400:
{ '{{Flagicon|UK}} 3 May 2013', '3 May 2013' },
{ '{{Flagicon|UK}} {{Flag icon|USA}} 3 May 2013', '3 May 2013' },
{ '3 May 2013{{Flagicon|UK}}', '3 May 2013' },
{ '3 May 2013 {{Flagicon|UK}} {{Flag icon|USA}} ', '3 May 2013' },
{ '{{Nowrap|3 May 2013}}', '3 May 2013' },
{ '{{no break | 3 May 2013 }}', '3 May 2013' },
}
|