Difference between revisions of "Wiki Editing"

From PreparingYou
Jump to: navigation, search
(Created page with "==List of functions== (apart from the last two examples, these pieces of wikitext are created by typing ''abc'', selecting it and clicking the buttons on the toolbar) : {| cl...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
 +
<nowiki><span style="color:red">red writing</span> </nowiki>    <span style="color:red">red writing</span> shows as red writing
 +
 +
<nowiki><span style="color:#0f0">green writing</span></nowiki>    <span style="color:#0f0">green writing</span> shows as green writing
 +
 +
<nowiki><span style="color:#0000FF">blue writing</span></nowiki>    <span style="color:#0000FF">blue writing</span> shows as blue writing
 +
 
==List of functions==
 
==List of functions==
  
Line 31: Line 38:
 
|<code><nowiki>== abc ==</nowiki></code>
 
|<code><nowiki>== abc ==</nowiki></code>
 
|
 
|
 +
 +
== abc ==
 +
|-
 +
|[[Image:Image icon.png|Embedded image]]
 +
|Insert image
 +
|<code><nowiki>[[Image:abc.png]]</nowiki></code>
 +
|[[Image:abc.png|80px]]
 +
|-
 +
|[[Image:Media icon.png|Media file link]]
 +
|Insert media
 +
|<code><nowiki>[[Media:abc.ogg]]</nowiki></code>
 +
|[[Media:abc.ogg]]
 +
|-
 +
|[[Image:Math icon.png|Mathematical formula (LaTeX)]]
 +
|Mathematical formula
 +
|<code><nowiki><math>abc</math></nowiki></code>
 +
|<math>abc</math>
 +
|-
 +
|[[Image:Nowiki icon.png|Ignore wiki formatting]]
 +
|Ignore wiki formatting
 +
|<code><nowiki><nowiki>abc '''[[Bold text]]'''</nowiki></nowiki></code>
 +
|<nowiki>abc '''[[Bold text]]'''</nowiki>
 +
|-
 +
|[[Image:Signature icon.png|Your signature with timestamp]]
 +
|Sign talk comments (with time stamp)
 +
|<code><nowiki>~~~~</nowiki></code>
 +
| [[User:Gareth Aus|Gareth Aus]] 22:49, 11 February 2006 (UTC)
 +
|-
 +
|[[Image:H-line icon.png|Horizontal line]]
 +
|Horizontal line
 +
|<code><nowiki>----</nowiki></code>
 +
|
 +
----
 +
|}
 +
 +
* http://meta.wikimedia.org/wiki/Help:Advanced_editing
 +
 +
* http://meta.wikimedia.org/wiki/Help:Editing_FAQ
 +
 +
* http://meta.wikimedia.org/wiki/Help:Editing_FAQ
 +
 +
 +
