Help:Text formatting

{{Wikipedia how to}}

Paragraphs

Paragraphs are separated by a single blank line.

{{markup

|HyperText Markup Language

HyperText Markup Language

|HyperText Markup Language

HyperText Markup Language

}}

Bold

{{see|MOS:BOLD}}

Bold text is stylistically offset from other text without conveying extra importance. The most common use of boldface is to highlight the article title, and often synonyms, in the lead section. Do not use bold text for emphasis.

Use ''' to open and close bold text.

{{markup

|HyperText Markup Language

|HyperText Markup Language

}}

Strong

{{see|Template:Strong}}

Visually, strong text displays the same as boldfaced text. However, on Wikipedia, the difference between them is that the "strong" element is used to indicatre importance or urgency.

Use ... or {{tt| {{ strong}} | ... }} to open and close strong text.

{{markup

|HyperText Markup Language

|HyperText Markup Language

}}

Italic

{{see|MOS:ITALIC}}

Italic type (text like this) should be used for certain names and titles, including court case names, named vehicles, and works of art and artifice.

Use '' to open and close italic text.

{{markup

|The Iliad

|The Iliad

}}

Emphasis

Font size

Use the template   {{tt| {{ small}} | ... }}  to switch to a font smaller than the current font.

Use the template   {{tt| {{ big}} | ... }}       to increase font to a larger size than the current font.

::

style="text-align:left;vertical-align:center;"
{{tt| Text inside "big" will {{big| display in an }}}}
{{tt| {{big| enlarged }} font.}}

|  

| Text inside "big" {{big| display in }}
{{big| an enlarged }} font.


{{tt| Without size-formatting, the text }}
{{tt|displays in the current default font.}}

|  

| Without size-formatting, the text
displays in current default font.


{{tt| Text inside "small" {{small| display in a }}}}
{{tt| {{small| reduced-size }} font.}}

|  

| This text will {{small| display in a }}
{{small| reduced-size }} font.

Note that the current default size depends on context and enclosing formatting: For example, footnotes and references default to displayed in a slightly smaller-than-usual font, and headings (of various levels) default to displaying in a slightly larger font.

Template {{tt|{{small| ... }}}} is a substitute for HTML {{tag|small}}.

Template {{tt|{{big| ... }}}} is a substitute for HTML {{tag|big}}.

Font style

; Teletype or typewriter fonts:

  • {{tt|{{tt| ... }}}} is a substitute for {{tag|tt}} in HTML.
  • {{code|{{code| ... }} }} adds shading on top of the typewriter font.

; Serif fonts:

  • {{code| {{math| ... }} }} displays text in the serif font used by TeX for rendering text generated from input embedded in {{tag|math}}. TeX is the math typesetting software (mostly) installed on the wikipedia.

::Even if you don't edit math, the math font can be used to greatly improve the legibility of Greek text which us non-Greeks find hard to read in san-serif, with all the little shapely clues removed. Compare the {{tt|typewriter}}, {{math|math}}, and default san-serif fonts, below:

::

style="vertical-align:top;"

| {{nowrap|{{tt| {{math| Είναι όλα ελληνικά για μένα }} }} }}

|  

| (example how to use the math font template)

style="vertical-align:top;"

| {{math| Είναι   όλα   ελληνικά   για   μένα }}

|

|(result of line above. Nice, isn't it?)

style="vertical-align:top;"

| Είναι όλα ελληνικά για μένα

|

| (default, sans-serif font – even worse than the
{{tt|typewriter font}}, above, in the first line)

:* {{code| {{mvar| ... }} }} displays text in the {{mvar|italic serif}} font used for rendering variables in text explaining a mathematical equation, etc. It's just a short-cut combination of italic and the {{math|math}} font. It's used a lot in math, since all usual variable (mathematics)s are italic and {{math|serif}} {{mvar|both}}. For folks not conversant with mathematical typesetting rules, it probably seems like fluff, even though for us inside mathematics, the ubiquitous use of an {{mvar|italic serif font}} for most (but not all) single-letter symbols makes it a huge time-saver.

Font color

{{See|Help:Wiki markup#Coloring and highlighting text}}

Centering text

See also