Help:Editing

From PsychWiki - A Collaborative Psychology Wiki

Revision as of 05:01, 28 April 2012 by Doug (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Start by reading "Basic Steps" and then read further if you want more detailed information.

Contents

Basic Steps

Editing pages is simple and easy.
The whole purpose behind wikis is to make it easy for anyone, even you, to add content and edit pages.

► The entire process takes three steps:

  • click on the "edit" tab to take you to the edit page.
  • enter your information by typing it into the open page
  • use Show preview to see what the page looks like, then Save page.


► We have short-cut buttons for you:

  • at the top of the edit page you will see buttons to bold text, italicize text, create an internal link to a page within PsychWiki, create an external link to a page outside PsychWiki, create a header, create text that ignores the wiki formatting, leave your signature, or create a horizontal line. See Edit Toolbar below for more information.


We have also posted below all the basic formatting tools you will need (such as how to spell-check, create sections and links, use bullets and lists, etc) so play around with the different options and see what you can create. And for you more adventurous types who want to go the extra mile in creating distinctive and unique pages, there are links posted at the bottom of each section with more detailed information.





Spell-Check





Edit Toolbar

The "edit toolbar" functions partly as a typing aid and partly as a reminder of the available functions. All the functions are also available simply by typing the code directly into the edit box (such as link). (how to type the code is explained in subsequent sections, and below we explain the "edit toolbar")

Icon Function What it shows when editing What it shows on the page
Bold icon.png Bold or strong emphasis '''abc''' abc
Italic icon.png Italic or emphasis ''abc'' abc
Internal link icon.png Internal link [[Mediation]] Mediation
External link icon.png External link [http://www.google.com] [1]
Headline icon.png Section heading == abc == abc
Image icon.png Insert image [[Image:Tools.jpg]] Tools.jpg
Media icon.png Insert media [[Media:abc.ogg]] Media:abc.ogg
Math icon.png Mathematical formula <math>abc</math> <math>abc</math>
Nowiki icon.png Ignore wiki formatting <nowiki>abc '''[[Bold text]]'''</nowiki> abc '''[[Bold text]]'''
Signature icon.png Sign talk comments (with time stamp) --~~~~ --Gareth Aus 22:49, 11 February 2006 (UTC)
H-line icon.png Horizontal line ----





Basic Text Formatting

What it looks like What you type
bold text example
'''example'''
italicize text example
''example''
bold AND italicize text example
'''''example'''''
underline text example
<u>example</u>
  1. Some helpful information:
    • The Edit Toolbar can help you bold and italicize, but not underline.
  2. For more detailed information:





Using HTML

What it looks like What you type
use HTML tags Put text in a typewriter font.

The same font is generally used for computer code.

Strike out or underline text, or write it in small caps.

Superscripts and subscripts: x2, x2

Invisible comments that only appear while editing the page. Comments should usually go on the talk page, though.

Put text in a <tt>typewriter font</tt>.

The same font is generally used for
<code>computer code</code>.

<strike>Strike out</strike> or
<u>underline</u> text, or write it
<span style="font-variant:small-caps">
in small caps</span>.

Superscripts and subscripts:
x<sup>2</sup>, x<sub>2</sub>

Invisible comments only appear while editing the page.
<!-- Note to editors: blah blah blah. -->
Comments should usually go on the talk page, though.
  1. Some helpful information:
    • If you are not adept at HTML, don't worry, the wiki software is designed to be used without HTML, so you don't need to learn any programming code.
  2. For more detailed information:
    • see here for using HTML.
    • see here for HTML elements permitted with wikitext.





Signing your entries

What it looks like What you type
sign your entries You can "sign" your comments on talk pages:
Three tildes gives your user name: Stenstro
Four tildes give your user name plus date/time: Stenstro 21:08, 2 March 2006 (EST)
Five tildes gives the date/time alone: 21:08, 2 March 2006 (EST)
You can "sign" your comments on talk pages:
: Three tildes gives your user name: ~~~
: Four tildes give your user name plus date/time: ~~~~
: Five tildes gives the date/time alone: ~~~~~





Creating Sections

What it looks like What you type
section headings

Section headings

Subsection

A smaller subsection

==Section headings==
===Subsection===
====A smaller subsection====
dividing line You can make horizontal dividing lines to separate text.

But you should usually use sections instead,so that they go in the table of contents.

You can make horizontal dividing lines to separate text.
----
But you should usually use sections instead,
so that they go in the table of contents.
  1. Some helpful information:
    • Please do not use only one equals sign on a side (=text here=); this causes a title the size of the page name, which is taken care of automatically.
  2. For more detailed information:
    • see here about creating sections.





Using bullets and lists

What it looks like What you type
Bulleted lists
  • Unordered lists are easy.
    • Start every line with a star.
      • More stars indicate a deeper level.
    • Or go back a level.
* Unordered lists are easy.
** Start every line with a star.
*** More stars indicate a deeper level.
** Or go back a level.
Numbered lists
  1. Numbered lists are also good:
    1. Very organized
    2. Easy to follow
  2. And can also go back a level
# Numbered lists are also good:
## Very organized
### Easy to follow
# And can also go back a level
indentation

If you want to indent:

One colon indents a line.
Two colons indent even farther.
And can also go back a level
If you want to indent:
: One colon indents a line.
:: Two colons indent even farther.
: And can also go back a level
definition lists
Definition lists
item 
definition
semicolon plus term
colon plus definition
; Definition lists
; item : definition
; semicolon plus term
: colon plus definition
create mixted lists
  • Or create mixed lists
    1. and nest them
      • like this
        definitions
        work:
        apple
        banana
        fruits
* Or create mixed lists
*# and nest them
*#* like this
*#*; definitions
*#*: work:
*#*; apple
*#*; banana
*#*: fruits
  1. Some helpful information:
    • A blank line separating an entry will end the list/bulletpoints and rest the counter.
    • Notice that to create mixed lists you need to start each new line with the term from the superordinate grouping -- i.e., notice that with the example above the bulletpoint tag "*" started each subsequent line, and then the numbered tag "#" was then used for each subsequent line, and so forth.
  2. For more detailed information:
    • see here for more information on "lists".





Using Links

What it looks like What you type
internal link Two brackets on each side creates a link: Main Page


Or, you can give it a title by using the pipe character "|" between the page name and the title you want displayed: Go to the Main Page


And for linking to a specific section within the page, use the pound character "#", such as Using Links

Two brackets on each side creates a link: 
[[Main Page]]


Or, you can give it a title by using the 
pipe character "|" between the page name 
and the title you want displayed: 
[[Main Page | Go to the Main Page]]


And for linking to a specific section within 
the page, use the pound character "#", 
such as [[Help:Editing#Using Links | Using Links]]
external link You can type the URL: http://wikipedia.org/

Or use one bracket: http://wikipedia.org/

You can give it a title: Wikipedia

Or leave the title blank: [2]

You can just type the URL:
http://wikipedia.org/

Or use one bracket on each side:
[http://wikipedia.org/]

You can give it a title:
[http://wikipedia.org/ Wikipedia]

Or leave the title blank:
[http://wikipedia.org/]
  1. Some helpful information:
    • You can distinguish internal links from external links by the "arrow icon" at the end of external links.
    • This arrow icon can be suppressed with <span class="plainlinks">, such that:
    this → ((<span class="plainlinks">http://www.google.com</span>))
    creates this → ((http://www.google.com))
    instead of this ((http://www.google.com))
    • The pipe character "|" is only used for linking to sites within PsychWiki. As you can see above, for external linking you only need to put a space between the web address and the title you want displayed.
    • Moving your cursor over an external link will show the page name or web address.
  2. For more detailed information:
    • see here for general information about linking.
    • see here about URLs in external links.
    • see here about piped links.






Creating Tables

Although HTML table syntax also works, special wikicode can be used as a shortcut to create a table. Below you can see both methods and how they are used to create tables:

 XHTML HTML & Wiki-td Wiki-pipe
Table <table></table> <table></table>
{| params 
|}
Caption <caption></caption> <caption></caption>
|+ caption
Row <tr></tr> <tr>
|- params 
Data cell

<td>cell1</td>
<td>cell2</td>

<td>cell1
<td>cell2

| cell1
| cell2
Data cell <td>cell1</td> <td>cell2</td> <td>cell3</td> <td>cell1 <td>cell2 <td>cell3
|cell1||cell2||cell3
Header cell <th></th> <th>
! heading
Sample table
1 2
3 4
<table>
   <tr>
      <td>1</td>
      <td>2</td>
   </tr> 
   <tr>
      <td>3</td> 
      <td>4</td> 
   </tr>
</table>
<table>
   <tr>
      <td> 1 <td> 2
   <tr>
      <td> 3 <td> 4
</table>
{| 
| 1 || 2
|- 
| 3 || 4
|}
Sample table
1 2
3 4
5 6
<table>
   <tr>
      <td>1</td>
      <td>2</td>
   </tr> 
   <tr>
      <td>3</td>
      <td>4</td>
   </tr>
   <tr>
      <td>5</td>
      <td>6</td>
   </tr>
</table>
<table>
   <tr>
      <td> 1 <td> 2
   <tr>
      <td> 3 <td> 4
   <tr>
      <td> 5 <td> 6
</table>
{| 
| 1 || 2 
|- 
| 3 || 4 
|- 
| 5 || 6 
|}
Pros
  • Can be previewed/debugged with any XHTML editor
  • Can be formatted for easier reading
  • Well-known
  • Can be previewed/debugged with any HTML editor
  • Can be formatted for easier reading
  • Well-known
  • Takes less space than XHTML
  • Easy to write
  • Easy to read
  • Takes little space
Cons
  • Tedious
  • Takes a lot of space
  • Difficult to read quickly
  • Should not be used
  • Confusing, especially for people with little HTML experience
  • Poorly formed
  • Poorly delimited
  • Generally odd looking
  • May not have browser support in future
  • Unfamiliar syntax
  • Rigid structure
  • Cannot be indented
  • Text (as in HTML tags) may be easier for some people to read than series of pipes, plus signs, exclamation marks, etc.
  • Is nothing more than a shortcut for HTML-style tags. Not easily understood by those unfamiliar with HTML table concepts
 XHTML HTML & Wiki-td Wiki-pipe
  1. Some helpful information:
    • You can nest tables within tables.
    • You can set parameters by either a percentage "width=50%" or have it be fixed "height=250".
  2. For more detailed information:
    • see here for how to create tables.
    • see here to learn about CSS (Cascading style sheets).





Uploading Files and Images

Here are the basic steps:

  1. upload the document using the "Upload file" link which is listed in the Toolbox box in the left-hand side of this webpage under the Search function,
  2. go to the page where you want to link the document,
  3. click the "edit" tab,
  4. insert a link to the document.
    If you are uploading a picture, then the format is [[Image:filename.extension]] . For example, if you have a picture that you uploaded as "face.gif", then the link is [[Image:face.gif]].
    If you are uploading a document, then the format is [[Media:filename.extension]] . For example, if you have a Word document that you uploaded as "ResearchPaper.doc", then the link is [[Media:ResearchPaper.doc]]. If someone clicks on that link, they will be able to download the document.

For more detailed information see here.





Table of Contents

Word Explanation
__NOTOC__ Hides ToC on the current page.
__FORCETOC__ Forces the table of contents to appear.
__TOC__ Places a ToC here (overriding any __NOTOC__).
  1. Some helpful information:
    • For each page with more than three headings, a table of contents (TOC) is automatically generated from the section headings.
    • Typing __NOTOC__ will disable the normal Table of Contents.
    • Typing __FORCETOC__ will add the TOC even if the page has fewer than four headings. With __FORCETOC__ the TOC is put before the first section header.
    • Typing __TOC__ will add the TOC even if the page has fewer than four headings. With __TOC__, it is put at the position of this code. This allows any positioning, e.g. on the right, and in a table cell, and it also allows multiple occurrence. Thus there may be some introductory text before the TOC, known as the "lead". Although usually a header after the TOC is preferable, __TOC__ can be used to avoid being forced to insert a meaningless header just to position the TOC correctly, i.e., not too low.





Google Scholar Function






Footnotes

What it looks like What you type
footnote There are many ways in which mediators and moderators differ[1]
There are many ways in which mediators and 
moderators differ <ref>Baron & Kenny (1986). The 
Moderator-Mediator variable distinction in social 
psychological research. Journal of Personality and 
Social Psychology, 51, 1173-1182.</ref>
bottom of the page
  1. Baron & Kenny (1986). The Moderator-Mediator variable distinction in social psychological research. Journal of Personality and Social Psychology, 51, 1173-1182.
<references/>







◄ Back to Help main page

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox