User:NiD.29/Wikipedia Syntax
From Wikipedia, the free encyclopedia
| References 1 |
| [[Incomplete Wiki syntax guide]] | {{Navbox code sample}} |
| Contents
1. Text 2. Numbers 3. Links & Images 4. Lists & Tables 5. Problem resolution 6. Other Templates |
Text
| Formatting | |
|---|---|
| You type | You get |
| ==Top level heading== |
Top level heading |
| ===2nd level heading=== |
2nd level heading |
| ====3rd level heading==== |
3rd level heading |
| =====4th level heading===== |
4th level heading |
| ======5th level heading====== |
5th level heading |
| {{Center|text}} | Centered text |
| <span style="font-size:xx-small">text</span> | xx-small text |
| <span style="font-size:x-small">text</span> | x-small text |
| <span style="font-size:small">text</span> | small text |
| <span style="font-size:medium">text</span> | medium text |
| <span style="font-size:large">text</span> | large text |
| <span style="font-size:x-large">text</span> | x-large text |
| <span style="font-size:xx-large">text</span> | xx-large text |
| {{resize|N|text}} | resize text to using % or em (.NNem = NN%) |
| '''bold''' | bold |
| ''italics'' | italics |
| '''''bold & italic''''' | bold & italic |
| {{font|text=…|font=face|size=px/%/em/pt|color=…|bgcolor=…}} | change size, color, bgcolor and font |
| ---- (must be coded on own line) |
|
| <nowiki>nnn</nowiki> | disables wiki markup |
| <nowiki /> | disables markup inside html and wiki tags |
| <!--nnnn--> | comment text (hides text) |
| {{^|hidden text}} or {{Void|hidden text}} | comment text (hides text) |
| | non-breakable space |
| {{nowrap|text}} | prevents line of text from being split |
| {{SubSup|sub|super}} | superscript2 subscript1 and both2 1 , first (blank) field forces text to be italicized |
| {{Pre|Preformatted}} | Preformatted |
| {{Quote|text=Quote|author=Author|title=Article title|source=''Book'' (date)}} |
— Author, Article title, Book (date) |
| {{abbr|acronym|fullname}} | NATO |
| Typefaces | |
|---|---|
| Font | Example |
| Arial | Quickly box the five jumping wizards |
| Arial Black | Quickly box the five jumping wizards |
| Calibri | Quickly box the five jumping wizards |
| Cambria | Quickly box the five jumping wizards |
| Candara | Quickly box the five jumping wizards |
| Comic Sans MS | Quickly box the five jumping wizards |
| Consolas | Quickly box the five jumping wizards |
| Constantia | Quickly box the five jumping wizards |
| Corbel | Quickly box the five jumping wizards |
| Courier New | Quickly box the five jumping wizards |
| Franklin Gothic Heavy | Quickly box the five jumping wizards |
| Franklin Gothic Medium | Quickly box the five jumping wizards |
| Garamond | Quickly box the five jumping wizards |
| Georgia | Quickly box the five jumping wizards |
| GulimChe | Quickly box the five jumping wizards |
| Impact | Quickly box the five jumping wizards |
| Lucida Console | Quickly box the five jumping wizards |
| MingLiU | Quickly box the five jumping wizards |
| MS Gothic | Quickly box the five jumping wizards |
| Symbol | Quickly box the five jumping wizards |
| Tahoma | Quickly box the five jumping wizards |
| Times New Roman | Quickly box the five jumping wizards |
| Trebuchet MS | Quickly box the five jumping wizards |
| Verdana | Quickly box the five jumping wizards |
| Webdings | Quickly box the five jumping wizards |
| Wingdings | Quickly box the five jumping wizards |
| ASCII Characters | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Accented Characters | |
|---|---|
| You type | You get |
| À à È è Ì ì Ò ò Ù ù | À à È è Ì ì Ò ò Ù ù |
| Á á É é Í í Ó ó Ú ú | Á á É é Í í Ó ó Ú ú |
| Â â Ê ê Î î Ô ô Û û | Â â Ê ê Î î Ô ô Û û |
| Ã ã Õ õ | Ã ã Õ õ |
| Ä ä Ë ë Ï ï Ö ö Ü ü ÿ | Ä ä Ë ë Ï ï Ö ö Ü ü ÿ |
| Å å Ç ç Ñ ñ Ø ø | Å å Ç ç Ñ ñ Ø ø |
| Æ æ Œ œ ß | Æ æ Œ œ ß |
| Ships' Names | |
|---|---|
| You type | You get |
| {{sclass|Fletcher|destroyer}} | Fletcher-class destroyer |
| {{sclass|Fletcher|destroyer|0}} | Fletcher-class (adjective) |
| {{sclass|Fletcher|destroyer|4}} | Fletcher class (noun) |
| {{sclass|Fletcher|destroyer|5}} | Fletcher (table) |
| {{sclass-|M|submarine}} | M-class submarine |
| {{MS|Queen Elizabeth}} | MS Queen Elizabeth |
| {{SS|Great Eastern|1858}} | SS Great Eastern (1858) |
| {{SS|Great Eastern|1858|3}} | Great Eastern (1858) |
| {{SS|Great Eastern|1858|6}} | SS Great Eastern |
| {{MV|Georgic|1932}} | MV Georgic (1932) |
| {{MV|Georgic|1932|3}} | Georgic (1932) |
| {{MV|Georgic|1932|6}} | MV Georgic |
| {{HMS|Royal Oak|08|2}} | Royal Oak |
| {{HMS|Royal Oak|08|3}} | Royal Oak (08) |
| {{HMS|Royal Oak|08|6}} | HMS Royal Oak |
| {{HMS|Royal Oak|08|2}} | Royal Oak |
| {{RMS|Olympic}} | RMS Olympic |
| {{RMS|Oceanic|1899}} | RMS Oceanic (1899) |
| {{RMS|Oceanic|1899|6}} | RMS Oceanic |
| {{USS|Fletcher|DD-445}} | USS Fletcher (DD-445) |
| {{USS|Fletcher|DD-445|3}} | Fletcher (DD-445) |
| {{USS|Fletcher|DD-445|6}} | USS Fletcher |
| {{HMCS|Magnificent|CVL 21}} | HMCS Magnificent (CVL 21) |
| {{HMCS|Magnificent|CVL 21|3}} | Magnificent (CVL 21) |
| {{HMCS|Magnificent|CVL 21|6}} | HMCS Magnificent |
| {{Jsub|I-19}} | Japanese submarine I-19 |
| {{GS|U-505}} | German submarine U-505 |
| {{GS|Deutschland}} | German submarine Deutschland |
| {{SMS|Baden}} | SMS Baden |
| {{SMS|Baden|1915}} | SMS Baden (1915) |
| {{SMS|Baden|1915|3}} | Baden (1915) |
| {{USCGC|Taney|WHEC-37}} | USCGC Taney (WHEC-37) |
| {{USCGC|Taney|WHEC-37|6}} | USCGC Taney |
| {{HMAS|Melbourne|R21}} | HMAS Melbourne (R21) |
| {{HMAS|Melbourne|R21|6}} | HMAS Melbourne |
Numbers
| Formatting | |
|---|---|
| You type | You get |
| {{hands/numdisp|1+2/3}} | displays fractions as 1 2⁄3 |
| {{Ordinal|##|sup=yes}} | ordinals per: 1st, 2nd, 3rd, 5th, omit sup=yes for 9th |
| {{sup|##}} | superscript2: do not use ascii character or code |
| {{sub|##}} | subscript2: ditto |
| {{nts|###}} | Displayed used as sort key, format=no strips key of commas. |
| {{dts|year|month|day}} | makes dates sortable, format optional |
| {{hs|###}} | hidden sort key (first data in cell) |
| {{Inflation|ISO_code|cost|yr1|yr2|r=n}} | inflation adjuster. yr2 optional, r=decimals, omit if 0 |
| {{Coord|##|##|##.#|N|##|##|##.#|W}} | coordinates as 45°27′37″N 75°38′46″W, N & W optional |
| {{Coord|##.###|N|##.###|W|display=title}} | ditto but decimal degrees. display=title also optional |
| {{Age in years and days|yyyy|mm|dd|yyyy2|mm2|dd2}} | years & days. Omit 2nd date for current |
| Conversions | |
|---|---|
| You type | You get |
| {{formatnum|###}} | add commas to output from other functions |
| {{Formatprice|####}} | convert prices to thousands, millions, billions etc |
| {{convert|###|unit|abbr=on/in/out}} | display units as name or abbreviation, as 60 mph (97 km/h) |
| {{convert|###|unit|order=flip}} | flip output order, so conversion is first |
| {{convert|#+#/#|unit}} | convert fractions as {{convert|3+7/16|in}} |
| {{convert|###|-/or/and/by/x/±|###|unit}} | convert multiple numbers as 10 cm × 7 cm (3.9 in × 2.8 in) |
| {{convert|###|unit1|###|unit2}} | convert multipart measurements as 10 ft 7 in (3.23 m) |
| {{convert|###|unit|N}} | output precison, positive = more decimal places |
| {{convert|###|unit|sortable=on}} | Adds hidden sort key |
| {{cvt|###|unit}} | Same as adding abbr=on argument to convert template |
| convert/cvt template units (metric) | km/h, m/s, km, m, cm, mm, l, m3, cm3, kt, tonne, MT, kg, m2, cm2, kW, C, C-change |
| convert/cvt template units (imperial) | mph, knot, ft/s, nmi, mi, yd, ft, in, impgal usgal/gal, cuft, cuin, t, LT ST, lb, oz, sqft, sqin, hp, F, F-change |
| Math | |
|---|---|
| You type | You get |
| <math></math> | formula tags (bold) |
| {{math|...}} | inline formula tags (normal text) |
| <math>1\times 2\div \left ( 3+ 4- 5 \right ) = or \neq n</math> | operators: |
| <math>\frac {2a}{b^2}</math> or <math>a \over z</math> or <math>\tfrac{1}{\sqrt{2}}</math> | fractions: or or |
| <math>a, n, x, y, x', y', \alpha\!, \Delta, \Sigma, \Omega </math> | variables:
|
| <math>e, i, \pi, \ln, \infty</math> | constants: |
| <math>\sin x, \cos x, \tan x \cot x, \sec x, \csc x, </math><br><math> \arcsin x, \arccos x, \arctan x</math><br><math>\sinh x, \cosh x, \tanh x, \coth x </math> | ratios: |
| <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math> | sum: |
| <math> f(x)</math> | function: |
| <math>\sqrt[x]{n\over z} </math> | square root: |
| <math>a_{i-j}, a^{2+2}</math> | subscripts and superscripts: |
| <math>\lim_{n \to \infty}x_n</math> | limits: |
| <math>\binom{n}{k}</math> | binomials: |
| <math>\overset{\alpha}{\omega}</math> | stacks: |
| <math>\begin{bmatrix} n & \cdots & p\\ \vdots & \ddots & \vdots\\ n+x & \cdots & p +x\end{bmatrix}</math> | matrix:
|
| <math> \begin{align} f(x) & = (a+b)^2 \\ & = a^2+2ab+b^2 \\ \end{align}</math> | multiline equations:
|

