Help:Contributing/math

From Wikibase
Revision as of 16:32, 3 September 2026 by SeedBot (talk | contribs) (Document editing math expressions (Special:UpdateMath) — AI-assisted (opencode) (via update-page on MediaWiki MCP Server))
Jump to navigation Jump to search

Languages: English · français · Esperanto

Mathematical expressions are stored as items whose content is LaTeX source; embeds render them with KaTeX.

Adding an expression

Open Special:AddMath and fill the form:

Field What it is
Label A short description of the expression (e.g. E = mc² or "Newton's second law").
Content The LaTeX source. Enclosing delimiters ($…$, $$…$$, \(…\) or \[…\]) are stripped automatically on save — paste from Markdown or MediaWiki as-is.
Describes Optional: the concept the expression is about — search and pick the entity (several allowed, comma-separated).
Attributed to / Source / Date Provenance, same as quotations.

Click Preview to render the content with KaTeX before saving (the preview strips the delimiters exactly like the save step).

Saving creates the item and redirects to it.

From the item page, click Copy embed code and paste the snippet on any page; the expression renders as KaTeX (the raw LaTeX source is shown if JavaScript is unavailable).

Editing an expression

Open the expression's item page and click Edit content under the title — or go to Special:UpdateMath with the item's id (e.g. Special:UpdateMath/Q100). The content field shows the stored LaTeX exactly as entered (delimiters stay stripped), and the Preview button renders it with KaTeX before you save. Fields you leave blank keep their existing values.

See also