Help:Editing BoyWiki 101: Difference between revisions

From BoyWiki
No edit summary
No edit summary
Line 32: Line 32:


{{Boxes end}}
{{Boxes end}}
===Sections===
{|align="center" style="width:100%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
Equal signs are used to mark the enclosed text as a section heading: <code>==Section name==</code> for a primary section; <code>===Subsection name===</code> for the next level (a subsection); and so on to the lowest-level subsection, with <code>=====Sub-subsection name=====</code>.  Spaces between the equal signs and the heading text are optional, and will not affect the way the heading is displayed. The heading must be typed on a separate line. Include one blank line above the heading, and optionally one blank line below it, for readability in the edit window. (Only two or more consecutive blank lines will add more white space in the public appearance of the page.)
|colspan="3" align="center" style="background:#cee0f2; text-align:center;" |
Example:
<h2 style="margin:.5em; margin-top:.1em; margin-bottom:.1em; border-bottom:0; font-weight:bold;"></h2>  
|-<!--WORKS ANYWHERE IN THE TEXT-->
| colspan=3 style="background:#E6F2FF; border-top:2px #a3b1bf solid" |
<center>'''Works anywhere in the text''' &nbsp; &nbsp; &nbsp; &nbsp;
|-<!--COLUMN HEADINGS--> 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" | You type
| style="border-bottom:2px #a3b1bf solid" width="30%" | You get
|-<!--1ST ROW 1ST COLUMN-->
|Italics, bold, and both
|<!--2ND COLUMN-->
<tt><nowiki>''italics'', '''bold''', and '''''both'''''</nowiki></tt>
|<!--3RD COLUMN-->
''italics'', '''bold''', and '''''both'''''
|-<!--HORIZONTAL LINE-->
|colspan="3" style="border-top:1px solid #cee0f2;"|


{{Box1 start}}
|colspan="3" style="border-top:1px solid #cee0f2;"|
Wiki Code:
|-
 
|
<Pre>
Link to a section
== Section ==
|
=== Subsection ===
<tt><nowiki>[[Frog#Jumping]]</nowiki></tt><br />
==== Sub-subsection ====
<tt><nowiki>[[Frog#Jumping|the jumping of frogs]]</nowiki></tt>
</Pre>
|
{{Box2 start}}
[[Frog#Jumping]]<br />
Gives:
[[Frog#Jumping|the jumping of frogs]]
 
|-
== Section ==
|colspan="3" style="border-top:1px solid #cee0f2;"|
 
|-
=== Subsection ===
|[[WP:RED|Red link]]
 
<div style="padding: 0.7em .5em; font-size:0.9em;">''red links in articles help by showing desired [[WP:REDIRECT|redirects]] or [[WP:N|notable]] pages''</div>
==== Sub-subsection ====
|
 
<tt><nowiki>[[something missing]]</nowiki></tt>
{{Boxes end}}
==== Table of contents ====
 
 
When a page has at least four headings, a table of contents (TOC) will automatically appear after the lead and before the first heading. The TOC can be controlled by magic words or templates:
* <code><nowiki>__FORCETOC__</nowiki></code> forces the TOC to appear at the normal location regardless of the number of headings.
* <code><nowiki>__TOC__</nowiki></code> forces the TOC to appear at the point where the magic word is inserted instead of the normal location.
* <code><nowiki>__NOTOC__</nowiki></code> disables the TOC entirely.
 
 
=== Indent text ===
 
 
Indentation is most commonly used on talk pages.
 
{{Box1 start}}
Indentation as used on talk pages:
 
<nowiki>:Each colon at the start of a line</nowiki>
 
<nowiki>::causes the line to be indented by three more character positions.</nowiki>
 
 
<nowiki>:::(The indentation persists</nowiki>
so long as no carriage return or line break is used.)
 
<nowiki>:::Repeat the indentation at any line break.</nowiki>
 
<nowiki>::::Use an extra colon for each response.</nowiki>
 
<nowiki>:::::And so forth ...</nowiki>
 
<nowiki>::::::And so on ...</nowiki>
{{Box2 start}}
Indentation as used on talk pages:
:Each colon at the start of a line
::causes the line to be indented by three more character positions.
:::(The indentation persists
so long as no carriage return or line break is used.)
:::Repeat the indentation at any line break.
::::Use an extra colon for each response.
:::::And so forth ...
::::::And so on ...
{{boxes end}}
=== Blockquote ===
 
When there is a need for separating a block of text. This is useful for (as the name says) inserting blocks of quoted (and cited) text.
{{Box1 start}}
<nowiki><blockquote>
The '''blockquote''' tag will indent both margins when needed instead of the left margin only as the colon does.
</blockquote>
</nowiki>
{{Box2 start}}
<blockquote>
The '''blockquote''' tag will indent both margins when needed instead of the left margin only as the colon does.
</blockquote>
{{boxes end}}
=== Text formatting ===
 
{| class="wikitable"
|- valign="top"
! Description
! What you type
! What it looks like
|- id="emph" valign="top"
|
|
''Italics'', '''bold'''
[[something missing]]
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Help:Citations quick reference|References and footnotes]]
<div style="padding: 0.7em .5em; font-size:0.9em;">''sources in the article will appear where <nowiki>{{reflist}}</nowiki> is put, typically under a level 2 section heading (see below) towards the bottom of the page; text between <nowiki>{{}}</nowiki> is for a [[Help:Template|template]]''</div>
<div style="padding: 0.7em .5em; font-size:0.9em;"></div>
|
|
<pre>To ''italicize text'', just put
<tt><nowiki>Hello,<ref>[http://www.loc.gov/about/ Library of Congress]</ref> World.<ref>http://www.w3.org/</ref></nowiki></tt>
2 apostrophes on each side.
<br /><br />
<tt><nowiki>
References:


3 apostrophes will '''bold the text'''
{{reflist}}</nowiki>


5 apostrophes for '''''bold italics'''''
</tt>
|
Hello,<ref>[http://www.loc.gov/about/ Library of Congress]</ref> World.<ref>http://www.w3.org/</ref>


'''''Italic and bold
References:
formatting''''' only works properly
within a single line.


 
{{reflist}}
</pre>
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|Signature{{Anchor|Signature}}
<div style="padding: 0.7em .5em; font-size:0.9em;">''sign your contributions when posting to a [[Wikipedia:Tutorial (Talk pages)|talk page]]''</div>
|
<tt><nowiki>~~~~</nowiki></tt><br /><br /><span style="font-size:0.9em;">''do not sign in an article, only on talk pages''</span>
|
|
To ''italicize text'', just put
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
2 apostrophes on each side.
|-
 
|colspan="3" style="border-top:1px solid #cee0f2;"|
3 apostrophes will '''bold the text'''
 
5 apostrophes for '''''bold italics'''''
 
'''''Italic and bold
formatting''''' only works properly
within a single line.
 
 
 
|-
|-
|Plain website
|
|
Small chunks of source code within a line of normal text.
<tt><nowiki>http://www.wikipedia.org</nowiki></tt>
 
Code is displayed in a monospace font.
|
|
<pre><nowiki>function <code>int m2()</code> is nice</nowiki></pre>
http://www.wikipedia.org
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|Link a website
|
|
function <code>int m2()</code> is nice
<tt><nowiki>[http://www.wikipedia.org]</nowiki></tt>
|- valign="top"
|
|
Syntax highlighting for source code.
[http://www.wikipedia.org]
 
|-
Computer code has colored text and more stringent formatting.
|colspan="3" style="border-top:1px solid #cee0f2;"|
For example, to define a function: <code>int m2()</code>, with highlights.
|-
|Link and name a website
|
|
<pre><nowiki><syntaxhighlight lang="cpp">
<tt><nowiki>[http://www.wikipedia.org Wikipedia]</nowiki></tt>
#include <iostream>
int m2 (int ax, char *p_ax) {
  std::cout <<"Hello World!";
  return 0;
}</syntaxhighlight></nowiki></pre>
|
|
<syntaxhighlight lang="cpp">
[http://www.wikipedia.org Wikipedia]
#include <iostream>
|-
int m2 (int ax, char *p_ax) {
|colspan="3" style="border-top:1px solid #cee0f2;"|
  std::cout <<"Hello World!";
  return 0;
}</syntaxhighlight>
|-
|-
|[[WP:STRIKE|Strike]] your [[WP:TALK|talk page]] comment
<div style="padding: 0.7em .5em; font-size:0.9em;">''to show your previous comment is outdated''</div>
|
|
<small>Small text</small>
<tt><nowiki><s>This topic isn't [[WP:N|notable]].</s></nowiki></tt>
|
|
<pre><nowiki>Use <small>small text</small> if needed.
<s>This topic isn't [[WP:N|notable]].</s>
 
|-
A span tag can set text font-size as
|colspan="3" style="border-top:1px solid #cee0f2;"|
being <span style="font-size: 87%">87%
|-
of prior size</span>, to match an
|Hide text somewhere for editors
image caption.</nowiki></pre>
<div style="padding: 0.7em .5em; font-size:0.9em;">''[[WP:CON|consensus]] is how things are decided''</div>
|
<tt><nowiki><!--This had consensus, discuss at talk page--></nowiki></tt>
|
|
Use <small>small text</small> if needed.
<!--This had consensus, discuss at talk page-->
 
|-
A span tag can set text font-size as
|colspan="3" style="border-top:1px solid #cee0f2;"|
being <span style="font-size: 87%">87%
of prior size</span>, to match an
image caption.
|-
|-
|[[Wikipedia:Picture tutorial|Show an image]]
<div style="padding: 0.7em .5em; font-size:0.9em;">''for uploading, see the [[Help:Introduction to uploading images|intro to uploading images]]
''</div>
{{Anchor|Thumbnail image}}
|
|
<big>Big text</big> (Obsolete)
<tt><nowiki>[[</nowiki></tt>File:Wiki.png<tt>|thumb|</tt>Caption<tt><nowiki>]]</nowiki></tt>
|
|
<pre><nowiki>
[[File:Wiki.png|thumb|Caption]]
Better not use <big>big text</big>,
|-
unless <small> it's <big>within</big>
|colspan="3" style="border-top:1px solid #cee0f2;"|
small</small> text.
|-
</nowiki></pre>
|[[Template:Citation needed]]
<div style="padding: 0.7em .5em; font-size:0.9em;">''one of many [[WP:TC|cleanup templates]]''</div>
|
|
Better not use <big>big text</big>,
<tt><nowiki>This statement is true.{{cn}}</nowiki></tt>
unless <small> it's <big>within</big>
|
small</small> text.
This statement is true.{{cn}}
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|Add a page to a [[Wikipedia:FAQ/Categories|category]]{{Anchor|Add a page to a category}}
|<tt><nowiki>[[Category:Category name]]</nowiki></tt><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>
|-<!--WORKS ONLY AT THE BEGINNING OF LINES-->
| colspan="3" style="background:#E6F2FF; border-top:2px #a3b1bf solid" |
<center>'''Works only at the beginning of lines''' &nbsp; &nbsp;
|-<!--COLUMN HEADINGS--> 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" | You type
| style="border-bottom:2px #a3b1bf solid" width="30%" | You get
|-
|[[Wikipedia:Redirect|Redirect to another page]]{{Anchor|Redirect to another page}}
<div style="padding: 0.7em .5em; font-size:0.9em;">''redirects must be placed at the start of the first line''</div>
|
|
You can include a '''non-breaking space''' (sometimes called '''non-printing character''') where you require two words to always appear together on the same line, such as ''Mr.&nbsp;Smith'' or ''400&nbsp;km/h'', using '''<code>&amp;nbsp;</code>''' in place of a regular space between the two "words" that need to behave as a single word (never be separated on different lines).
<tt><nowiki>#REDIRECT [[Target page]]</nowiki></tt>
|
[[Image:Redirect arrow without text.svg|30px|link=]] [[Target page]]
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Wikipedia:Redirect|Redirect to a section of another page]]
|
|
<pre>Mr.&amp;nbsp;Smith or 400&amp;nbsp;km/h</pre>
<tt><nowiki>#REDIRECT [[</nowiki></tt>Target page#anchorName<tt><nowiki>]]</nowiki></tt>
|
|
Mr.&nbsp;Smith or 400&nbsp;km/h
[[Image:Redirect arrow without text.svg|30px|link=]] [[Target page#anchorName]]
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|-
|[[Help:Section|Section headings]]{{Anchor|Section headings}}<br />
<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>
|
|
'''Extra spacing''' within text can best be achieved using the [[Template:Pad|pad]] template.
<tt><nowiki>==Level 2==</nowiki></tt><br />
<tt><nowiki>===Level 3===</nowiki></tt><br />
<tt><nowiki>====Level 4====</nowiki></tt><br />
<tt><nowiki>=====Level 5=====</nowiki></tt><br />
<tt><nowiki>======Level 6======</nowiki></tt><br /><br />
<span style="font-size:0.9em">''do not use''&nbsp; =Level 1=&nbsp; ''as it is for page titles''</span>
|
|
<pre><nowiki>Mary {{pad|4em}} had a little lamb.</nowiki></pre>
 
==Level 2==
===Level 3===
====Level 4====
=====Level 5=====
======Level 6======
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Help:List|Bulleted list]]{{Anchor|Bulleted list}}
|
|
Mary {{pad|4em}} had a little lamb.
<tt>* One</tt><br />
<tt>* Two</tt><br />
<tt>** Two point one</tt><br />
<tt>* Three</tt>
|
* One
* Two
** Two point one
* Three
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Help:List|Numbered list]]{{Anchor|Numbered list}}
|
|
'''Typewriter font''' (Obsolete)
<tt># One</tt><br />
 
<tt># Two</tt><br />
(Also works beyond the end of a paragraph.)
<tt>## Two point one</tt><br />
<tt># Three</tt>
|
# One
# Two
## Two point one
# Three
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|Indenting text
<div style="padding: 0.7em .5em; font-size:0.9em;">''this is used when replying on a [[Wikipedia:Tutorial (Talk pages)|talk page]], to make it easier to follow conversations. </div>
|
|
<pre><nowiki><tt>arrow      &amp;rarr;</tt>
<tt><nowiki>no indent (normal)</nowiki></tt><br />
<tt><nowiki>:first indent</nowiki></tt><br />
<tt><nowiki>::second indent</nowiki></tt><br />
<tt><nowiki>:::third indent</nowiki></tt><br />
<tt><nowiki>::::fourth indent</nowiki></tt><br />


<tt>''italics'', '''bold'''</tt>
<tt>[[wikilink]]
New paragraph </tt>started here.</nowiki></pre>
|
|
<tt>arrow      &rarr;</tt>
no indent (normal)<br />
:first indent
::second indent
:::third indent
::::fourth indent


<tt>''italics'', '''bold'''</tt>
|}
</div>


<tt>[[wikilink]]


New paragraph </tt>started here.
|}


==See also==
==See also==
Line 249: Line 267:
==External links==
==External links==
*[http://en.wikipedia.org/wiki/Wikipedia:Layout Wikipedia:Manual of Style/Layout]
*[http://en.wikipedia.org/wiki/Wikipedia:Layout Wikipedia:Manual of Style/Layout]
*http://en.wikipedia.org/wiki/Help:Wiki_markup
*http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet
[[Category:Help]]
[[Category:Help]]

Revision as of 13:02, 19 April 2014



Help Editing

This pages is intended to be a basic overview of editing pages on BoyWiki.

Page layout

The Body sections

'''Page layout'''


==References==

{{reflist}}


==See also==


==External links==


Works anywhere in the text        
Description You type You get
Italics, bold, and both

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

italics, bold, and both

Link to a section

[[Frog#Jumping]]
[[Frog#Jumping|the jumping of frogs]]

Frog#Jumping
the jumping of frogs

Red link
red links in articles help by showing desired redirects or notable pages

[[something missing]]

something missing

References and footnotes
sources in the article will appear where {{reflist}} is put, typically under a level 2 section heading (see below) towards the bottom of the page; text between {{}} is for a template

Hello,<ref>[http://www.loc.gov/about/ Library of Congress]</ref> World.<ref>http://www.w3.org/</ref>

References: {{reflist}}

Hello,[1] World.[2]

References:

SignatureTemplate:Anchor
sign your contributions when posting to a talk page

~~~~

do not sign in an article, only on talk pages

Username (talk) 01:15, 25 November 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 [[WP:N|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
for uploading, see the intro to uploading images

Template:Anchor

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

File:Wiki.png
Caption
Template:Citation needed
one of many cleanup templates

This statement is true.{{cn}}

This statement is true.Template:Cn

Add a page to a categoryTemplate:Anchor [[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 pageTemplate:Anchor
redirects must be placed at the start of the first line

#REDIRECT [[Target page]]

File:Redirect arrow without text.svg Target page

Redirect to a section of another page

#REDIRECT [[Target page#anchorName]]

File:Redirect arrow without text.svg Target page#anchorName

Section headingsTemplate:Anchor
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
Bulleted listTemplate:Anchor

* One
* Two
** Two point one
* Three

  • One
  • Two
    • Two point one
  • Three
Numbered listTemplate:Anchor

# 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
::::fourth indent

no indent (normal)

first indent
second indent
third indent
fourth indent


See also

External links