Help:Wiki markup

Subversive Technologies & Countermeasures

Jump to: navigation, search

Contents

[edit] Markup constants

Wiki text Output
{{SITENAME}} WikiSTC
{{SERVER}} http://www.wikistc.org
{{SERVERNAME}} www.wikistc.org
{{localurl:pagename}} /wiki/Pagename
{{localurle:pagename}} /wiki/Pagename
{{localurl:pagename|query string}} /w/index.php?title=Pagename&query string
{{fullurl:pagename}} http://www.wikistc.org/wiki/Pagename
{{fullurl:pagename|query_string}} http://www.wikistc.org/w/index.php?title=Pagename&query_string
Wiki text Dynamic output by date and time
{{CURRENTMONTH}} 08
{{CURRENTMONTHNAME}} August
{{CURRENTMONTHABBREV}} Aug
{{CURRENTMONTHNAMEGEN}} August
{{CURRENTWEEK}} 34
{{CURRENTDAY}} 21
{{CURRENTDAY2}} 21
{{CURRENTDAYNAME}} Thursday
{{CURRENTDOW}} 4
{{CURRENTYEAR}} 2008
{{CURRENTTIME}} 19:40
{{NUMBEROFARTICLES}} 23
{{NUMBEROFFILES}} 17
Wiki text Dynamic output by page
{{NAMESPACE}} Help
{{NAMESPACEE}} Help
{{PAGENAME}} Wiki markup
{{PAGENAMEE}} Wiki_markup
{{FULLPAGENAME}} Help:Wiki markup
{{FULLPAGENAMEE}} Help:Wiki_markup
{{REVISIONID}} 5155

[edit] Markup syntax

[edit] Basic text formatting

What it looks like Wiki text

You can emphasize text by putting two apostrophes on each side. Three apostrophes will emphasize it strongly. Five apostrophes is even stronger.

You can ''emphasize text'' by putting two
apostrophes on each side. Three apostrophes
will emphasize it '''strongly'''. Five
apostrophes is '''''even stronger'''''.

A single newline has no effect on the layout.

But an empty line starts a new paragraph.

A single newline
has no effect
on the layout.

But an empty line
starts a new paragraph.

You can break lines
without starting a new paragraph.
Please use this sparingly.

You can break lines<br>
without starting a new paragraph.<br>
Please use this sparingly.

You should "sign" your comments on talk pages:

Three tildes gives your user name: WikiSTC
Four tildes give your user name plus date/time: WikiSTC 22:21, 3 March 2006 (CST)
Five tildes gives the date/time alone: 22:21, 3 March 2006 (CST)
You should "sign" your comments on talk pages:
: Three tildes gives your user name: ~~~
: Four tildes give your user name plus date/time: ~~~~
: Five tildes gives the date/time alone: ~~~~~

You can use HTML tags, too, if you want. Some useful ways to use HTML:

Put text in a typewriter font. The same font is generally used for computer code.

Strike out or underline text, or write it in small caps.

Superscripts and subscripts: x2, x2

Invisible comments that only appear while editing the page. Comments should usually go on the talk page, though.

You can use <b>HTML tags</b>, too, if you
want. Some useful ways to use HTML:

Put text in a <tt>typewriter font</tt>.
The same font is generally used for
<code>computer code</code>.

<strike>Strike out</strike> or
<u>underline</u> text, or write it
<span style="font-variant:small-caps">
in small caps</span>.

Superscripts and subscripts:
x<sup>2</sup>, x<sub>2</sub>

Invisible comments that only appear while editing the page.
<!-- Note to editors: blah blah blah. -->
Comments should usually go on the talk page, though.

[edit] Organizing your writing

What it looks like Wiki text

Section headings

Headings organize your writing into sections. The Wiki software can automatically generate a table of contents from them.


Subsection

Using more equals signs creates a subsection.


A smaller subsection

Don't skip levels, like from two to four equals signs. Start with two equals signs; don't use single equals signs.

== Section headings ==

''Headings'' organize your writing into sections.
The Wiki software can automatically generate
a table of contents from them.

=== Subsection ===

Using more equals signs creates a subsection.

==== A smaller subsection ====

Don't skip levels, like from two to four equals signs.
Start with two equals signs; don't use single equals signs.
  • Unordered lists are easy to do:
    • Start every line with a star.
      • More stars indicate a deeper level.
  • A newline
  • in a list

marks the end of the list.

  • Of course you can start again.
* ''Unordered lists'' are easy to do:
** Start every line with a star.
*** More stars indicate a deeper level.
* A newline
* in a list  
marks the end of the list.
* Of course you can start again.
  1. Numbered lists are also good:
    1. Very organized
    2. Easy to follow

A newline marks the end of the list.

  1. New numbering starts with 1.
# ''Numbered lists'' are also good:
## Very organized
## Easy to follow
A newline marks the end of the list.
# New numbering starts with 1.

Another kind of list is a definition list:

word 
definition of the word
here is a longer phrase that needs a definition
phrase defined
a word 
with a definition
that requires
multiple paragraphs
Another kind of list is a ''definition list'':
; word : definition of the word
; here is a longer phrase that needs a definition
: phrase defined
; a word : with a definition
: that requires
: multiple paragraphs
  • You can even do mixed lists
    1. and nest them
    2. inside each other
      • or break lines
        in lists.
      definition lists
      can be
      nested too
* You can even do mixed lists
*# and nest them
*# inside each other
*#* or break lines<br>in lists.
*#; definition lists
*#: can be 
*#;; nested too
A colon indents a line or paragraph.

A newline after that starts a new paragraph.

This is often used for discussion on Talk pages.
: A colon indents a line or paragraph.
A newline after that starts a new paragraph.
:: This is often used for discussion on talk pages.

You can make horizontal dividing lines to separate text.


