Help:Formatting: Difference between revisions

Everything About Fiction You Never Wanted to Know.
Content added Content deleted
(removed comment tag category, as the comment so flagged is a demo)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
<h2 style="margin:.5em; margin-top:.1em; margin-bottom:.1em; border-bottom:0; font-weight:bold;">Formatting</h2>
<h2 style="margin:.5em; margin-top:.1em; margin-bottom:.1em; border-bottom:0; font-weight:bold;">Formatting</h2>
|-
|-
| colspan=3 style="background:#E6F2FF; border-top:2px #a3b1bf solid" |
| colspan=3 style="background:#E6F2FF; border-top:2px #a3b1bf solid; text-align:center;" |
<center>'''Works anywhere in the text''' &nbsp; &nbsp; &nbsp; &nbsp;
'''Works anywhere in the text'''
|- style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"
|- style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"
| style="border-bottom:2px #a3b1bf solid" width="30%" | Description
| style="border-bottom:2px #a3b1bf solid" width="30%" | Description
Line 14: Line 14:
|Italics, bold, and both
|Italics, bold, and both
|
|
<tt><nowiki>''italics'', '''bold''', and '''''both'''''</nowiki></tt>
<code><nowiki>''italics'', '''bold''', and '''''both'''''</nowiki></code>
|
|
''italics'', '''bold''', and '''''both'''''
''italics'', '''bold''', and '''''both'''''
Line 22: Line 22:
|Link to another page
|Link to another page
|
|
<tt><nowiki>[[Help!]]</nowiki></tt><br />
<code><nowiki>[[Help!]]</nowiki></code><br />
<tt><nowiki>[[Help!]]ing</nowiki></tt>
<code><nowiki>[[Help!]]ing</nowiki></code>
|
|
[[Help!]]<br />
[[Help!]]<br />
Line 33: Line 33:
"Pipe" a link to change the link's text
"Pipe" a link to change the link's text
|
|
<tt><nowiki>[[Help:Spam|Spam]]</nowiki></tt>
<code><nowiki>[[Help:Spam|Spam]]</nowiki></code>
|
|
[[Help:Spam|Spam]]
[[Help:Spam|Spam]]
Line 42: Line 42:
Link to a section
Link to a section
|
|
<tt><nowiki>[[Help:Templates#Using a template]]</nowiki></tt><br />
<code><nowiki>[[Help:Templates#Using a template]]</nowiki></code><br />
<tt><nowiki>[[Help:Templates#Using a template|Using a template]]</nowiki></tt>
<code><nowiki>[[Help:Templates#Using a template|Using a template]]</nowiki></code>
|
|
[[Help:Templates#Using a template]]<br />
[[Help:Templates#Using a template]]<br />
Line 52: Line 52:
|Red link
|Red link
|
|
<tt><nowiki>[[something missing]]</nowiki></tt>
<code><nowiki>[[something missing]]</nowiki></code>
|
|
[[something missing]]
[[something missing]]
Line 62: Line 62:
<div style="padding: 0.7em .5em; font-size:0.9em;"></div>
<div style="padding: 0.7em .5em; font-size:0.9em;"></div>
|
|
<tt><nowiki>Hello,<ref></nowiki></tt>Library of Congress<tt><nowiki></ref> World.<ref>http://www.w3.org/</ref></nowiki></tt>
<code><nowiki>Hello,<ref></nowiki></code>Library of Congress<code><nowiki></ref> World.<ref>http://www.w3.org/</ref></nowiki></code>
<br /><br />
<br /><br />
<tt><nowiki>
<code><nowiki>
References:
References:


<references/></nowiki>
<references/></nowiki></code>

</tt>
|
|
Hello,<ref>Library of Congress</ref> World.<ref>http://www.w3.org/</ref>
Hello,<ref>Library of Congress</ref> World.<ref>http://www.w3.org/</ref>
Line 81: Line 79:
|Signature
|Signature
|
|
<tt><nowiki>~~~~</nowiki></tt><br /><br /><span style="font-size:0.9em;">''do not sign in an article, only on talk pages''</span>
<code><nowiki>~~~~</nowiki></code><br /><br /><span style="font-size:0.9em;">''do not sign in an article, only on talk pages''</span>
|
|
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
Line 89: Line 87:
|Plain website
|Plain website
|
|
<tt><nowiki>http://www.wikipedia.org</nowiki></tt>
<code><nowiki>http://www.wikipedia.org</nowiki></code>
|
|
http://www.wikipedia.org
http://www.wikipedia.org
Line 97: Line 95:
|Link a website
|Link a website
|
|
<tt><nowiki>[http://www.wikipedia.org]</nowiki></tt>
<code><nowiki>[http://www.wikipedia.org]</nowiki></code>
|
|
[http://www.wikipedia.org]
[http://www.wikipedia.org]
Line 105: Line 103:
|Link and name a website
|Link and name a website
|
|
<tt><nowiki>[http://www.wikipedia.org Wikipedia]</nowiki></tt>
<code><nowiki>[http://www.wikipedia.org Wikipedia]</nowiki></code>
|
|
[http://www.wikipedia.org Wikipedia]
[http://www.wikipedia.org Wikipedia]
Line 114: Line 112:
<div style="padding: 0.7em .5em; font-size:0.9em;">''to show your previous comment is outdated''</div>
<div style="padding: 0.7em .5em; font-size:0.9em;">''to show your previous comment is outdated''</div>
|
|
<tt><nowiki><s>This topic isn't notable.</s></nowiki></tt>
<code><nowiki><s>This topic isn't notable.</s></nowiki></code>
|
|
<s>This topic isn't notable.</s>
<s>This topic isn't notable.</s>
Line 123: Line 121:
<div style="padding: 0.7em .5em; font-size:0.9em;">''consensus is how things are decided''</div>
<div style="padding: 0.7em .5em; font-size:0.9em;">''consensus is how things are decided''</div>
|
|
<tt><nowiki><!--This had consensus, discuss at talk page--></nowiki></tt>
<code><nowiki><!--This had consensus, discuss at talk page--></nowiki></code>
|
|
<!--This had consensus, discuss at talk page-->
<!--This had consensus, discuss at talk page-->
Line 131: Line 129:
|[[Help:Images|Show an image]]
|[[Help:Images|Show an image]]
|
|
<tt><nowiki>[[</nowiki></tt>File:Wiki.png<tt>|thumb|</tt>Caption<tt><nowiki>]]</nowiki></tt>
<code><nowiki>[[</nowiki></code>File:Wiki.png<code>|thumb|</code>Caption<code><nowiki>]]</nowiki></code>
|
|
[[File:Wiki.png|thumb|Caption]]
[[File:Wiki.png|thumb|Caption]]
Line 139: Line 137:
|[[Help:Templates|Templates]]
|[[Help:Templates|Templates]]
|
|
<tt><nowiki>The {{main|Home Page}} template adds a link to the Home Page</nowiki></tt>
<code><nowiki>The {{main|Home Page}} template adds a link to the Home Page</nowiki></code>
|
|
{{main|Home Page}}
{{main|Home Page}}
Line 146: Line 144:
|-
|-
|Add a page to a [[Help:Categories|category]]
|Add a page to a [[Help:Categories|category]]
|<tt><nowiki>[[Category:Category name]]</nowiki></tt><br /><br /><span style="font-size:0.9em;">''place near the bottom of a page''</span>
|<code><nowiki>[[Category:Category name]]</nowiki></code><br /><br /><span style="font-size:0.9em;">''place near the bottom of a page''</span>
|<span style="font-size:0.9em;">''shows''</span> "Category name" <span style="font-size:0.9em;">''in a bar at bottom when the page is previewed or saved''</span>
|<span style="font-size:0.9em;">''shows''</span> "Category name" <span style="font-size:0.9em;">''in a bar at bottom when the page is previewed or saved''</span>


Line 160: Line 158:
<div style="padding: 0.7em .5em; font-size:0.9em;">''redirects must be placed at the start of the first line''</div>
<div style="padding: 0.7em .5em; font-size:0.9em;">''redirects must be placed at the start of the first line''</div>
|
|
<tt><nowiki>#REDIRECT [[Target page]]</nowiki></tt>
<code><nowiki>#REDIRECT [[Target page]]</nowiki></code>
|
|
[[Image:Redirect arrow without text.png|30px|link=]] [[Target page]]
[[Image:Redirect arrow without text.png|30px|link=]] [[Target page]]
Line 168: Line 166:
|[[Help:Redirects|Redirect to a section of another page]]
|[[Help:Redirects|Redirect to a section of another page]]
|
|
<tt><nowiki>#REDIRECT [[</nowiki></tt>Target page#anchorName<tt><nowiki>]]</nowiki></tt>
<code><nowiki>#REDIRECT [[</nowiki></code>Target page#anchorName<code><nowiki>]]</nowiki></code>
|
|
[[Image:Redirect arrow without text.png|30px|link=]] [[Target page#anchorName]]
[[Image:Redirect arrow without text.png|30px|link=]] [[Target page#anchorName]]
Line 177: Line 175:
<div style="padding: 0.7em .5em; font-size:0.9em;">''a Table of Contents will automatically be generated when four headings are added to an article''</div>
<div style="padding: 0.7em .5em; font-size:0.9em;">''a Table of Contents will automatically be generated when four headings are added to an article''</div>
|
|
<tt><nowiki>==Level 2==</nowiki></tt><br />
<code><nowiki>==Level 2==</nowiki></code><br />
<tt><nowiki>===Level 3===</nowiki></tt><br />
<code><nowiki>===Level 3===</nowiki></code><br />
<tt><nowiki>====Level 4====</nowiki></tt><br />
<code><nowiki>====Level 4====</nowiki></code><br />
<tt><nowiki>=====Level 5=====</nowiki></tt><br />
<code><nowiki>=====Level 5=====</nowiki></code><br />
<tt><nowiki>======Level 6======</nowiki></tt><br /><br />
<code><nowiki>======Level 6======</nowiki></code><br /><br />
<span style="font-size:0.9em">''do not use''&nbsp; =Level 1=&nbsp; ''as it is for page titles''</span>
<span style="font-size:0.9em">''do not use''&nbsp; =Level 1=&nbsp; ''as it is for page titles''</span>
|
|
Line 193: Line 191:
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|-
|Nonindexed headers <div style="font-size:0.9em;">
|Nonindexed headers
<div style="padding: 0.7em .5em; font-size:0.9em;">''left out of Table of Contents''</div>
<div style="padding: 0.7em .5em; font-size:0.9em;">''left out of Table of Contents''</div>
|
|
<tt><nowiki>; Header name</nowiki></tt><br />
<code><nowiki>; Header name</nowiki></code><br />
<div style="font-size:0.9em;">''has a leading semicolon'' ";" ''in front''</div>
<div style="font-size:0.9em;">''has a leading semicolon'' ";" ''in front''</div>
|
|
Line 207: Line 205:
|Bulleted list
|Bulleted list
|
|
<tt>* One</tt><br />
<code>* One</code><br />
<tt>* Two</tt><br />
<code>* Two</code><br />
<tt>** Two point one</tt><br />
<code>** Two point one</code><br />
<tt>* Three</tt>
<code>* Three</code>
|
|
* One
* One
Line 221: Line 219:
|Numbered list
|Numbered list
|
|
<tt># One</tt><br />
<code># One</code><br />
<tt># Two</tt><br />
<code># Two</code><br />
<tt>## Two point one</tt><br />
<code>## Two point one</code><br />
<tt># Three</tt>
<code># Three</code>
|
|
# One
# One
Line 236: Line 234:
<div style="padding: 0.7em .5em; font-size:0.9em;">''this is used when replying on a talk page, to make it easier to follow conversations''</div>
<div style="padding: 0.7em .5em; font-size:0.9em;">''this is used when replying on a talk page, to make it easier to follow conversations''</div>
|
|
<tt><nowiki>no indent (normal)</nowiki></tt><br />
<code><nowiki>no indent (normal)</nowiki></code><br />
<tt><nowiki>:first indent</nowiki></tt><br />
<code><nowiki>:first indent</nowiki></code><br />
<tt><nowiki>::second indent</nowiki></tt><br />
<code><nowiki>::second indent</nowiki></code><br />
<tt><nowiki>:::third indent</nowiki></tt>
<code><nowiki>:::third indent</nowiki></code>
|
|
no indent (normal)<br />
no indent (normal)<br />
Line 246: Line 244:
:::third indent
:::third indent
|}
|}

</div>


__NOEDITSECTION__
__NOEDITSECTION__

Latest revision as of 19:07, 19 April 2024

Here you'll learn the basics of article formatting.

Formatting

Works anywhere in the text

Description You type You get
Italics, bold, and both

''italics'', '''bold''', and '''''both'''''

italics, bold, and both

Link to another page

[[Help!]]
[[Help!]]ing

Help!
Help!ing

"Pipe" a link to change the link's text

[[Help:Spam|Spam]]

Spam

Link to a section

[[Help:Templates#Using a template]]
[[Help:Templates#Using a template|Using a template]]

Help:Templates#Using a template
Using a template

Red link

[[something missing]]

something missing

References and footnotes
sources in the article will appear where <references/> is put, typically under a level 2 section heading (see below) towards the bottom of the page.

Hello,<ref>Library of Congress</ref> World.<ref>http://www.w3.org/</ref>

References: <references/>

Hello,[1] World.[2]

References:

  1. Library of Congress
  2. http://www.w3.org/
Signature

~~~~

do not sign in an article, only on talk pages

Username (talk) 20:33, 5 June 2024 (UTC)

Plain website

http://www.wikipedia.org

http://www.wikipedia.org

Link a website

[http://www.wikipedia.org]

[1]

Link and name a website

[http://www.wikipedia.org Wikipedia]

Wikipedia

Strike your talk page comment
to show your previous comment is outdated

<s>This topic isn't notable.</s>

This topic isn't notable.

Hide text somewhere for editors
consensus is how things are decided

<!--This had consensus, discuss at talk page-->

Show an image

[[File:Wiki.png|thumb|Caption]]

Caption
Templates

The {{main|Home Page}} template adds a link to the Home Page

Main article: Home Page
Add a page to a category [[Category:Category name]]

place near the bottom of a page
shows "Category name" in a bar at bottom when the page is previewed or saved

Works only at the beginning of lines    

Description You type You get
Redirect to another page
redirects must be placed at the start of the first line

#REDIRECT [[Target page]]

Target page

Redirect to a section of another page

#REDIRECT [[Target page#anchorName]]

Target page#anchorName

Section headings
a Table of Contents will automatically be generated when four headings are added to an article

==Level 2==
===Level 3===
====Level 4====
=====Level 5=====
======Level 6======

do not use  =Level 1=  as it is for page titles

Level 2

Level 3

Level 4

Level 5
Level 6
Nonindexed headers
left out of Table of Contents

; Header name

has a leading semicolon ";" in front

Header name

will not appear in Table of Contents
Bulleted list

* One
* Two
** Two point one
* Three

  • One
  • Two
    • Two point one
  • Three
Numbered list

# One
# Two
## Two point one
# Three

  1. One
  2. Two
    1. Two point one
  3. Three
Indenting text
this is used when replying on a talk page, to make it easier to follow conversations

no indent (normal)
:first indent
::second indent
:::third indent

no indent (normal)

first indent
second indent
third indent