Template:Use TeX
Category:Main message boxes
Encourages authors to replace images with TeX code
The template automatically sets the following categories:
or
- Images with a TeX equivalent to keep (if parameter "Keep" contains a reason text)
or
- Chemistry Images with a TeX equivalent (if parameter "Keep" is empty and parameter 2 (type) is "ce" or "math chem")
Usage
{{Use TeX |1= |2= |Keep= }}
- Do put spaces in between adjacent
{{s and adjacent}}s - Do include the
1= - Do not include the tags; by default:
<math>…</math>tags will be added later - If this is a chemical equation. add
|2=chemto use<chem>…</chem>tags instead|2=math chemis an option if needed for color or alignment, but do include your\ces- Any other values in the second parameter will be ignored
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1code Code | TeX code | TeX code | empty | optional |
2type Type | Type | type of formula | math | optional |
Keep | Keep | reason not to delete the image anyway | empty | optional |
|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information Encourages authors to replace images with TeX code
| ||||||||||||||||||||
Additional information
The template is intended to be used in the following namespaces: the File namespace
The template is intended to be used by the following user groups: all users
Localization
This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:Use TeX/layout.
To add your language to the list of languages supported by this template, please copy the code of Template:Use TeX/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.