Difference between revisions of "Help:Editing"
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==On how to edit pages== | ==On how to edit pages== | ||
− | http://www.mediawiki.org/wiki/Help:Editing_pages | + | * http://www.mediawiki.org/wiki/Help:Editing_pages |
==On how to format pages== | ==On how to format pages== | ||
− | http://www.mediawiki.org/wiki/Help:Formatting | + | * http://www.mediawiki.org/wiki/Help:Formatting |
+ | * http://www.mediawiki.org/wiki/Help:Signatures | ||
==How to make a reference== | ==How to make a reference== | ||
Line 22: | Line 23: | ||
Don't forget to output the reference table like this: | Don't forget to output the reference table like this: | ||
<references /> | <references /> | ||
+ | |||
+ | |||
+ | ==How to put photos from Gallery2 into Wiki pages== | ||
+ | Simple - press the little "G" button when editing. It will make tags that look like this (I've added extra space around "Foto" so it doesn't get parsed - you should not put this extra space if you want a photo to appear): | ||
+ | <pre> | ||
+ | [[ Foto :###]] | ||
+ | </pre> | ||
+ | (The person who wrote the plugin is Dutch - Foto is Photo in Dutch) | ||
+ | |||
+ | You can specify the size like this - 320 in this example: | ||
+ | <pre> | ||
+ | [[ Foto :1234|320]] | ||
+ | </pre> | ||
+ | |||
+ | More info [http://www.transarte.net/mediawiki/index.php/Gallery2wiki here]. | ||
==How to do Tasks== | ==How to do Tasks== | ||
Line 44: | Line 60: | ||
[x] A Completed Task | [x] A Completed Task | ||
</tasks> | </tasks> | ||
+ | |||
+ | ==How to do Syntax Highlighting== | ||
+ | This doesn't work, don't bother. | ||
+ | <!--===Example Code:=== | ||
+ | PHP: | ||
+ | <pre> | ||
+ | <source lang="php"> | ||
+ | <?php | ||
+ | v = "string"; // sample initialization | ||
+ | ?> | ||
+ | html text | ||
+ | <? | ||
+ | echo v; // end of php code | ||
+ | ?> | ||
+ | </source> | ||
+ | </pre> | ||
+ | C# | ||
+ | <pre> | ||
+ | <source lang="csharp"> | ||
+ | // Hello World in Microsoft C# ("C-Sharp"). | ||
+ | |||
+ | using System; | ||
+ | |||
+ | class HelloWorld | ||
+ | { | ||
+ | public static int Main(String[] args) | ||
+ | { | ||
+ | Console.WriteLine("Hello, World!"); | ||
+ | return 0; | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
+ | </pre> | ||
+ | ===Produces:=== | ||
+ | <pre> | ||
+ | PHP: | ||
+ | <source lang="php"> | ||
+ | <?php | ||
+ | v = "string"; // sample initialization | ||
+ | ?> | ||
+ | html text | ||
+ | <? | ||
+ | echo v; // end of php code | ||
+ | ?> | ||
+ | </source> | ||
+ | |||
+ | C#: | ||
+ | <source lang="csharp"> | ||
+ | // Hello World in Microsoft C# ("C-Sharp"). | ||
+ | |||
+ | using System; | ||
+ | |||
+ | class HelloWorld | ||
+ | { | ||
+ | public static int Main(String[] args) | ||
+ | { | ||
+ | Console.WriteLine("Hello, World!"); | ||
+ | return 0; | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
+ | </pre> | ||
+ | ===Supported Languages=== | ||
+ | These are the languages known by GeSHi that can be used in the '''lang''' parameter: | ||
+ | {| border="0" cellpadding="0" cellspacing="20" | ||
+ | |- valign="top" | ||
+ | | | ||
+ | * actionscript | ||
+ | * ada | ||
+ | * apache | ||
+ | * applescript | ||
+ | * asm | ||
+ | * asp | ||
+ | * autoit | ||
+ | * bash | ||
+ | * blitzbasic | ||
+ | * bnf | ||
+ | * c | ||
+ | * caddcl | ||
+ | * cadlisp | ||
+ | * cfdg | ||
+ | * cfm | ||
+ | * cpp-qt | ||
+ | * cpp | ||
+ | * csharp | ||
+ | * css-gen.cfg | ||
+ | * css | ||
+ | | | ||
+ | * c_mac | ||
+ | * d | ||
+ | * delphi | ||
+ | * diff | ||
+ | * div | ||
+ | * dos | ||
+ | * eiffel | ||
+ | * fortran | ||
+ | * freebasic | ||
+ | * gml | ||
+ | * groovy | ||
+ | * html4strict | ||
+ | * idl | ||
+ | * ini | ||
+ | * inno | ||
+ | * io | ||
+ | * java | ||
+ | * java5 | ||
+ | * javascript | ||
+ | * latex | ||
+ | | | ||
+ | * lisp | ||
+ | * lua | ||
+ | * matlab | ||
+ | * mirc | ||
+ | * mpasm | ||
+ | * mysql | ||
+ | * nsis | ||
+ | * objc | ||
+ | * ocaml-brief | ||
+ | * ocaml | ||
+ | * oobas | ||
+ | * oracle8 | ||
+ | * pascal | ||
+ | * perl | ||
+ | * php-brief | ||
+ | * php | ||
+ | * plsql | ||
+ | * python | ||
+ | * qbasic | ||
+ | * reg | ||
+ | | | ||
+ | * robots | ||
+ | * ruby | ||
+ | * sas | ||
+ | * scheme | ||
+ | * sdlbasic | ||
+ | * smalltalk | ||
+ | * smarty | ||
+ | * sql | ||
+ | * tcl | ||
+ | * text | ||
+ | * thinbasic | ||
+ | * tsql | ||
+ | * vb | ||
+ | * vbnet | ||
+ | * vhdl | ||
+ | * visualfoxpro | ||
+ | * winbatch | ||
+ | * xml | ||
+ | * z80 | ||
+ | |} | ||
+ | --> |
Latest revision as of 23:09, 20 November 2010
Contents
On how to edit pages
On how to format pages
How to make a reference
Example Code:
Text you want to reference about. <ref>reference data here will appear as a footnote</ref>. It's in the middle of some super great writing. <ref name="Hammel, Jack">if you name a reference, you can re-use it easily</ref> You worked really hard on making sure everything was properly cited.<ref>this is another reference</ref> When the article was done you were proud.<ref name="Hammel, Jack /> Don't forget to output the reference table like this: <references />
Produces:
Text you want to reference about. [1] It's in the middle of some super great writing. [2] You worked really hard on making sure everything was properly cited.[3] When the article was done you were proud.[2]
Don't forget to output the reference table like this:
- ↑ reference data here will appear as a footnote
- ↑ 2.0 2.1 if you name a reference, you can re-use it easily
- ↑ this is another reference
How to put photos from Gallery2 into Wiki pages
Simple - press the little "G" button when editing. It will make tags that look like this (I've added extra space around "Foto" so it doesn't get parsed - you should not put this extra space if you want a photo to appear):
[[ Foto :###]]
(The person who wrote the plugin is Dutch - Foto is Photo in Dutch)
You can specify the size like this - 320 in this example:
[[ Foto :1234|320]]
More info here.
How to do Tasks
Example Code:
<tasks> [ ] A Simple Task (Name Of User Assigned to Task) [1] A Priority 1 Task [2] A Priority 2 Task (Name Of User Assigned to Task) [3] A Priority 3 Task [x] A Completed Task </tasks>
You can make as many tasks as you like. Each task must be on its own line. Do not put anything else on the same line as a task. You do not need to assign the task to a user. The user does not have to be a vailid wiki username.
Produces:
<tasks> [ ] A Simple Task (Name Of User Assigned to Task) [1] A Priority 1 Task [2] A Priority 2 Task (Name Of User Assigned to Task) [3] A Priority 3 Task [x] A Completed Task </tasks>
How to do Syntax Highlighting
This doesn't work, don't bother.