Help:Formatting: Difference between revisions
m
→Wiki Formatting on Your Own: word order
(→Useful Tips, Characters, and Codes: Added note about double spaces after perods.) |
Thundergnat (talk | contribs) m (→Wiki Formatting on Your Own: word order) |
||
(23 intermediate revisions by 6 users not shown) | |||
Line 1:
Editing on a wiki site is a bit different from editing plain [[HTML]]. While HTML is allowed, there are some extra things.
==The Editor==
Line 6:
[[Image:Fifo.gif]]
Or to another form of media with the one after that. You can show mathematical formulas in [[LaTeX]]
==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.
<nowiki>'''Bold text'''</nowiki>
Line 15:
<nowiki>''Italic text''</nowiki>
<nowiki>[[
<nowiki>[
<nowiki>
<nowiki>[[oeis:AXXXXXX]] or [[oeis:AXXXXXX|Display title]]</nowiki> where AXXXXXX is the sequence index, to link to an OEIS sequence page. Leading zeros may be omitted. A1 is the same as A000001.
<nowiki>===Medium headline===</nowiki> (not a button in the JavaScript editor)▼
<nowiki>[[Image:Example.jpg]]</nowiki>
<nowiki>[[Media:Example.ogg]]</nowiki>
▲<nowiki>=
<nowiki>==Medium headline==</nowiki> (has horizontal bar) Avoid on task pages. Will be indexed in with the language entries in the table of contents.
<nowiki>===Small headline===</nowiki> (not a button in the JavaScript editor) Typically used for sub-entries under a main task entry.
<nowiki>=={{header|Language name}}==</nowiki> Task entry header (where language name is spelled exactly the same as on the language category page)
<nowiki><lang c>C code example</lang></nowiki>
<nowiki><math>LaTeX formula</math></nowiki>
Line 33 ⟶ 43:
<nowiki><nowiki>Don't use wiki formatting</nowiki></nowiki>
Your
Your signature (username, date, and time): <nowiki>--~~~~</nowiki>
Just the date and time: <nowiki>--~~~~~</nowiki> (not a button in the JavaScript editor)
Horizontal bar: <nowiki>----</nowiki>
Numbered list example (raw wiki text):
<pre>#Item 1
#Item 2
#Item 3
#Item 1</pre>
What it displays:
#Item 1
#Item 2
#Item 3
#Item 1
<nowiki>*Bulleted text</nowiki> (shown below, not a button in the JavaScript editor)
Line 47 ⟶ 74:
<nowiki>[[Category:category page]]</nowiki> to add a page to a category. (shows a link to the category on the bottom of the page, but not in the text...not a button in the JavaScript editor)
<nowiki>[[:Category:category page]] or [[:Category:category page|Display title]]</nowiki> to insert a link to a category page into the text of a page without adding it to the category. (not a button in the JavaScript editor)
==Useful Tips, Characters, and Codes==
Line 66 ⟶ 93:
:*253 ² (Squared)
: On Linux with German keyboard layout, the following key combinations will usually work:
:*
:* AltGr + ^: ¬
:* AltGr + Shift + Q: Ω
Line 100 ⟶ 127:
*To add superscripted text, put <nowiki><sup></sup></nowiki> around it. <nowiki><sup>example</sup></nowiki> shows <sup>example</sup>.
*To add subscripted text, put <nowiki><sub></sub></nowiki> around it. <nowiki><sub>example</sub></nowiki> shows <sub>example</sub>.
*To show your source code in a box, add a <nowiki><lang></nowiki> tag with a programming language as an argument:
*When you add programming examples to a page, make sure you insert them in the proper alphabetical order.▼
<lang c>int main(char* argv, int argc){
:*Case-insensitive▼
printf("Hello, World!");
:*Longer words come after shorter words that start with the same sequence ("bar" comes before "barber" and [[C]] comes before [[C++]])▼
}</lang>
*To show your code in a code box, add a space before each line (including blank lines):▼
(See [[Help:Syntax highlighting]] for language arguments)
▲*To show
''This is
''This is
*To show text without wikicode in a box, add a <nowiki><pre></nowiki> tag:
*Spelling and grammar count...PROOFREAD! Firefox has spell check built-in (tools → options → advanced tab → "Check my spelling as I type").▼
''This is italic text.''
<pre>''This is not italic text in a box, but it shows the wikicode for italics.''</pre>
*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 change only a small portion of a page, check the "This is a minor edit" box so that people can filter out typo fixes when they search.▼
*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 (<nowiki>--~~~~</nowiki>) to the end of messages on talk pages, and indent responses underneath previous messages:
Line 124 ⟶ 165:
:Response to message 2.
==External Links==
* [[wp:Help:Contents/Editing_Wikipedia|Editing Wikipedia]]
▲*See [[Help:Contribute Content]] for more help on specific types of pages.
* [[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 <nowiki><math>...</math></nowiki> tags.
|