=== Organizing your writing &mdash; sections, paragraphs, lists and lines ===
 +
 +
{| border="1" cellpadding="2" cellspacing="0"
 +
|-
 +
!What it looks like
 +
!What you type
 +
|-
 +
|
 +
; Sections and subsections
 +
Start sections with header lines
 +
 +
Note: Single equal signs give the highest level heading, like the page title; usually projects have the convention not to use them.
 +
 +
<!-- This code prevents confusion in the section editing feature -->
 +
<b><font style="font-size:120%">New section</font></b>
 +
 +
<b><font style="font-size:110%">Subsection</font></b>
 +
 +
<b><font style="font-size:100%">Sub-subsection</font></b>
 +
 +
* Start with a second-level heading (<tt><nowiki>==</nowiki></tt>); don't use first-level headings (=).
 +
* Don't skip levels (for example, second-level followed by fourth-level).
 +
* A '''table of contents''' will automatically be added to an article that has four or more sections.
 +
* If appropriate, place subsections in order. If listing countries, for example, place them in alphabetical order rather than, say, relative to population of  countries, or some haphazardous order.
 +
* If you want to keep headings out of the TOC you have to use HTML heading tags and close them without using a slash e.g. <nowiki><h4>heading too low level to be in the TOC of large page<h4></nowiki>.
 +
|<nowiki>
 +
 +
== New section ==
 +
 +
=== Subsection ===
 +
 +
==== Sub-subsection ====
 +
</nowiki>
 +
 +
|-
 +
|
 +
; Newline|Newline:
 +
 +
A single
 +
newline
 +
has no
 +
effect on the
 +
layout.
 +
 +
But an empty line
 +
starts a new paragraph,
 +
or ends a list or indented part.
 +
(<nowiki><p></nowiki> disables this paragraphing until <nowiki></p></nowiki> or the end  of the section)
 +
 +
(In Cologne blue, two newlines and a div tag give just one newline; in the order newline, div tag, newline, the result is two newlines.)
 +
 +
A semicolon at the start of a line is not rendered, but has the effect of rendering the newline. A colon in such a line is not rendered, but has the effect of starting a new, indented line, see definition list.
 +
 +
 +
|<pre><nowiki>
 +
 +
A single
 +
newline
 +
has no
 +
effect on the
 +
layout.
 +
 +
But an empty line
 +
starts a new paragraph.</nowiki></pre>
 +
|-
 +
|You can break lines <br/>
 +
without starting a new paragraph.
 +
 +
* Please use this sparingly.
 +
* Close markup between lines; do not start a link or ''italics'' or '''bold''' on one line and close it on the next.
 +
|<pre><nowiki>You can break lines <br/>
 +
without starting a new paragraph.</nowiki></pre>
 +
|-
 +
|
 +
* ''Unordered Lists'' are easy to do:
 +
** start every line with a star,
 +
*** more stars means deeper levels.
 +
* A newline
 +
* in a list 
 +
marks the end of the list.
 +
* Of course,
 +
* you can
 +
* start again.
 +
 +
|<pre><nowiki>* Unordered Lists are easy to do:
 +
** start every line with a star,
 +
*** more stars means deeper levels.
 +
* A newline
 +
* in a list 
 +
marks the end of the list.
 +
* Of course,
 +
* you can
 +
* start again.
 +
 +
</nowiki></pre>
 +
|-
 +
|
 +
# Numbered lists are also good
 +
## very organized
 +
## easy to follow
 +
# A newline
 +
# in a list 
 +
marks the end of the list.
 +
# New numbering starts
 +
# with 1.
 +
 +
|<pre><nowiki># Numbered lists are also good
 +
## very organized
 +
## easy to follow
 +
# A newline
 +
# in a list 
 +
marks the end of the list.
 +
# New numbering starts
 +
# with 1.
 +
</nowiki></pre>
 +
|-
 +
|
 +
* You can even do mixed lists
 +
*# and nest them
 +
*#* or break lines <br/>in lists
 +
|<pre><nowiki>* You can even do mixed lists
 +
*# and nest them
 +
*#* or break lines <br/>in lists</nowiki></pre>
 +
|-
 +
|'''Definition list'''
 +
; word : definition of the word
 +
; longer phrase
 +
: phrase defined
 +
|<pre><nowiki>; word : definition of the word
 +
; longer phrase
 +
: phrase defined</nowiki></pre>
 +
 +
* One item per line; a newline can appear before the colon, but using a space before the colon improves parsing.
 +
|-
 +
|
 +
; Indenting
 +
: A colon at the start of a line indents a paragraph.
 +
A manual newline starts a new paragraph.
 +
* This is often used for discussion.
 +
In the case of a semicolon and some text in front of the colon, the first colon starts a new line (indented as before) even though it is in the wikitext not at the start of the line, see definition list.
 +
|<pre><nowiki>: A colon indents a line or paragraph.
 +
A manual newline starts a new paragraph.
 +
</nowiki></pre>
 +
|-
 +
|
 +
When there is a need for separating a block of text
 +
<blockquote>
 +
the '''blockquote''' command will indent both margins when needed instead of the left margin only as the colon does.
 +
</blockquote>
 +
This is useful for (as the name says) inserting blocks of quoted (and cited) text.
 +
|
 +
<pre><nowiki>
 +
<blockquote>
 +
The '''blockquote''' command will indent
 +
both margins when needed instead of the
 +
left margin only as the colon does.
 +
</blockquote>
 +
</nowiki></pre>
 +
|-
 +
|<center>Centered text.</center>
 +
* Please note the US English spelling of "center".
 +
|<pre><nowiki><center>Centered text.</center></nowiki></pre>
 +
|-
 +
|A horizontal dividing line:
 +
this is above it...
 +
----
 +
...and this is below it.
 +
 +
If you don't use a section header, you don't get a TOC entry.
 +
|<pre><nowiki>A horizontal dividing line:
 +
this is above it...
 +
----
 +
...and this is below it.
 +
</nowiki></pre>
 +
|}
 +
 +
 +
* Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.
 +
 +
{{Template:Wiki-Nav}}

Latest revision as of 23:32, 9 February 2021

<span style="color:red">red writing</span> red writing shows as red writing

<span style="color:#0f0">green writing</span> green writing shows as green writing

<span style="color:#0000FF">blue writing</span> blue writing shows as blue writing

List of functions

(apart from the last two examples, these pieces of wikitext are created by typing abc, selecting it and clicking the buttons on the toolbar)

Icon Function What it shows when editing What it shows on the page
Bold text Bold or strong emphasis '''abc''' abc
Italic text Italic or emphasis ''abc'' abc
Internal link Internal link [[meta:Sandbox|abc]] abc
External link External link [abc.com]
Level 2 headline Section heading == abc ==

abc

Embedded image Insert image [[Image:abc.png]] 80px
Media file link Insert media [[Media:abc.ogg]] Media:abc.ogg
Mathematical formula (LaTeX) Mathematical formula <math>abc</math> <math>abc</math>
Ignore wiki formatting Ignore wiki formatting <nowiki>abc '''[[Bold text]]'''</nowiki> abc '''[[Bold text]]'''
Your signature with timestamp Sign talk comments (with time stamp) ~~~~ Gareth Aus 22:49, 11 February 2006 (UTC)
Horizontal line Horizontal line ----


Organizing your writing — sections, paragraphs, lists and lines

What it looks like What you type
Sections and subsections

Start sections with header lines

Note: Single equal signs give the highest level heading, like the page title; usually projects have the convention not to use them.

New section

Subsection

Sub-subsection

  • Start with a second-level heading (==); don't use first-level headings (=).
  • Don't skip levels (for example, second-level followed by fourth-level).
  • A table of contents will automatically be added to an article that has four or more sections.
  • If appropriate, place subsections in order. If listing countries, for example, place them in alphabetical order rather than, say, relative to population of countries, or some haphazardous order.
  • If you want to keep headings out of the TOC you have to use HTML heading tags and close them without using a slash e.g. <h4>heading too low level to be in the TOC of large page<h4>.
== New section == === Subsection === ==== Sub-subsection ====
Newline|Newline

A single newline has no effect on the layout.

But an empty line starts a new paragraph, or ends a list or indented part. (<p> disables this paragraphing until </p> or the end of the section)

(In Cologne blue, two newlines and a div tag give just one newline; in the order newline, div tag, newline, the result is two newlines.)

A semicolon at the start of a line is not rendered, but has the effect of rendering the newline. A colon in such a line is not rendered, but has the effect of starting a new, indented line, see definition list.



A single
newline
has no
effect on the
layout.

But an empty line
starts a new paragraph.
You can break lines

without starting a new paragraph.

  • Please use this sparingly.
  • Close markup between lines; do not start a link or italics or bold on one line and close it on the next.
You can break lines <br/>
without starting a new paragraph.
  • Unordered Lists are easy to do:
    • start every line with a star,
      • more stars means deeper levels.
  • A newline
  • in a list

marks the end of the list.

  • Of course,
  • you can
  • start again.
* Unordered Lists are easy to do:
** start every line with a star,
*** more stars means deeper levels.
* A newline
* in a list  
marks the end of the list.
* Of course,
* you can
* start again.

  1. Numbered lists are also good
    1. very organized
    2. easy to follow
  2. A newline
  3. in a list

marks the end of the list.

  1. New numbering starts
  2. with 1.
# Numbered lists are also good
## very organized
## easy to follow
# A newline
# in a list  
marks the end of the list.
# New numbering starts
# with 1.
  • You can even do mixed lists
    1. and nest them
      • or break lines
        in lists
* You can even do mixed lists
*# and nest them
*#* or break lines <br/>in lists
Definition list
word 
definition of the word
longer phrase
phrase defined
; word : definition of the word
; longer phrase 
: phrase defined
  • One item per line; a newline can appear before the colon, but using a space before the colon improves parsing.
Indenting
A colon at the start of a line indents a paragraph.

A manual newline starts a new paragraph.

  • This is often used for discussion.

In the case of a semicolon and some text in front of the colon, the first colon starts a new line (indented as before) even though it is in the wikitext not at the start of the line, see definition list.

: A colon indents a line or paragraph.
A manual newline starts a new paragraph.

When there is a need for separating a block of text

the blockquote command will indent both margins when needed instead of the left margin only as the colon does.

This is useful for (as the name says) inserting blocks of quoted (and cited) text.

<blockquote>
The '''blockquote''' command will indent 
both margins when needed instead of the 
left margin only as the colon does.
</blockquote>
Centered text.
  • Please note the US English spelling of "center".
<center>Centered text.</center>
A horizontal dividing line:

this is above it...


...and this is below it.

If you don't use a section header, you don't get a TOC entry.

A horizontal dividing line: 
this is above it...
----
...and this is below it.


  • Consult the User's Guide for information on using the wiki software.

Wiki Ways | Get Started | Help Editing | functions | Wiki Wizard Editor forum | Network