User:Make equable/Edit help/Formatting

Fonts

edit

Typewriter font, computer code font

edit

A typewriter font is sometimes used for technical terms and computer code.

typewriter

renders as

typewriter

<code>computer code</code>.

renders as

computer code

Small caps

edit
<span style="font-variant:small-caps">Text</span>

renders as

Text

Small text

edit
This is to demonstrate <small>small text</small> template.

renders as

This is to demonstrate small text template.

Big text

edit
This is to demonstrate <big>big text</big> template.

renders as

This is to demonstrate big text template.

Coloured text

edit
{{color|blue|colour}}

renders as

colour

Strike out

edit
<strike>strike out deleted material</strike>

Underline

edit
<u>underline new material</u>

Centred text

edit
<center>text</center

Highlighting in talk pages

edit
{{Font color||yellow|highlight}}

highlight

Abbreviations

edit
{{H:title|Doctor|Dr}}

renders as

Dr

Extra parameters: |link=yes/no (defaults to "no")|dotted=yes/no (defaults to "yes")
(or)

{{abbr|Dr|Doctor}} (or) <abbr title="Doctor">Dr</abbr>

Breaking and non-breaking words or lines

edit

Word break

edit
<wbr>

Line break

edit
<br>

A non-breaking space

edit
&nbsp; or {{nowrap}} or  {{nowrap begin}} + {{nowrap end}} or {{spaces|N}}

A non-breaking hyphen

edit
&#8209;

Special symbols

edit

Add Ampersand (&)

edit
"&amp;" - renders "&"

Add "<"

edit
&lt;

Add a pipeline (|)

edit

To show a visible pipe, use

<nowiki>|</nowiki> or &#124;

Maintain spacing and breaking in a quote or poem

edit
<poem>
Line1
  Line2
Line3
  Line4
</poem>

renders as

Line1
  Line2
Line3
  Line4

Creating tables

edit
Template Rendered as


{|
|+ caption
|-
|cell 11||cell 12
|-
|cell 21||cell 22
|}

caption
cell 11 cell 12
cell 21 cell 22


{| border="1"
|+ caption
|-
|cell 11 first cell ||cell 12 second cell
|-
|cell 21||cell 22
|}

caption
cell 11 cell 12
cell 21 cell 22


{| border="1"
|+ caption
|-
|cell 11 first cell ||cell 12 second cell
|-
|align=right|cell 21||align=left|cell 22
|}

caption
cell 11 first cell cell 12 second cell
cell 21 cell 22
A row of column headings is identified by using "! scope="col" |" instead of "|", and using "!! scope="col" |" instead of "||". To avoid boldening, add "|" before "! scope="col""


{| border="1"
|+ caption
|-
|! scope="col" | Heading 1
|! scope="col" |Heading 2
|-
|cell 11||cell 12
|-
|cell 21||cell 22
|}

caption
Heading 1 Heading 2
cell 11 cell 12
cell 21 cell 22
For row heading, " scope="row"&#124 " instead of "&#124".


{| border="1"
|+ caption
|-
! scope="col" | Column Heading 1
! scope="col" | Column Heading 2
! scope="col" | Column Heading 3
|-
! scope="row" | Row heading1
|cell 12||cell 13
|-
! scope="row" | Row heading2
|cell 22||cell 23
|}

caption
Column Heading 1 Column Heading 2 Column Heading 3
Row heading1 cell 12 cell 13
Row heading2 cell 22 cell 23
If you want narrow one-pixel wide borders around all the cells use this in the top line of the table, use

" {| border="1" style="border-collapse:collapse;" "


{| border="1" style="border-collapse:collapse;"
|+ caption
|-
! scope="col" | Column Heading 1
! scope="col" | Column Heading 2
! scope="col" | Column Heading 3
|-
! scope="row" | Row heading1
|cell 12||cell 13
|-
! scope="row" | Row heading2
|cell 22||cell 23
|}

caption
Column Heading 1 Column Heading 2 Column Heading 3
Row heading1 cell 12 cell 13
Row heading2 cell 22 cell 23

Wikitable


{| border="1" class="wikitable"
|+ caption
! Column Heading 1
! Column Heading 2
! Column Heading 3
|-
! Row heading1
|cell 12||cell 13
|-
! Row heading2
|cell 22||cell 23
|}

More parameters:
{|class="wikitable" style="text-align:center;
width:200px; height:200px;" border="1" 
Parameters for column heading:
! width="140"| Column heading 1

caption
Column Heading 1  Column Heading 2 Column Heading 3
Row heading1 cell 12 cell 13
Row heading2 cell 22 cell 23
TIPS:
  1. For empty cells, use the non-breaking space &nbsp; as content to ensure that the cells are displayed.
  2. For nested tables (tables within a table), see Nested tables.