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 106: Line 106:
MathML with SVG or PNG fallback
MathML with SVG or PNG fallback


All three are heavy with html and css which don't belong in the metadata.
All three are heavy with html and css which doesn't belong in the metadata.


This function gets the rendered form of an equation according to the editor's preference.  It then searches the
Without this function, the metadata saved in the raw wikitext contained the rendering determined by the settings
rendering for the text equivalent of the rendered equation and replaces the rendering with that.
of the last editor to save the page.


When a replacement is made, this function returns true and the value with replacement
This function gets the rendered form of an equation according to the editor's preference before the page is saved.  It
then searches the rendering for the text equivalent of the rendered equation and replaces the rendering with that so
that the page is saved without extraneous html/css markup and with a reasonably readable text form of the equation.
 
When a replacement is made, this function returns true and the value with replacement; otherwise false and the intital
value.  To replace multipe equations it is necesary to call this function from within a loop.


]=]
]=]
Anonymous user