Jump to content

Help:Wikitext examples

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by 188.247.75.136 (talk) at 13:14, 19 February 2023 (تحرير). It may differ significantly from the current version.
For basic information see Help:Editing.

Basic text formatting

You can format the page using Wikitext special characters.

HTML tags

You can use some HTML tags, too. However, you should avoid HTML in favor of Wiki markup whenever possible.


Organizing your writing

See also: w:Picture tutorial

Links

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

Just show what I typed

A few different kinds of formatting will tell the Wiki to display things as you typed them.

Source code

If the syntax highlighting extension is installed, you can display programming language source code in a manner very similar to the HTML <pre> tag, except with the type of syntax highlighting commonly found in advanced text editing software.

List of supported languages: http://pygments.org/languages/

Here's an example of how to display some C# source code:

Results in:

Images, tables, video, and sounds

This is a very quick introduction. For more information, see:

  • Help:Table, for how to create a table.

After uploading, just enter the filename, highlight it and press the "embedded image"-button of the edit_toolbar.

This will produce the syntax for uploading a file [[Image:filename.png]]

Galleries

Main article: w:Gallery tag

Images can also be grouped into galleries using the <gallery> tag, such as the following:

Mathematical formulae

You can format mathematical formulae with TeX markup.

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}}. It is also possible to transclude other pages by using {{:colon and double braces}}.

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