But you should usually use sections instead, so that they go in the table of contents.

You can make horizontal dividing lines
to separate text.
----
But you should usually use sections instead,
so that they go in the table of contents.

[edit] Templates

Templates are segments of Wiki markup that are meant to be copied automatically ("transcluded") into a page. You add them by putting the template's name in {{double braces}}.

Some templates take parameters, as well, which you separate with the pipe character.

What it looks like Wiki text
void main() {
  printf("Hello Transcluded Source Fragment\n");
}


{{Help:Source_code_fragment/Transcluded_source_code_fragment}}

[edit] Special characters

Now that Mediawiki supports UTF-8, many of these can be entered directly into articles, without the HTML markup. On many wikis, a tool appears under the edit box to make this easier.

Umlauts and accents: Wiki text

À Á Â Ã Ä Å

Æ Ç È É Ê Ë

Ì Í Î Ï Ñ Ò

Ó Ô Õ Ö Ø Ù

Ú Û Ü ß à á

â ã ä å æ ç

è é ê ë ì í

î ï ñ ò ó ô

œ õ ö ø ù ú

û ü ÿ

&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;
Punctuation: Wiki text

¿ ¡ « » § ¶

† ‡ • - – —

&iquest; &iexcl;  &laquo; &raquo; &sect; &para;
&dagger; &Dagger; &bull;  &ndash; &mdash;
Commercial symbols: Wiki text

™ © ® ¢ € ¥ £ ¤

&trade; &copy; &reg; &cent; &euro; &yen; &pound; &curren;
Greek characters: Wiki text

α β γ δ ε ζ

η θ ι κ λ μ ν

ξ ο π ρ σ ς

τ υ φ χ ψ ω

Γ Δ Θ Λ Ξ Π

Σ Φ Ψ Ω

&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;
Math characters: Wiki text (TeX is often better)

∫ ∑ ∏ √ − ± ∞

≈ ∝ ≡ ≠ ≤ ≥

× · ÷ ∂ ′ ″

∇ ‰ ° ∴ ø

∈ ∩ ∪ ⊂ ⊃ ⊆ ⊇

¬ ∧ ∨ ∃ ∀ ⇒ ⇔

→ ↔ ↑ ↓

&int;   &sum;    &prod;   &radic;  &minus;  &plusmn; &infin;
&asymp; &prop;   &equiv;  &ne;     &le;     &ge;
&times; &middot; &divide; &part;   &prime;  &Prime;
&nabla; &permil; &deg;    &there4; &oslash;
&isin;  &cap;    &cup;    &sub;    &sup;    &sube;   &supe;
&not;   &and;    &or;     &exist;  &forall; &rArr;   &hArr;
&rarr;  &harr;   &uarr;   &darr;
Problem symbols: Wiki text

ℵ ∉

&alefsym; &notin;

[edit] Mathematical formulas

You can format mathematical formulas with TeX markup.

What it looks like Wiki text

Failed to parse (Missing texvc executable; please see math/README to configure.): \sum_{n=0}^\infty \frac{x^n}{n!}

<math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>

[edit] Links

You will often want to make clickable links to other pages.

Output Wiki text

Here's a link to a page named sandbox. You can even say sandboxs and the link will show up correctly.

You can put formatting around a link. Example: sandbox.

The first letter of articles is automatically capitalized, so sandbox goes to the same place as Sandbox. Capitalization matters after the first letter.

Here's a link to a page named [[sandbox]].
You can even say [[sandbox]]s
and the link will show up correctly.

You can put formatting around a link.
Example: ''[[sandbox]]''.

The ''first letter'' of articles is automatically capitalized,
so [[sandbox]] goes to the same place as [[Sandbox]].
Capitalization matters after the first letter.

You can make a link point to a different place with a piped link. Put the link target first, then the pipe character "|", then the link text.

You can make a link point to a different place
with a piped link. Put the link
target first, then the pipe character "|", then
the link text.

*[[WikiSTC:User_guides/New_user_guide]]

You can make an external link just by typing a URL: http://incubator.wikistc.org/wiki/Main_Page

You can give it a title: WikiIncubator

Or leave the title blank: [1]

You can make an external link just by typing a URL:
http://incubator.wikistc.org/wiki/Main_Page

You can give it a title:
[http://incubator.wikistc.org/wiki/Main_Page WikiIncubator]

Or leave the title blank:
[http://incubator.wikistc.org/wiki/Main_Page]

You can redirect the user to another page with a special link. For example, you might want to redirect oldhelp to Help.

Note
  1. This command should appear as the first line of a page for it to work.
  2. If there are any lines following the directive, they will be automatically erase

when saving the document.

#REDIRECT [[:category:WikiSTC Help]]

Category links don't show up, but add the page to a category.

Add an extra colon to actually link to the category: Category:WikiSTC Help

Category links don't show up, but add the page
to a category. [[Category:WikiSTC Help]]

Add an extra colon to actually link to the category:
[[:Category:WikiSTC Help]]

The Wiki reformats linked dates to match the reader's date preferences. These three dates will show up the same if you choose a format in your Preferences:

The Wiki reformats linked dates to match the reader's date
preferences. These three dates will show up the same if you
choose a format in your [[Special:Preferences|]]:
* [[July 20]], [[1969]]
* [[20 July]] [[1969]]
* [[1969]]-[[07-20]]

You can link to a page section by its title:

If multiple sections have the same title, add a number. #Example section 3 goes to the third section named "Example section".

You can link to a page section by its title:

*[[WikiSTC:About#Why_use_a_wiki?]].
*[[WikiSTC:About#How_can_I_contribute?]].

If multiple sections have the same title, add
a number. [[#Example section 3]] goes to the
third section named "Example section".

Markup syntax taken from meta

Personal tools