Difference between revisions of "Help:Formatting"
JulieDunbar (Talk | contribs) (→Examples of Equations) |
JulieDunbar (Talk | contribs) (→Examples of Equations) |
||
Line 292: | Line 292: | ||
Using the methods above, can result in equations that look like this: | Using the methods above, can result in equations that look like this: | ||
− | <code>$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$<code | + | <code><nowiki>$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$<code/> |
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ | $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ |
Revision as of 21:48, 28 September 2017
You can format your text by using wiki markup. This consists of normal characters like asterisks, single quotes or equal signs which have a special function in the wiki, sometimes depending on their position. For example, to format a word in italic, you include it in two pairs of single quotes like ''this''
.
Contents
Paragraphs
MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <br />
.
Text formatting markup
Description | You type | You get |
---|---|---|
character (inline) formatting – applies anywhere | ||
Italic text | ''italic'' |
italic |
Bold text | '''bold''' |
bold |
Bold and italic | '''''bold & italic''''' |
bold & italic |
Strike text | <strike> strike text </strike> |
|
Escape wiki markup | <nowiki>no ''markup''</nowiki> |
no ''markup'' |
Escape wiki markup once | [[API]]<nowiki/>extension |
APIextension |
section formatting – only at the beginning of the line | ||
Headings of different levels | == Level 2 == === Level 3 === ==== Level 4 ==== ===== Level 5 ===== ====== Level 6 ======
|
Level 2Level 3Level 4Level 5Level 6 |
Horizontal rule | Text above ---- Text below |
Text above Text below |
Bullet list |
* Start each line * with an [[Wikipedia:asterisk|asterisk]] (*). ** More asterisks gives deeper *** and deeper levels. * Line breaks<br />don't break levels. *** But jumping levels creates empty space. Any other start ends the list. |
Any other start ends the list. |
Numbered list |
# Start each line # with a [[Wikipedia:Number_sign|number sign]] (#). ## More number signs gives deeper ### and deeper ### levels. # Line breaks<br />don't break levels. ### But jumping levels creates empty space. # Blank lines # end the list and start another. Any other start also ends the list. |
Any other start also ends the list. |
Definition list | ;item 1 : definition 1 ;item 2 : definition 2-1 : definition 2-2 |
|
Indent text | : Single indent :: Double indent ::::: Multiple indent This workaround may be controversial from the viewpoint of accessibility.
|
|
HTML tags
Some HTML tags are allowed in MediaWiki, for example <code>
, <div>
, <span>
and <font>
. These apply anywhere you insert them.
Description | You type | You get |
---|---|---|
Inserted (Displays as underline in most browsers.) |
<ins>Inserted</ins> or <u>Underline</u> |
Inserted or Underline |
Deleted (Displays as strikethrough in most browsers.) |
<s>Struck out</s> or <del>Deleted</del> |
or
|
Fixed width text | <code>Source code</code> or <tt>Fixed width text</tt> |
or Fixed width text |
Blockquotes | text above text above <blockquote>blockquote</blockquote> text below text below |
text above text above blockquote text below text below |
Comment | <!-- This is a comment --> Comments are only visible in the edit window. |
Comments are only visible in the edit window. |
LaTeX equations
This wiki is equipped with LaTeX support, meaning contributors can include robust math equations with their edits by entering a formula in LaTeX format.
If you know LaTeX, simply add your equation code to any page with any of the methods outlined below. If you do not, one of the easiest ways to generate LaTeX is via a Chrome extension called the Daum Equation Editor.
Daum Equation Editor
To install Daum, click here and then click the blue ADD TO CHROME button.
To open Daum, open a new tab in Chrome and click Apps from the lower center of the window. Then, select Daum Equation Editor from the options displayed. The app will open in the current tab with an interface as described below:
- The upper, dark grey area of the application provides some of the basic equation forms and options to get you started.
- The center, white, area is where you build your equation.
- The lower, grey area is where your LaTeX code will be generated.
Adding LaTeX to a page
Once you've built your equation, select and copy the text from the lower, grey area and paste it into the wiki page you are working with surrounded by the appropriate characters from the list below:
The following math environments are defined for inline style math:
-
$...$
(can be turned off, even per page), -
\(...\)
and -
<math>...</math>
.
And the following math environments are defined for block display style math:
-
$$...$$
(can be turned off, even per page), -
\[...\]
, -
\begin{...}...\end{...}
and -
:<math>...</math>
.
Examples of Equations
Using the methods above, can result in equations that look like this:
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$<code/>
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
$$x=1a \over 2b$$
$${ T }_{ ij }=\sum _{ ij }^{ }{ { e }^{ ij } } \left\lceil \ln { { X }_{ ij } } \right\rceil$$
$$sum_(i=1)^n i^3=((n(n+1))/2)^2$$
[[Category:Help]]