|
Wiki syntax (also known as Wiki markup, Wiki language, or Wiki text) is a markup language that you can use for quick content creation as a simple alternative to full HTML (HyperText Markup Language) code. There is no common Wiki syntax but each Wiki engine (the behind the scenes mechanism used to build and drive wiki sites) uses it's own similar but specific syntax.
You can browse through a detailed wiki syntax description below. This is a developing section which will see ongoing expansion and refinement. 1 Text and paragraph formatting
1 Text and paragraph formatting1.1 Inline text style
1.11 HeadingsTo make some text into a heading simply start a line with a "plus symbol and a space" + Level 1 Heading You can use multiples pluses to vary the heading level ++ Level 2 Heading to give Level 1 HeadingLevel 2 HeadingLevel 3 HeadingLevel 4 HeadingLevel 5 HeadingLevel 6 Heading1.2 Text sizeText (font) size can be set with the [[size …]] … [[/size]] tags. These tags can be nested within each other. 1.21 Relative text sizesRelative text sizes are based on the size of the prevailing font in use — they increase or decrease the current font size relative to that. To specify a relative text size use [[size smaller]] or for finder control use [[size nem]] where n is a 1 to 5 digit number (including an optional decimal point).
1.22 Absolute text sizesAbsolute text sizes do not inherit characteristics of the prevailing font size, they replace them completely.. To specify an absolute text size use [[size xx-small]] or for finer control use [[size npx]] where n is a 1 to 5 digit number (including an optional decimal point).
1.3 ParagraphsOne new line produces a… new line. Two new lines produce a new paragraph. Lorem ipsum dolor sit amet First paragraph. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Second paragraph. Lorem ipsum dolor sit amet, consectetuer adipiscing elit 1.4 Punctuation symbolsIf you do care about typography there are a few ways to improve it in your text:
1.5 Horizontal rulesTo insert a horizontal tule simply use 4 dashes ----. 1.6 Bulleted listsYou can create bulleted lists by placing asterisks before each item to be in a list. To create bulleted lists with tiers, simply place an extra space before the asterisk to create an indent as shown below. * Bullet 1 gives
1.7 Numbered listsSimilarly, you can create numbered lists by placing hashes before each item to be in a list. As with bullets, tiered numbered lists are easy - simply place an extra space before the hash to create an indent as shown below. # Item 1 gives
2 LinksYou can create links from any text by wrapping the text in 3 nested square brackets. If a page address contains disallowed characters (characters that are not valid in URLs) the address will be converted to a "unixi form" to contain only characters that are valid. The text as displayed onscreen will remain the same as the original. 2.1 Internal links
2.2 AnchorsYou can place an anchor point within the text of a page that you can then use as part of a link that will jump straight to that point in the page. To place an anchor point in the text use [[# anchor-name]]. To create a link in the same page that the anchor point is placed, that jumps to the anchor point, use [#anchor-name Example anchor link text]. To create a link in another page that jumps to the anchor point in page with the anchor point, adjoin the anchor reference to the URL used in the link to the page [http://2011census.wikidot.com#anchor-name Example anchor link text]. 2.3 External URLs (World Wide Web links)
2.4 Email links
3 ImagesYou can insert an image into any page using syntax such as: [[image image-source attribute1="value1" attribute2="value2" ...]] So an example with some sample attribute values is: [[image test1.jpg link="http://2011census.wikidot.com" alt="This is a test image" width="200" height="100"]] which gives an image 200 pixels wide by 100 pixels high that will open a link to the site homepage in a new window when clicked on. Note that the image file referenced is a local file that will need to be attached to this page. As the file does not exists the alternative text is displayed. 3.1 Image sourceThe source for an image can be either: a local file attached to the current page, using the syntax or an image attached to another page, using the syntax or even located on another website, using the syntax 3.2 Image sizeTo size an image you need to specify the height and width in pixels as in the example above. 3.3 Using images as linksTo make an image into a link to another page or website use link="page name" or link="URL" and to open the link in a new page use link="*page name" or link="*URL" 4 Tables4.1 Simple tablesYou can create simple tables using pairs of vertical bars to indicate cell borders, and by preding column header labels by ~, such as
which will give
4.2 Advanced tablesYou can create more advanced customized tables by using special tags to indicate cell structure and attributes. You can the use style attributes to manage the appearance of cell boders and background colours, as well at the propertiees of the cell contents. For example the using the following syntax [[table]] will give a table with this appearance and properties.
|
Wiki syntax
page revision: 2, last edited: 31 Mar 2009 12:28