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 100: Line 100:
--[=[-------------------------< C O I N S _ R E P L A C E _ M A T H _ S T R I P M A R K E R >------------------
--[=[-------------------------< C O I N S _ R E P L A C E _ M A T H _ S T R I P M A R K E R >------------------


There are three options for math markup that depends on the editor's math preference settings.  These settings
There are three options for math markup rendering that depend on the editor's math preference settings.  These
are at [[Special:Preferences#mw-prefsection-rendering]] and are
settings are at [[Special:Preferences#mw-prefsection-rendering]] and are
PNG images
PNG images
TeX source
TeX source
Line 120: Line 120:


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 false, value;
return false, value;
end
end
Line 138: Line 137:
return true, value:gsub (stripmarker, rendering, 1);
return true, value:gsub (stripmarker, rendering, 1);
end
end


--[[--------------------------< C O I N S _ C L E A N U P >----------------------------------------------------
--[[--------------------------< C O I N S _ C L E A N U P >----------------------------------------------------
Line 148: Line 148:
TODO: move the replacement patterns and replacement values into a table in /Configuration similar to the invisible
TODO: move the replacement patterns and replacement values into a table in /Configuration similar to the invisible
characters table?
characters table?
]]
]]


Anonymous user