⚠️ Warning: This is a draft ⚠️
This means it might contain formatting issues, incorrect code, conceptual problems, or other severe issues.
If you want to help to improve and eventually enable this page, please fork RosettaGit's repository and open a merge request on GitHub.
Editing on a wiki site is a bit different from editing plain [[HTML]]. While HTML is allowed, there are some extra things.
==The Editor== If you enable JavaScript on your browser, you get a neat little toolbar to help you out with wiki editing. You can use these buttons you help you learn how to do things for yourself. First, there are '''Bold''' and ''Italics'' buttons. Next, there is a button you can use to [[Main Page|link to an internal page]], and one you can use to [http://www.rosettacode.org link to an external page]. There is a button for making text into a header (like "The Editor" shown above). You can link to an image on the site with the next button:
[[Image:Fifo.gif]]
Or to another form of media with the one after that. You can show mathematical formulas in [[LaTeX]] with the next button. The next button allows you to show text without wiki formatting in case your language uses text that wiki has reserved for itself (for example, two apostrophes in a row). The next button adds your signature to things (used mostly for talk pages), and the last button adds a horizontal bar, but that gets annoying.
==Wiki Formatting on Your Own== If you would like to break yourself away from the GUI editor options, you can click the "edit" tab on almost any page to see the wikicodes for yourself, or just type the formatting codes in yourself.
Your username:
Your signature (username, date, and time):
Just the date and time:
Horizontal bar:
Numbered list example (raw wiki text):
#Item 1
#Item 2
#Item 3
#Item 1
What it displays: #Item 1 #Item 2 #Item 3
#Item 1
==Useful Tips, Characters, and Codes==
One way to make sure that your edits have come out just like you want is to preview them before submitting them. Clicking the "Show preview" button before you save your page will show you how the page will look with whatever content you have added, but it won't bother anyone else if it's wrong. Even after all of this it may still not look right, though. So here are a few more tips:
To add a newline. simply insert two returns or add a
int main(char* argv, int argc){ printf("Hello, World!"); }
(See [[Help:Syntax highlighting]] for language arguments) *To show text with wikicode in a code box, add a space before each line (including blank lines):
''This is italic text.''
''This is italic text in a box.''
*To show text without wikicode in a box, add a
</nowiki> tag:
''This is italic text.''
```txt
''This is not italic text in a box, but it shows the wikicode for italics.''
*Putting two spaces after a period (as is common practice) will only show up as one space when typing plain text. It basically wastes server space. *If you have a question about something on a page, ask! Sometimes even we are wrong about coding, so if you think you see a problem or don't understand something, click the "discussion" tab at the top of the page and tell us about it. *See [[Help:Contribute Content]] for more help on specific types of pages.
==Guidelines (not rules)==
*Spelling and grammar count...PROOFREAD! [[Firefox]] has spell check built-in (tools → options → advanced tab → "Check my spelling as I type").
*When you add programming examples to a page, make sure you insert them in the proper alphabetical order.
:*Case-insensitive
:*Longer words come after shorter words that start with the same sequence ("bar" comes before "barber" and [[C]] comes before [[C++]])
*If you change only a small portion of a page (correcting spelling, adding punctuation, etc.), check the "This is a minor edit" box so that people can filter out typo fixes when they search (adding an entire programming example is not a minor edit).
*Try to make the most of each edit. Five edits to a page in a ten minute span crowds the [[Special:Recentchanges|recent changes]] page.
*Try to add explanation in sentences to more complex examples. Write as if someone who has never heard of your language is reading.
*Add your signature (
Message 1.
:Response to message 1.
::Response to response to message 1.
:Second response to message 1.
Message 2.
:Response to message 2. ==External Links==
- [[wp:Help:Contents/Editing_Wikipedia|Editing Wikipedia]]
- [[wp:Wikipedia:Cheatsheet|Cheatsheet]]
- [[wp:Wikipedia:Tutorial|Tutorial]]
- [[wp:Wikipedia:How_to_edit_a_page|How to edit a page]] contains details about markup
- [http://meta.wikimedia.org/wiki/Help:Displaying_a_formula Help:Displaying a formula] explains TeX syntax for
tags.