User:Mgkrupa/Code and Symbols

Math LaTeX code

 * Detexify − Online tool: Find LaTeX code for a symbol by drawing it. (More tools here)
 * Shapecatcher − Online tool: Find Unicode and HTML codes for a symbol by drawing it.


 * Common misc code

Indentation:
 * Do NOT use a colon  to indent because it produces to broken HTML code and reduces accessibility.


 * Use  for indentation of text; for indenting a single line,   can also be used.
 * Use  instead of   to display math equations on their own line.
 * Do NOT use a colon  or   or   for indentation − they are  for quotes.

Do NOT use  for pseudoheadings (sections that don't appear in the table of contents).
 * Use  instead.

"Do not use possibly unpronounceable symbols"


 * MOS:COLORS has a table of acceptable colors


 * See also: WikiProject Mathematics/Proofs


 * In non-article namespaces only: Can also use  and   (does not hide anything from mobile users)


 * Indentation


 * Table of contents

Common math code

 * Help:Displaying a formula (Commutative diagrams)
 * List of mathematical symbols by subject
 * WP:LaTeX symbols
 * LaTeX + Unicode list: Long list 1, Long list 2.
 * Short list.

LaTeX code


 * Involving indices/subscripts

The following is used in the article Fréchet–Urysohn space.

$$\begin{alignat}{11} &x_1^1, &x_1^2,  &x_1^3,    &x_1^4,  &x_1^5,  &\ldots  &x_1^i,    \ldots  &\to        &x_l \\ &x_2^1, &x_2^2,  &x_2^3,    &x_2^4,  &x_2^5,  &\ldots  &x_2^i,    \ldots  &\to        &x_2 \\ &x_3^1, &x_3^2,  &x_3^3,    &x_3^4,  &x_3^5,  &\ldots  &x_3^i,    \ldots  &\to        &x_3 \\ &x_4^1, &x_4^2,  &x_4^3,    &x_4^4,  &x_4^5,  &\ldots  &x_4^i,    \ldots  &\to        &x_4 \\ &         &          &\;\,\vdots  &          &          &          &\;\,\vdots            &             &\;\,\vdots \\ &x_l^1, &x_l^2,  &x_l^3,    &x_l^4,  &x_l^5,  &\ldots  &x_l^i,    \ldots  &\to        &x_l \\ &         &          &\;\,\vdots  &          &          &          &\;\,\vdots            &             &\;\,\vdots \\ &         &          &            &          &          &          &                      &             &\,\downarrow \\ &         &          &            &          &          &          &                      &           &\;x \\ \end{alignat} $$

$$\begin{alignat}{11} &x_1^1, &x_1^2,  &x_1^3,    &x_1^4,  &x_1^5,  &\ldots  &x_1^i,    \ldots  &\to        &x_l \\ &x_2^1, &x_2^2,  &x_2^3,    &x_2^4,  &x_2^5,  &\ldots  &x_2^i,    \ldots  &\to        &x_2 \\ &x_3^1, &x_3^2,  &x_3^3,    &x_3^4,  &x_3^5,  &\ldots  &x_3^i,    \ldots  &\to        &x_3 \\ &x_4^1, &x_4^2,  &x_4^3,    &x_4^4,  &x_4^5,  &\ldots  &x_4^i,    \ldots  &\to        &x_4 \\ &         &          &\;\,\vdots  &          &          &          &\;\,\vdots            &             &\;\,\vdots \\ &x_l^1, &x_l^2,  &x_l^3,    &x_l^4,  &x_l^5,  &\ldots  &x_l^i,    \ldots  &\to        &x_l \\ &         &          &\;\,\vdots  &          &          &          &\;\,\vdots            &             &\;\,\vdots \\ &         &          &            &          &          &          &                      &             &\,\downarrow \\ &         &          &            &          &          &          &                      &           &\;x \\ \end{alignat} $$

Spaces and Sizes

 * Spacing


 * See also: em (typography) and Help:Displaying a formula
 * Zero-width space:        (The LaTeX   and   do  work on Wikipedia)

Symbols (LaTeX)

 * Links to Math symbol articles


 * Unicode and LaTeX


 * List of mathematical symbols by subject (old version)
 * List of logic symbols
 * Blackboard bold
 * oeis.org's List of LaTeX mathematical symbols
 * Help:Displaying a formula
 * Short list of common Unicode/LaTeX symbols
 * Long list of Unicode/LaTeX symbols and codes


 * LaTeX


 * Help:Displaying a formula - An extensive list of LaTeX examples.
 * LaTeX symbols


 * Unicode


 * Lists of Mathematical operators and symbols in Unicode
 * Glossary of mathematical symbols
 * Mathematical Operators and Supplemental Mathematical Operators
 * List of mathematical symbols
 * Miscellaneous Math Symbols: A, B, Technical
 * Arrow (symbol) and Miscellaneous Symbols and Arrows and arrow symbols
 * ISO 31-11 (Mathematical signs and symbols for use in physical sciences and technology)
 * Number Forms
 * Geometric Shapes
 * Mathematical symbols
 * Mathematical Alphanumeric Symbols (Unicode block)
 * Mathematical constants and functions
 * Table of mathematical symbols by introduction date
 * Unicode Math Symbols
 * List of Unicode characters
 * Letterlike Symbols
 * Unicode block
 * Wiktionary:Appendix:Variations of "="


 * Conventions and guidelines


 * Typographical conventions and common meanings of symbols:
 * APL syntax and symbols
 * Greek letters used in mathematics, science, and engineering
 * Latin letters used in mathematics
 * List of common physics notations
 * List of letters used in mathematics and science
 * List of mathematical abbreviations
 * Mathematical notation
 * Notation in probability and statistics
 * Physical constants
 * Typographical conventions in mathematical formulae
 * Wikipedia notation and formula guidelines:
 * Manual of Style/Mathematics
 * WikiProject Logic/Standards for notation
 * Help:Special characters


 * Other


 * Diacritic
 * Language of mathematics


 * Unicode characters and corresponding LaTeX math mode command
 * Unicode and equivalent LaTeX code listed
 * "Comprehensive List of Mathematical Symbols" (PDF). Retrieved 2020-08-08.
 * Symbols defined by unicode-math


 * Category:Mathematical formatting templates


 * From compart.com:


 * Unicode Block “Mathematical Operators”
 * Unicode Block “Supplemental Mathematical Operators”
 * Unicode Block “Miscellaneous Mathematical Symbols-A”
 * Unicode Block “Miscellaneous Mathematical Symbols-B”
 * Unicode Block “Mathematical Alphanumeric Symbols”


 * MathJax basic tutorial and quick reference


 * Symbols for Operations/Relations


 * Unicode + corresponding LaTeX code
 * Common Unicode/LaTeX symbols: Short list Long list

Words/Terminology
Useful terminology or words with special symbols


 * Fréchet
 * Kuratowski closure axioms has useful terminology.


 * : Category:en:Mathematics and Glossary of areas of mathematics
 * : Thesaurus:Mathematics


 * A facultative point is a point at which a given function is positive.
 * Proof by intimidation
 * Mathematics Made Difficult


 * Mathematical analysis
 * Functional analysis
 * Linear algebra and Glossary of linear algebra
 * Complex analysis
 * Calculus
 * Measure theory


 * Probability theory and Probability and Glossary of probability and statistics
 * Statistics
 * Combinatorics


 * Geometry
 * Differential geometry
 * Non-Euclidean geometry
 * Shapes


 * Topology and Glossary of topology
 * Set theory and Glossary of set theory
 * Category theory
 * Glossary of order theory
 * Graph theory


 * Algebra and Glossary of abstract algebra
 * Algebraic geometry
 * Group theory and Glossary of group theory
 * Ring theory
 * Number theory
 * Arithmetic

Non-Latex Code



 * - Can also use su but you'll need to write "p=" and "b=" as in: $$ which gives: $$
 * X$over base$ X
 * X$base below$ X
 * X$$ X
 * X$super subsc$ X


 * left center right - For aligning text that comes after it




 * See Help:Table for info on centering tables.

Text goes here


 * for big font size (165%) OR          for custom font size.


 * 3
 * 3
 * 3
 * 3
 * 3



Divide text into multiple columns: The COVID‑19 pandemic, also known as the coronavirus pandemic, is an ongoing pandemic of coronavirus disease 2019 (COVID‑19) caused by severe acute respiratory syndrome coronavirus 2 (SARS‑CoV‑2). It was first identified in December 2019 in Wuhan, China. The World Health Organization declared the outbreak a Public Health Emergency of International Concern on 30 January 2020 and a pandemic on 11 March.


 * adds 3 spaces.
 * adds 4 spaces.
 * - Standard space character - HTML:   Unicode:


 * - To place a single thin space (unicode: )


 * OR       - Wraps text on the left AND right with a thin space
 * Ex:     rather than:  (x)


 * - Separates a list of arguments by
 * EX:


 * - Unicode:


 * OR       - Wraps text on the left AND right with a hair space
 * Ex:     rather than:  (x)


 * - HTML:   Unicode:


 * OR       - Wraps text on the left AND right with a hair space
 * Ex:     rather than:  (x)


 * - Empty string i.e. 0-width space
 * - Empty string i.e. 0-width space

Equations and boxes
For Box shadows

- See also: CSS box-shadow

Box shadows:


 * Option 1:

Step (1): Wrap the equation in  where  's value becomes an anchor name.

Step (2): Reference the equation by its :

Example:

$$x \mapsto f x$$ where the equation above

Output:

$$x \mapsto f x$$ where the equation above


 * Option 2:

Use  to create an


 * Option 3:

produces numbered blocks. The more colons  you put then the more the equation is indented.


 * Option 4:

$super subsc$

Use  for more colors.


 * Other options:

HTML LINK - ASSUMES THE EQUATION THAT IS IN LaTeX

$top bot$


 * HTML Link to equation 3.5
 * Default anchor name is:  where   is the equation number used in argument

Step (2) Use  to create a link

Aligning: and

 * Help:Cheatsheet


 * For additional vertical space at the end of a line, use  instead of just   (  is twice the height of the   character).


 * Note:  does not add space between columns while   and   do.

The Wikipedia equivalent of the LaTeX code  is   (displays as $$\stackrel{a}{b}$$).

Definitions -


Ex: With alt text:
 * Say that if .... this term (defined here), ...
 * Say that if .... this term (defined here), ...

Ex: alt text:
 * Say that if .... this term (defined here), ...
 * Say that if .... this term (defined here), ...

Color

 * "Latex does not have a command for setting the background color."


 * CSS colors


 * Manual of Style/Accessibility − MOS:COLORS has a table of acceptable colors. − More details at MOS:COLOR


 * Color sample
 * Font color

Lists

 * but   does not produce "7a".
 * but   does not produce "7a".


 * or
 * or
 * or
 * or


 * for a non-filled circle (not a closed disk, but just its boundary)
 * for a filled disk
 * for a filled disk


 * or


 * Blank, no symbol shown.


 * See list-style-type for more options for style="list-style-type:VALUES".


 * hlist
 * produces: Entry1 · entry2 · entry3


 * produces: Entry1 · entry2 · entry3


 * flatlist

Entry 1

Entry 2

entry 3

produces: Entry 1

Entry 2

entry 3

Using flatlist improves WP:ACCESSIBILITY:



produces:

 An extremely long sentence with repeated words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words. Item 2. 

where note that "1."

The default is " "; that is:  which produces:

 An extremely long sentence with repeated words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words. Item 2. 

where note that there is directly underneath the "1."

Produces:

 Item 1.</li> <li>Item 2.</li> </ol>

The default is:

<ol> <li>Item 1.</li> <li>Item 2.</li> </ol>

Tables and columns

 * Help:Sorting
 * Using the Date table sorting template: Help:Sorting


 * Help:Table

For side by side info (e.g. code next to output): (The  is for border + background) <div style="background: white; border: 2px solid rgb(0, 255, 0); padding: 2px;">


 * Template:Diagonal split header - "a table header cell split diagonally"

<div style="background: white; border: 2px solid rgb(0, 255, 0); padding: 2px;">

You can also use other languages for (WikiMedia partial list here).
 * - for WikiCode
 * (ending tag is ) in place of the   tags.
 * (ending tag is ) in place of the   tags.
 * (ending tag is ) in place of the   tags.
 * (ending tag is ) in place of the   tags.


 * Template:Table cell templates - List of templates that color individual cells (in a consistent way across Wikipedia); can also add text to the cell.
 * Ex:


 * EXAMPLES of Tables:


 * Lots of Examples @ MediaWiki
 * Atmosphere of Earth
 * Template:Periodic table
 * Template:Periodic table (32 columns, compact)
 * Many more examples can be found by searching through the : Template:Periodic table templates

Column 1 start:
 * 1
 * 2

Column 2 start: If there is not enough space to display 2 columns then the second column will be displayed underneth the first column. Otherwise they will be side by side.
 * 3
 * 4
 * 5

See also, Main, and other Hatnotes

 * About
 * About-distinguish2

Images

 * Wikipedia:How to create charts for Wikipedia articles
 * Graphics tutorials
 * This program displays webpages as a color blind person would see it. (See also MOS:COLORCODING).


 * Wading through water.jpg stripping.]]


 * Help:Pictures - Detailed info about displaying pictures
 * Extended image syntax - Gives details about options that can be used in displaying an image; i.e.
 * Name


 * Images - Lists links to info about Wikipedia images.


 * Overlay – "Allows image numbered, textual number, or colour tag overlays to be positioned over an image"


 * 


 * Annotated image
 * - "allows the addition of explanatory notes to images in the form of actual text (which can also contain links)"
 * - "Other uses include cropping an image"


 * - Examples below taken from Multiple image.


 * automatic resizing of all images to the same height


 * Insert  to automatically resize of all images to the SAME HEIGHT and to a given total width"
 * Remove  to prevent automatic resizing of all images to the same height


 * "The main function of Panorama, as opposed to Wide image, is that the template allows you to specify a desired height of the panorama."


 * Use  to prevent the panorama image from (possibly) being squeezed to a reduced width.


 * Panorama

