Help:Formatting: Difference between revisions

Content added Content deleted
(→‎The Editor: math tags are installed now)
(→‎Useful Tips, Characters, and Codes: More detail about spaces, pre tags, and lang tags)
Line 108: Line 108:
*To add superscripted text, put <nowiki><sup></sup></nowiki> around it. <nowiki><sup>example</sup></nowiki> shows <sup>example</sup>.
*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 add subscripted text, put <nowiki><sub></sub></nowiki> around it. <nowiki><sub>example</sub></nowiki> shows <sub>example</sub>.
*To show your code in a code box, add a space before each line (including blank lines):
*To show your source code in a box, add a <nowiki><lang></nowiki> tag with a programming language as an argument:
<lang c>int main(char* argv, int argc){
printf("Hello, World!");
}</lang>
(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 not code.
''This is italic text.''
This is totally code.
''This is italic text in a box.''
*To show text without wikicode in a box, add a <nowiki><pre></nowiki> tag:

''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.
*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.
*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.