Help:Contents
From FIS Freestyle wiki
Revision as of 14:41, 24 April 2009 (edit) Joe (Talk | contribs) (→Wikipedia Cheatsheet) ← Previous diff |
Revision as of 14:41, 24 April 2009 (edit) (undo) Joe (Talk | contribs) (→Basic text formatting) Next diff → |
||
Line 88: | Line 88: | ||
== Basic text formatting == | == Basic text formatting == | ||
+ | |||
You can format the page using Wikitext special characters. | You can format the page using Wikitext special characters. | ||
Line 183: | Line 184: | ||
</pre> | </pre> | ||
|} | |} | ||
- | |||
- | |||
== HTML tags == | == HTML tags == |
Revision as of 14:41, 24 April 2009
Contents |
WikiMedia Reference Card
Link To WikiMedia Reference Card;[[1]]
Download WikiMedia Reference Card (PDF) [[2]]
Wikipedia Cheatsheet
Everyone can contribute to the free encylopedia Wikipedia. This is possible because Wikipedia is a wiki: Simply click on the link “Edit this page“ on top of an article and start writing. This cheatsheet shows the basic formatting tricks.
Wiki text | Result |
''italic'' | italic |
'''bold''' | bold |
'''''bold and italic''''' | bold and italic |
==heading== | Headings in different sizes |
[[Link to another page]] [[Link|different title]] | Internal Link to another page
on the wiki |
http://www.example.org | External link Link with description |
[[fr:Page en français]] | Interwiki link to french Wikipedia (appears under “languages“) |
[[Category:Example]] | Add article to category “example“ |
---- | horizontal line |
* one | Bullet list |
# one | Numbered list |
[[Image:File.jpg|Text]] [[Image:File.jpg|frame|Text]] | Image with alternative text Image aligned right with caption |
[[Media:File.ogg]] | Download link |
{{Name}} | Include template "Name" |
--~~~ | Signature (Link to userpage) |
--~~~~ | Signature with timestamp (date & time) |
#REDIRECT [[Other article]] | Redirect one title to another article |
Basic text formatting
You can format the page using Wikitext special characters.
What it looks like | What you type |
---|---|
You can italicize text by putting 2 apostrophes on each side. 3 apostrophes will embolden the text. 5 apostrophes will embolden and italicize the text. (Using 4 apostrophes doesn't do anything special -- | You can ''italicize text'' by putting 2 apostrophes on each side. 3 apostrophes will '''embolden the text'''. 5 apostrophes will '''embolden''' and ''italicize'' '''''the text'''''. (Using 4 apostrophes doesn't do anything special -- <br /> the last pair are just ''''left over ones'''' that are included as part of the text.) |
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 diff function (used internally to compare different versions of a page). But an empty line starts a new paragraph. When used in a list, a newline does affect the layout (see below). | 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 ''diff'' function (used internally to compare different versions of a page). But an empty line starts a new paragraph. When used in a list, a newline ''does'' affect the layout ([[#lists|see below]]). |
You can break lines Please do not start a link or italics or bold text on one line and end on the next. | You can break lines<br/> without a new paragraph.<br/> Please use this sparingly. Please do not start a link or ''italics'' or '''bold''' text on one line and end on the next. |
You should "sign" your comments on talk pages: - Three tildes gives your signature: Example | You should "sign" your comments on talk pages: - Three tildes gives your signature: ~~~ - Four tildes give your signature plus date/time: ~~~~ - Five tildes gives the date/time alone: ~~~~~ |
HTML tags
Template:Main You can use some HTML tags, too. However, you should avoid HTML in favor of Wiki markup whenever possible.
What it looks like | What you type |
---|---|
Put text in a typewriter
font. The same font is
generally used for | 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: X2, H2O | Superscripts and subscripts: X<sup>2</sup>, H<sub>2</sub>O |
| <center>Centered text</center> * Please note the American spelling of "center". |
The blockquote command formats block quotations, typically by surrounding them with whitespace and a slightly different font. | <blockquote> The '''blockquote''' command ''formats'' block quotations, typically by surrounding them with whitespace and a slightly different font. </blockquote> |
Invisible comments to editors (<!-- -->) appear only while editing the page.
| Invisible comments to editors (<!-- -->) appear only while editing the page. <!-- Note to editors: blah blah blah. --> |
Wiki table markup summary
{| | table start |
|+ | table caption, optional; only between table start and first table row |
|- | table row, optional on first row -- wiki engine assumes the first row |
! | table header cell, optional. Consecutive table header cells may be added on same line separated by double marks (!! ) or start on new lines, each with its own single mark (! ).
|
| | table data cell, required! Consecutive table data cells may be added on same line separated by double marks (|| ) or start on new lines, each with its own single mark (| ).
|
|} | table end |
- The above marks must start on a new line except the double
||
and!!
for optionally adding consecutive cells to a line. However, blank spaces at the beginning of a line are ignored. - XHTML attributes. Each mark, except table end, optionally accepts one or more XHTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
- Cells and caption (
|
or||
,!
or!!
, and|+
) hold content. So separate any attributes from content with a single pipe (|
). Cell content may follow on same line or on following lines. - Table and row marks (
{|
and|-
) do not directly hold content. Do not add pipe (|
) after their optional attributes. If you erroneously add a pipe after attributes for the table mark or row mark the parser will delete it and your final attribute if it was touching the erroneous pipe!
- Cells and caption (
- Content may (a) follow its cell mark on the same line after any optional XHTML attributes or (b) on lines below the cell mark. Content that uses wiki markup that itself needs to start on a new line, such as lists, headings, or nested tables, must be on its own new line.
Basics
The following table lacks borders and good spacing but shows the simplest wiki markup table structure.
You type | You get | ||||||
---|---|---|---|---|---|---|---|
{| |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |
|
The cells in the same row can be listed on one line separated by ||
.
Extra spaces within cells in the wiki markup, as in the wiki markup below, do not affect the actual table rendering.
You type | You get | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
{| | Orange || Apple || more |- | Bread || Pie || more |- | Butter || Ice cream || and more |} |
|
Table headers
Table headers can be created by using "!
" instead of "|
". Headers usually show up bold and centered by default.
You type | You get | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{| ! Item ! Amount ! Cost |- |Orange |10 |7.00 |- |Bread |4 |3.00 |- |Butter |1 |5.00 |- !Total | |15.00 |} |
|
Caption
A table caption can be added to the top of any table as follows.
You type | You get | ||||||
---|---|---|---|---|---|---|---|
{| |+Food complements |- |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |
|
XHTML attributes
You can add XHTML attributes to tables. For the authoriative source on these, see the W3C's HTML 4.01 Specification page on tables.
Attributes on tables
Placing attributes after the table start tag ({|
) applies attributes to the entire table.
You type | You get | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
{| border="1" |Orange |Apple |12,333.00 |- |Bread |Pie |500.00 |- |Butter |Ice cream |1.00 |} |
|
Attributes on cells
You can put attributes on individual cells. For example, numbers may look better aligned right.
You type | You get | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
{| border="1" |Orange |Apple |align="right" | 12,333.00 |- |Bread |Pie |align="right" | 500.00 |- |Butter |Ice cream |align="right" | 1.00 |} |
|
You can also use cell attributes when you are listing multiple cells on a single line. Note that the cells are separated by ||
, and within each cell the attribute(s) and value are separated by |
.
You type | You get | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
{| border="1" | Orange || Apple || align="right" | 12,333.00 |- | Bread || Pie || align="right" | 500.00 |- | Butter || Ice cream || align="right" | 1.00 |} |
|
Attributes on rows
You can put attributes on individual rows, too.
You type | You get | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
{| border="1" |Orange |Apple |align="right"|12,333.00 |- |Bread |Pie |align="right"|500.00 |- style="font-style:italic; color:green;" |Butter |Ice cream |align="right"|1.00 |} |
|
With HTML attributes and CSS styles
CSS style attributes can be added with or without other HTML attributes.
You type | You get | ||||||
---|---|---|---|---|---|---|---|
{| style="color:green; background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |
|
Attributes can be added to the caption and headers as follows.
You type | You get | ||||||
---|---|---|---|---|---|---|---|
{| border="1" cellpadding="20" cellspacing="0" |+ align="bottom" style="color:#e76700;" |''Food complements'' |- |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |
|
Sorting in pages
When a list of entries is included in a table on a page, you can use JavaScript to make the table 'sortable'. To do this, just add the "sortable" class to the table declaration:
{| class="wikitable sortable" |- ! Fruit !! Price |- | Apples || £0.95 |- | Oranges || £0.85 |- | Pears || £1.15 |}
Which produces the following output:
Fruit | Price |
---|---|
Apples | £0.95 |
Oranges | £0.85 |
Pears | £1.15 |