Help:Editing
From Curuxa Community
|
Curuxa Community Website is based on MediaWiki software.
Pages/articles are edited using the internal MediaWiki text editor, which includes a couple of buttons to simplify text formatting.
Many more combinations can be done using Wiki Syntax:
Basic Syntax
| Description | You type | You get |
|---|---|---|
| character (inline) formatting – applies anywhere | ||
| Italic text | ''italic''
| italic |
| Bold text | '''bold'''
| bold |
| Bold and italic | '''''bold & italic'''''
| bold & italic |
| Escape wiki markup | <nowiki>no ''markup''</nowiki>
| no ''markup'' |
| section formatting – only at the beginning of the line | ||
| Headings of different levels | =level 1= ==level 2== ===level 3=== ====level 4==== =====level 5===== ======level 6====== An article with 4 or more headings automatically creates a table of contents. |
Level 1
Level 2
Level 3 Level 4Level 5 Level 6
|
| Bullet list |
* one * two * three ** three point one ** three point two Inserting a blank line will end the first list and start another. |
|
| Numbered list |
# one # two<br />spanning more lines<br />doesn't break numbering # three ## three point one ## three point two |
|
| links | ||
| Internal link | [[Main Page]] | Main Page |
| Linked text | This is a [[Main_Page|link]] to the main page | This is a link to the main page |
| Internal link to an anchor | [[#See also]] Section headings and the top of the page are automatically anchored. | #See also |
| Direct link to an image | See this [[media:example.jpg|image]]. | See this image. |
| External link | http://mediawiki.org | http://mediawiki.org |
| Linked text to external page | Visit [http://mediawiki.org MediaWiki] website | Visit MediaWiki website |
| Mail link | [mailto:info@example.org email me] | email me |
| Code | Description |
|---|---|
| __NOTOC__ | Hides the table of contents (TOC). |
| __NOINDEX__ | Tell search engines not to index the page (ie, do not list in search engines' results). |
| {{TocLeft}} | Puts the Table Of Contents (TOC) on the left |
| {{TocRight}} | Puts the Table Of Contents (TOC) on the right |
| {{Clear}} | Makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images. |
| [[Category:NAME]] | Add page to category |
Images
| Description | You type | You get |
|---|---|---|
| Just a picture | ... text text text [[File:Example.jpg]] text text text ... | text text text text text text text text text text text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text text text text text text text text text text text |
| Thumbnail with caption, fixed width, left side | [[File:Example.jpg|thumb|150px|left|This is a caption]] text text text ... | text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text |
| Thumbnail with caption, fixed height, right side | [[File:Example.jpg|thumb|x150px|right|This is a caption]] text text text ... | text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text |
Stopping text flow
On occasion it is desirable to stop text from flowing around an image. Depending on the web browser's screen resolution and such, text flow on the right side of an image may cause a section header (for instance, == My Header ==) to appear to the right of the image, instead of below it, as a user may expect. The text flow can be stopped by placing {{Clear}} before the text that should start after the image.
Galleries
<gallery> File:Example.jpg|Item 1 File:Example.jpg File:Example.jpg|'''bold caption''' File:Example.jpg File:Example.jpg| ''italic caption'' File:Example.jpg </gallery>
NOTE: this gallery has fixed width, so the gallery will always be smaller or wider than the screen. To fix that, you can use a simple list of images (same height is better):
[[File:Example.jpg|x150px|caption]] [[File:Example.jpg|x150px]] [[File:Example.jpg|x150px]] [[File:Example.jpg|x150px]] [[File:Example.jpg|x150px|link=Main_Page|This image links to the main page]] [[File:Example.jpg|x150px]] [[File:Example.jpg|x150px]] [[File:Example.jpg|x150px]] [[File:Example.jpg|x150px]] [[File:Example.jpg|x150px]]
Source code
| You type | You get |
|---|---|
<source lang="c">
int main() {
printf("hello, world");
return 0;
}
</source>
|
int main() { printf("hello, world"); return 0; } |
Valid languages: abap, actionscript, ada, apache, applescript, asm, asp, autoit, bash, blitzbasic, bnf, caddcl, cadlisp, cfdg, cfm, c_mac, c, cpp, cpp-qt, csharp, css-gen.cfg, css, delphi, diff, div, dos, dot, d, eiffel, fortran, freebasic, genero, gml, groovy, haskell, html4strict, idl, ini, inno, io, java5, java, javascript, latex, lisp, lua, m68k, matlab, mirc, mpasm, mysql, nsis, objc, ocaml-brief, ocaml, oobas, oracle8, pascal, perl, per, php-brief, php, picasm, plsql, python, qbasic, rails, reg, robots, ruby, sas, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, vbnet, vb, vhdl, visualfoxpro, winbatch, xml, xpp, z80
Videos (YouTube)
You have
http://www.youtube.com/watch?v=WWio47BENkg
You type
{{#widget:YouTube|id=WWio47BENkg}}
You get