EXAMPLE NOT DISPLAYED TO REDUCE LOADING TIME.

EXAMPLE NOT DISPLAYED TO REDUCE LOADING TIME.


 * Scalable image

Code (Displaying)

 * and  - Displaying templates

The  template is just like   except   allows for arguments.


 * - Displaying template parameters

<div style="background: white; border: 2px solid rgb(0, 255, 0); padding: 2px;">

A single space in front of a line displays the line as code.

Example:

<div style="background: white; border: 2px solid rgb(0, 255, 0); padding: 2px;">

displays

_<-- _ indicates where the single space is. This line has no space so is displayed as normal. --> code_here {|class="wikitable sortable" !Name and surname!!Height





<div style="background: white; border: 2px solid rgb(0, 255, 0); padding: 2px;">

syntaxhighlight

 * Main: MediaWiki:Extension:SyntaxHighlight
 * For examples, see Wiki source code of: Help:Table

Can also use:


 * Option:   Example:
 * Language list at: MediaWiki:Extension:SyntaxHighlight#Supported languages
 * Use moin or "html+handlebars" or css for Wiki markup because "Pygments does not yet provide a "wikitext" or "mediawiki" lexer".
 * Option:   Example:
 * Option:   Example:
 * Option:   Example:
 * Option:   Example:

<div style="background: white; border: 2px solid rgb(0, 255, 0); padding: 2px;">


 * Line numbers

Show line numbers with  e.g.:

From: Help:Sorting

<div style="background: white; border: 2px solid rgb(0, 255, 0); padding: 2px;">


 * Misc: Over the edit box, there is a "Syntax highlighting" button (its icon is a marker angled at 45 degrees and it is to the left of "> Advanced > Special characters > Help > Cite"). It is a very helpful feature that is not on by default.

Maps

 * Maps for Wikipedia


 * - Clickable and colorable world map that highlights countries that your mouse hovers over.
 * See here for an example that uses  in combination with the ,  ,  , and   templates.


 * - Uses OpenStreetView
 * Example: Siege of Saguntum


 * - Map allowing multiple labels
 * - Only allows 1 label.
 * Example: Example where a user may select any one of multiple maps.


 * Examples: User:Rr016 has many examples of high quality maps.


 * legend -    produces {{legend|OliveDrab|Lists of colors}} {{legend|#f1f580|Template:Color chart X11}}


 * Wikimedia:Category:Map pointers

Using

<div style="background:white; border:1px solid rgb(0, 0, 0); padding:2px; align:center; text-align:left; width:260; position:relative;">

For


 * − Necessary for the pushpin map to display.
 * Template:Location map − "Any non-blank value (, , etc.) will cause the template to display the map specified in the map definition template as  , which is usually a relief map; see the example at Template:Location map+/relief."
 * − "The text of the label to display next to the identifying mark; a wikilink can be used. You can enclose the label inside of if you want to make sure that it stays on a single line. The default (if not specified) is no label, just the marker."
 * − "The position of the label relative to the identifying mark; valid values are,  ,  ,   and  . This defaults to either   or  , depending on the coordinates of the marker and its position relative to the right border of the map image. When  , any defined label will not be displayed with the mark, but it will be used to create the default caption."
 * − "Can be used to specify an image to be superimposed on the regular pushpin map. Equivalent to  parameter in Template:Location map."
 * − "If needed, to specify more exactly where (or what) coordinates are given (e.g. Town Hall) or a specific place in a larger area (e.g. a city in a county). Example: In the article Masovian Voivodeship,  specifies Warsaw."
 * − "Reference(s) for coordinates, placed within  tags, possibly using the citing format at "

Links and anchors

 * Wiktionary & Linking between Wikis


 * or
 * and  both display: page and page with out the prefix.


 * Links to Wikimedia Commons


 * generates a link to the corresponding Commons category.
 * Place in the "External links" section of the article.

Ex:  in the article "ArticleName" produces:
 * Media related to ArticleName at Wikimedia Commons


 * Links to category pages; renaming links


 * produces: Sodium


 * Adding categories


 * To make "Category:Isotopes of sodium" a subcategory of "Category:Sodium", edit the category page "Category:Isotopes of sodium" and add the code " " as you normally would with an article.
 * Add this  "to add an article called Albert Einstein to the category "People" and have the article sorted by "Einstein, Albert""


 * Annotated links

Ex:  the second parameter is useful e.g. so "Braarudosphaera bigelowii" is display instead of ""Braarudosphaera bigelowii"



EX:


 * DISADVANTAGE: Using text prevents "Displayed Text" from being highlighted by a back.


 * Add the  to line ABOVE section title:

Misc
CSS Text shadows


 * - Ex:  produces:  as in the article Gymnosperm.



Taken from: WP:SDNOTDEF:
 * be short – no more than about 40 characters (but this can be slightly exceeded if necessary)
 * be written in plain text – without HTML tags or Wiki markup
 * Start with a capital letter
 * avoid initial articles (A, An, The) unless essential to the meaning
 * no period.

Place BELOW Short description at the top of the page's source.


 * - Custom title.
 * - Lowercase first letter of the page's title.
 * Lowercase first letter of the page's title and make page's title italics except for anything in brackets. Use  to force entire title to be italics.
 * - Content in brackets are NOT italicized. Use yes to make the entire title italics.


 * - For rendering lines where the code


 * - Horizontal line/rule