Jump to content

Module:Citation/CS1/COinS: Difference between revisions

no edit summary
m>Trappist the monk
No edit summary
m>Trappist the monk
No edit summary
Line 118: Line 118:


if not rendering then -- when value doesn't have a math stripmarker, abandon this test
if not rendering then -- when value doesn't have a math stripmarker, abandon this test
return 'not rendering';
-- return 'not rendering';
-- return value;
return value;
end
end
Line 150: Line 150:
local function coins_cleanup (value)
local function coins_cleanup (value)
value = coins_replace_math_stripmarker (value); -- replace math stripmarker with text representation of the equation
value = coins_replace_math_stripmarker (value); -- replace math stripmarker with text representation of the equation
value = value:gsub ('\127UNIQ%-%-math%-[%a%d]+%-QINU\127', "MATH RENDER ERROR"); --
value = mw.text.unstripNoWiki (value); -- replace nowiki stripmarkers with their content
value = mw.text.unstripNoWiki (value); -- replace nowiki stripmarkers with their content
value = value:gsub ('<span class="nowrap" style="padding%-left:0%.1em;">&#39;s</span>', "'s"); -- replace {{'s}} template with simple apostrophe-s
value = value:gsub ('<span class="nowrap" style="padding%-left:0%.1em;">&#39;s</span>', "'s"); -- replace {{'s}} template with simple apostrophe-s
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.