Wiki Markup
From Full Metal Alchemist d20
>==Wiki markup== The wiki markup is the syntax system you can use to format a Wiki page. This is taken straight from Wikipedia's page. Errors are due to it having been completely unadapted.
In the left column of the table below, you can see what effects are possible. In the right column, you can see how those effects were achieved. In other words, to make text look like it looks in the left column, type it in the format you see in the right column.
You may want to keep this page open in a separate browser window for reference, or take a screen-shot of it. If you want to try out things without danger of doing any harm, you can do so in the Sandbox. Try opening the Sandbox in a separate window or tab and keeping this page open for reference.
<!--
- The rest of this page is deprecated but will be updated periodically.
- Please direct edits to the Meta-Wikimedia version of this page
-->
| What it looks like | What you type |
|---|---|
|
Start your sections as follows: <!-- The following code messes up the table of contents and makes the section edit links much less useful,
so please do not use it.
New sectionSubsectionSub-subsection--> <!-- The following should look almost the same, using HTML headings markup instead of wiki headings.
However, it messes up the section edit links,
so please do not use it.
<h2>New section</h2> <h3>Subsection</h3> <h4>Sub-subsection</h4> --> <!-- The following just uses bolding and font changes, so it should be safe. However, it might not
look exactly right, especially when people
use non-standard CSS stylesheets.
--> <font style="font-size:150%;color:grey;">New section</font> <font style="font-size:130%;color:grey;">Subsection</font> <font style="font-size:110%;color:grey;">Sub-subsection</font>
|
<pre><nowiki> New sectionSubsectionSub-subsectionSub-sub-subsection</nowiki></pre> |
|
A single newline generally has no effect on the layout. These can be used to separate sentences within a paragraph. Some editors find that this aids editing and improves the function diff (used internally to compare different versions of a page). But an empty line starts a new paragraph.
|
<pre><nowiki> A single newline generally has no effect on the layout. These can be used to separate sentences within a paragraph. Some editors find that this aids editing and improves the function diff (used internally to compare different versions of a page). But an empty line starts a new paragraph. </nowiki></pre> |
|
You can break lines<br/> without starting a new paragraph.
|
<pre><nowiki> You can break lines<br/> without starting a new paragraph. </nowiki></pre> |
marks the end of a list item.
|
<pre><nowiki>
marks the end of a list item.
</nowiki></pre> |
|
<pre><nowiki>
</nowiki></pre> |
|
<pre><nowiki>
</nowiki></pre> |
|
<pre><nowiki>
</nowiki></pre> |
A manual newline starts a new paragraph.
|
<pre><nowiki>
A manual newline starts a new paragraph. </nowiki></pre> |
|
When there is a need for separating a block of text <blockquote> the blockquote command will indent both margins when needed instead of the left margin only as the colon does. </blockquote> This is useful for (as the name says) inserting blocks of quoted (and cited) text. |
<pre><nowiki> <blockquote> The blockquote command will indent both margins when needed instead of the left margin only as the colon does. </blockquote> </nowiki></pre> |
IF a line starts with a space THEN it will be formatted exactly as typed; in a fixed-width font; lines will not wrap; ENDIF
|
<pre><nowiki> IF a line starts with a space THEN it will be formatted exactly as typed; in a fixed-width font; lines will not wrap; ENDIF </nowiki></pre> |
|
<center>Centered text.</center>
|
<pre><nowiki> <center>Centered text.</center> </nowiki></pre> |
|
A horizontal dividing line: this is above it... ...and this is below it.
|
<pre><nowiki> A horizontal dividing line: this is above it and this is below it. </nowiki></pre> |
Links and URLs
| What it looks like | What you type |
|---|---|
|
London has public transport.
|
<pre><nowiki> London has public transport. </nowiki></pre> |
|
San Francisco also has public transportation.
|
<pre><nowiki> San Francisco also has public transportation. </nowiki></pre> |
|
San Francisco also has public transportation. Examples include buses, taxis, and streetcars.
|
<pre><nowiki> San Francisco also has public transportation. Examples include buses, taxis, and streetcars. </nowiki></pre> |
|
See the Wikipedia:Manual of Style.
|
<pre><nowiki> See the Wikipedia:Manual of Style. </nowiki></pre> |
|
Economics#See also is a link to a section within another page. #Links and URLs is a link to a section on the current page. #example is a link to an anchor that was created using <div id="example">an id attribute</div>
|
<pre><nowiki> Economics#See also is a link to a section within another page. #Links and URLs is a link to a section on the current page. #example is a link to an anchor that was created using <div id="example">an id attribute</div> </nowiki></pre> |
|
Automatically hide stuff in parentheses: kingdom. Automatically hide namespace: Village Pump. Or both: Manual of Style But not: [[Wikipedia:Manual of Style#Links|]]
|
<pre><nowiki> Automatically hide stuff in parentheses: kingdom. Automatically hide namespace: Village Pump. Or both: Manual of Style But not: [[Wikipedia:Manual of Style#Links|]] </nowiki></pre> |
|
The weather in London is a page that does not exist yet.
|
<pre><nowiki> The weather in London is a page that does not exist yet. </nowiki></pre> |
|
Wikipedia:How to edit a page is this page.
|
<pre><nowiki> Wikipedia:How to edit a page is this page. </nowiki></pre> |
|
When adding a comment to a Talk page, you should sign it by adding three tildes to add your user name: or four to add user name plus date/time:
Five tildes gives the date/time alone:
|
<pre><nowiki> When adding a comment to a Talk page, you should sign it by adding three tildes to add your user name: or four for user name plus date/time:
Five tildes gives the date/time alone:
</nowiki></pre> |
|
<pre><nowiki>
</nowiki></pre> |
|
<pre><nowiki> fr:Wikipédia:Aide </nowiki></pre> |
|
What links here and Related changes pages can be linked as: Special:Whatlinkshere/Wikipedia:How to edit a page and Special:Recentchangeslinked/Wikipedia:How to edit a page |
<pre><nowiki> What links here and Related changes pages can be linked as: Special:Whatlinkshere/Wikipedia:How to edit a page and Special:Recentchangeslinked/Wikipedia:How to edit a page </nowiki></pre> |
|
A user's Contributions page can be linked as: Special:Contributions/UserName or Special:Contributions/192.0.2.0 |
<pre><nowiki> A user's Contributions page can be linked as: Special:Contributions/UserName or Special:Contributions/192.0.2.0 </nowiki></pre> |
|
<pre><nowiki> </nowiki></pre> |
|
<pre><nowiki> Category:Character sets </nowiki></pre> |
|
Three ways to link to external (non-wiki) sources:
|
<pre><nowiki> Three ways to link to external (non-wiki) sources:
(only used within article body for footnotes)
</nowiki></pre> |
|
Linking to other wikis:
Linking to another language's wiktionary:
|
<pre><nowiki> Linking to other wikis:
Linking to another language's wiktionary: </nowiki></pre> |
|
<pre><nowiki> ISBN 012345678X ISBN 0-12-345678-X </nowiki></pre> |
|
Date formats:
|
<pre><nowiki> Date formats: </nowiki></pre> |
Some uploaded sounds are listed at Wikipedia:Sound. |
<pre><nowiki> Sound </nowiki></pre> |
Images
Only images that have been uploaded to Wikipedia can be used. To upload images, use the upload page. You can find the uploaded image on the image list.
| What it looks like | What you type |
|---|---|
| A picture:
Missing image | <pre>A picture:
<nowiki>Missing image
|
| With alternative text:
Missing image | <pre>With alternative text:
<nowiki>Missing image
|
| Floating to the right side of the page and with a caption:
Missing image Wiki.png Wikipedia Encyclopedia | <pre>Floating to the right side of the page and with a caption:
<nowiki> Missing image Wiki.png Wikipedia Encyclopedia
|
| Floating to the right side of the page without a caption:
Missing image
Wiki.png Wikipedia Encyclopedia | <pre>Floating to the right side of the page without a caption:
<nowiki> Missing image </nowiki></pre>
Wiki.png Wikipedia Encyclopedia
|
| Linking directly to the description page of an image: | <pre>Linking directly to the description page of an image:
<nowiki>Image:wiki.png</nowiki></pre>
|
| Linking directly to an image without displaying it: | <pre>Linking directly to an image without displaying it:
<nowiki>Image of the jigsaw globe logo</nowiki></pre>
|
See the Wikipedia's image use policy as a guideline used on Wikipedia.
For further help on images, including some more versatile abilities, see the topic on Extended image syntax.
Character formatting
| What it looks like | What you type |
|---|---|
|
Emphasize, strongly, very strongly.
|
<pre><nowiki> Emphasize, strongly, very strongly. </nowiki></pre> |
|
<math>\sin x + \ln y</math><br> sinx + lny <!-- no space between roman "sin" and italic "x" --> <math>\mathbf{x} = 0</math><br> x = 0 Ordinary text should use wiki markup for emphasis, and should not use <code><i></code> or <code><b></code>. However, mathematical formulas often use italics, and sometimes use bold, for reasons unrelated to emphasis. Complex formulas should use <code><math></code> markup, and simple formulas may use <code><math></code>; or <code><i></code> and <code><b></code>; or <code><nowiki></nowiki></code> and <code><nowiki>'</nowiki></code>. According to WikiProject Mathematics, wiki markup is preferred over HTML markup like <code><i></code> and <code><b></code>. |
<pre><nowiki> <math>\sin x + \ln y</math> sinx + lny <math>\mathbf{x} = 0</math> x = 0 </nowiki></pre> |
|
A typewriter font for <tt>monospace text</tt> or for computer code: <code>int main()</code>
|
<pre><nowiki> A typewriter font for <tt>monospace text</tt> or for computer code: <code>int main()</code> </nowiki></pre> |
|
You can use <small>small text</small> for captions. |
<pre><nowiki> You can use <small>small text</small> for captions. </nowiki></pre> |
|
You can <s>strike out deleted material</s> and <u>underline new material</u>. You can also mark <del>deleted material</del> and <ins>inserted material</ins> using logical markup rather than visual markup.
|
<pre><nowiki> You can <s>strike out deleted material</s> and <u>underline new material</u>. You can also mark <del>deleted material</del> and <ins>inserted material</ins> using logical markup rather than visual markup. </nowiki></pre> |
|
Diacritical marks: <br/> À Á Â Ã Ä Å <br/> Æ Ç È É Ê Ë <br/> Ì Í Î Ï Ñ Ò <br/> Ó Ô Õ Ö Ø Ù <br/> Ú Û Ü ß à á <br/> â ã ä å æ ç <br/> è é ê ë ì í<br/> î ï ñ ò ó ô <br/> œ õ ö ø ù ú <br/> û ü ÿ
|
<br/> <pre><nowiki> &Agrave; &Aacute; &Acirc; &Atilde; &Auml; &Aring; &AElig; &Ccedil; &Egrave; &Eacute; &Ecirc; &Euml; &Igrave; &Iacute; &Icirc; &Iuml; &Ntilde; &Ograve; &Oacute; &Ocirc; &Otilde; &Ouml; &Oslash; &Ugrave; &Uacute; &Ucirc; &Uuml; &szlig; &agrave; &aacute; &acirc; &atilde; &auml; &aring; &aelig; &ccedil; &egrave; &eacute; &ecirc; &euml; &igrave; &iacute; &icirc; &iuml; &ntilde; &ograve; &oacute; &ocirc; &oelig; &otilde; &ouml; &oslash; &ugrave; &uacute; &ucirc; &uuml; &yuml; </nowiki></pre> |
|
Punctuation: <br/> ¿ ¡ § ¶<br/> † ‡ • – —<br/> ‹ › « »<br/> ‘ ’ “ ” |
<br/> <pre><nowiki> &iquest; &iexcl; &sect; &para; &dagger; &Dagger; &bull; &ndash; &mdash; &lsaquo; &rsaquo; &laquo; &raquo; &lsquo; &rsquo; &ldquo; &rdquo; </nowiki></pre> |
|
Commercial symbols: <br/> ™ © ® ¢ € ¥<br/> £ ¤ |
<br/> <pre><nowiki> &trade; &copy; &reg; &cent; &euro; &yen; &pound; &curren; </nowiki></pre> |
|
Subscripts: <br/> x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or <br/> x₀ x₁ x₂ x₃ x₄ <br/> x₅ x₆ x₇ x₈ x₉ Superscripts: <br/> x<sup>1</sup> x<sup>2</sup> x<sup>3</sup> or <br/> x⁰ x¹ x² x³ x⁴ <br/> x⁵ x⁶ x⁷ x⁸ x⁹
ε<sub>0</sub> = 8.85 × 10<sup>−12</sup> C² / J m. 1 hectare = 1 E4 m² |
<br/> <pre><nowiki> x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or <br/> x&#8320; x&#8321; x&#8322; x&#8323; x&#8324; <br/> x&#8325; x&#8326; x&#8327; x&#8328; x&#8329; </nowiki></pre> <pre><nowiki> x<sup>1</sup> x<sup>2</sup> x<sup>3</sup> or <br/> x&#8304; x&sup1; x&sup2; x&sup3; x&#8308; <br/> x&#8309; x&#8310; x&#8311; x&#8312; x&#8313; &epsilon;<sub>0</sub> = 8.85 &times; 10<sup>&minus;12</sup> C&sup2; / J m. 1 hectare = 1 E4 m&sup2; </nowiki></pre> |
|
Greek characters: <br/> α β γ δ ε ζ<br/> η θ ι κ λ μ ν<br/> ξ ο π ρ σ ς<br/> τ υ φ χ ψ ω<br/> Γ Δ Θ Λ Ξ Π<br/> Σ Φ Ψ Ω |
<br/> <pre><nowiki> &alpha; &beta; &gamma; &delta; &epsilon; &zeta; &eta; &theta; &iota; &kappa; &lambda; &mu; &nu; &xi; &omicron; &pi; &rho; &sigma; &sigmaf; &tau; &upsilon; &phi; &chi; &psi; &omega; &Gamma; &Delta; &Theta; &Lambda; &Xi; &Pi; &Sigma; &Phi; &Psi; &Omega; </nowiki></pre> |
|
Mathematical characters: <br/> ∫ ∑ ∏ √ − ± ∞<br/> ≈ ∝ ≡ ≠ ≤ ≥<br/> × · ÷ ∂ ′ ″<br/> ∇ ‰ ° ∴ ℵ ø<br/> ∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇<br/> ¬ ∧ ∨ ∃ ∀ ⇒ ⇔<br/> → ↔<br/>
|
<br/> <pre><nowiki> &int; &sum; &prod; &radic; &minus; &plusmn; &infin; &asymp; &prop; &equiv; &ne; &le; &ge; &times; &middot; &divide; &part; &prime; &Prime; &nabla; &permil; &deg; &there4; &alefsym; &oslash; &isin; &notin; &cap; &cup; &sub; &sup; &sube; &supe; &not; &and; &or; &exist; &forall; &rArr; &hArr; &rarr; &harr; </nowiki></pre> |
|
Spacing in simple math formulas: <br/> Obviously, x² ≥ 0 is true.
|
<br/> <pre><nowiki> Obviously, x&sup2;&nbsp;&ge;&nbsp;0 is true. </nowiki></pre> |
|
Complicated formulas: <br/>
|
<br/> <pre><nowiki>
</nowiki></pre> |
|
Suppressing interpretation of markup: <br/> <nowiki>Link → (to) the Wikipedia FAQ</nowiki>
|
<br/> <pre><nowiki> <nowiki>Link &rarr; (to) the Wikipedia FAQ</nowiki> </nowiki></pre> |
|
Commenting page source: <br/> not shown when viewing page
|
<br/> <pre><nowiki> <!-- comment here --> </nowiki></pre> |
(see also: Chess symbols in Unicode)
Table of contents
<!-- ==== Placement of the Table of Contents (TOC) ==== -->
At the current status of the wiki markup language, having at least four headers on a page triggers the TOC to appear in front of the first header (or after introductory sections). Putting <nowiki></nowiki> anywhere forces the TOC to appear at that point (instead of just before the first header). Putting <nowiki></nowiki> anywhere forces the TOC to disappear. See also compact TOC for alphabet and year headings. <!-- THE TEXT BELOW IS COMMENTED OUT SINCE THE DESCRIBED TECHNIQUE DOESN'T WORK AFTER UPGRADING TO MEDIAWIKI 1.5
Keeping headings out of the Table of Contents
If you want some subheadings to not appear in the Table of Contents, then make the following replacements.
Replace <nowiki> == Header 2 == with <h2> Header 2 </h2> </nowiki>
Replace <nowiki> === Header 3 === with <h3> Header 3 </h3> </nowiki>
And so forth.
For example, notice that the following header has the same font as the other subheaders to this "Tables" section, but the following header does not appear in the Table of Contents for this page.
<h4> This header has the h4 font, but is NOT in the Table of Contents (actually, it is)</h4>
This effect is obtained by the following line of code.
<code><nowiki><h4> This header has the h4 font, but is NOT in the Table of Contents </h4></nowiki></code>
Note that when editing by section, this approach places the text between the tags in the subsequent section, not the previous section. To edit this text, click the edit link next to "Tables", not the one above. -->
Tables
There are two ways to build tables:
- in special Wiki-markup (see Help:Table)
- with the usual HTML elements: <table>, <tr>, <td> or <th>.
For the latter, and a discussion on when tables are appropriate, see Wikipedia:How to use tables.
Variables
(See also Help:Variable)
| Code | Effect |
|---|---|
| <nowiki>02</nowiki> | 02 |
| <nowiki>February</nowiki> | February |
| <nowiki>February</nowiki> | February |
| <nowiki>6</nowiki> | 6 |
| <nowiki>Monday</nowiki> | Monday |
| <nowiki>2012</nowiki> | 2012 |
| <nowiki>13:31</nowiki> | 13:31 |
| <nowiki>666</nowiki> | 666 |
| <nowiki>Wiki Markup</nowiki> | Wiki Markup |
| <nowiki></nowiki> | |
| <nowiki>Template:REVISIONID</nowiki> | Template:REVISIONID |
| <nowiki>/fma/index.php/Pagename</nowiki> | /fma/index.php/Pagename |
| action=edit}}</nowiki> | http://en.wikipedia.org/wiki/Sandbox |
| <nowiki>http://wikis.grendel.org</nowiki> | http://wikis.grendel.org |
| <nowiki>Talk</nowiki> | Talk |
| <nowiki>User</nowiki> | User |
| <nowiki>User_talk</nowiki> | User_talk |
| <nowiki>Full_Metal_Alchemist_d20</nowiki> | Full_Metal_Alchemist_d20 |
| <nowiki>Full_Metal_Alchemist_d20_talk</nowiki> | Full_Metal_Alchemist_d20_talk |
| <nowiki>Image</nowiki> | Image |
| <nowiki>Image_talk</nowiki> | Image_talk |
| <nowiki>MediaWiki</nowiki> | MediaWiki |
| <nowiki>MediaWiki_talk</nowiki> | MediaWiki_talk |
| <nowiki>Template</nowiki> | Template |
| <nowiki>Template_talk</nowiki> | Template_talk |
| <nowiki>Help</nowiki> | Help |
| <nowiki>Help_talk</nowiki> | Help_talk |
| <nowiki>Category</nowiki> | Category |
| <nowiki>Category_talk</nowiki> | Category_talk |
| <nowiki>Full Metal Alchemist d20</nowiki> | Full Metal Alchemist d20 |
NUMBEROFARTICLES is the number of pages in the main namespace which contain a link and are not a redirect--in other words, it is the number of articles, stubs containing a link, and disambiguation pages.
CURRENTMONTHNAMEGEN is the genitive (possessive) grammatical form of the month name, as used in some languages; CURRENTMONTHNAME is the nominative (subject) form, as usually seen in English.
In languages where it makes a difference, you can use constructs like <nowiki>word</nowiki> to convert a word from the nominative case to some other case. For example, <nowiki>February</nowiki> means the same as <nowiki>February</nowiki>. <!-- Is there a reference for this, other than the source code (for example, phase3/languages/Lnaguage*.php) ? -->
Templates
The MediaWiki software used by Wikipedia has support for templates. This means standardized text chunks (such as boilerplate text) can be inserted into articles. For example, typing <nowiki>This page is a stub. It is one of the pages that most needs attention. You can help FMA d20 by expanding it with the 'edit' link at the top of the page.</nowiki> will appear as "This article is a stub. You can help Wikipedia by expanding it." when the page is saved. See Wikipedia:Template messages for the complete list. Other commonly used templates are: <nowiki>Template:Disambig</nowiki> for disambiguation pages, <nowiki>Template:Spoiler</nowiki> for spoiler warnings and <nowiki>Template:Sectstub</nowiki> like an article stub but for a section. There are many subject-specific stubs for example: <nowiki> Template:Geo-stub, Template:Hist-stub, and Template:Linux-stub</nowiki>. For a complete list of stubs see WP:WSS/ST.
Hiding the edit links
Insert <nowiki></nowiki> into the document to suppress the edit links that appear next to every section header.
