Help:Formatting: Difference between revisions

m
(→‎Useful Tips, Characters, and Codes: More detail about spaces, pre tags, and lang tags)
 
(5 intermediate revisions by 4 users not shown)
Line 19:
<nowiki>[externalLink] or [externalLink Display title]</nowiki> to change what words show up on the page for the link.
 
<nowiki>[[wp:wikipedia link]] or [[wp:wikipedia link|Display title]]</nowiki> to link to link to a wikipedia page with the name that follows "wp:"
 
<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>=Big headline=</nowiki> (has horizontal bar, not a button in the JavaScript editor)
 
<nowiki>==Small headline==</nowiki> (has horizontal bar)
 
<nowiki>===Medium headline===</nowiki> (not a button in the JavaScript editor)
 
<nowiki>[[Image:Example.jpg]]</nowiki>
 
<nowiki>[[Media:Example.ogg]]</nowiki>
 
 
<nowiki>=Big headline=</nowiki> (has horizontal bar, not a button in the JavaScript editor) Rarely used.
 
<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>===MediumSmall 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>
Line 44 ⟶ 50:
 
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 151 ⟶ 170:
* [[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.
10,327

edits