NSWiki:Page editing

From NSwiki, the NationStates encyclopedia.
Revision as of 10:03, 6 October 2007 by Ember Nickel (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Community Portal


NSwiki is a wiki, meaning anyone can edit any unprotected article and the changes are viewable immediately.

It is very easy to edit a page. Click on the Edit tab at the top of the article. You can also discuss a page on its "talk page" -- simply click the Discuss tab, and then on the new page, click the Edit tab.

Then start typing in the edit box. It is helpful if you write a short description in the edit summary box about what you changed. When finished, it is preferred if you first preview your change (click the Show preview button), and once it is satisfactory, commit the change by clicking the Save page button.

To do more advanced edits, you will need to know Wiki markup. The following article attempts to describe the most important and most commonly encountered markup, but to get a complete description, see Wikipedia:How to edit a page.

Other resources

General tips

  • Use a neutral point of view (don't advocate a particular opinion, or use the wiki to advertise)
  • Where appropriate, cite your sources
  • For longer edits, use a text editor to edit and spell check, then copy and paste back to the wiki and preview before committing the change
  • Use the What links here link to make sure all articles linking to your page have in mind the content you provided
  • Search the wiki to see if there is similar content in other articles already

The wiki markup

To practice editing without fear of harming any particular page, use the sandbox. Again, for a comprehensive list of the markup and its effects, see Wikipedia:How to edit a page.

Sections, paragraphs, lists and lines

What it looks like What you type

New section


Subsection

Sub-subsection

* Start with a second-level heading (==); do not use first-level headings (=).

  • Do not skip levels (e.g., second-level followed by fourth-level).
==New section==

===Subsection===

====Sub-subsection====

A single newline generally has no effect on the layout. These can be used to separate sentences within a paragraph. Some editors find that this aids editing and improves the diff function (used internally to compare different versions of a page).

But an empty line starts a new paragraph.

  • When used in a list, a newline does affect the layout (see below).
A single [[newline]]
generally has no effect on the layout. 
These can be used to separate
sentences within a paragraph.
Some editors find that this aids editing
and improves the ''diff'' function
(used internally to compare
different versions of a page).

But an empty line
starts a new paragraph.

You can break lines
without starting a new paragraph.

  • Please use this sparingly.
You can break lines<br>
without starting a new paragraph.
  • 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 a list item.

  • An empty line starts a new list.
* 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 a list item.

* An empty line starts a new list.
  1. Numbered lists are also good
    1. very organized
    2. easy to follow
# Numbered lists are also good
## very organized
## easy to follow
  • You can even do mixed lists
    1. and nest them
      • like this
* You can even do mixed lists
*# and nest them
*#* like this
Definition list 
list of definitions
item 
the item's definition
another item
the other item's definition
  • One item per line; a newline can appear before the colon, but using a space before the colon improves parsing.
; Definition list : list of definitions
; item : the item's definition
; another item
: the other item's definition
A colon indents a line or paragraph.

A manual newline starts a new paragraph.

  • This is primarily for displayed material, but is also used for discussion on Talk pages.
: A colon indents a line or paragraph.
A manual newline starts a new paragraph.
IF a line starts with a space THEN
it will be formatted exactly
as typed;
in a fixed-width font;
lines won't wrap;
ENDIF
this is useful for:
* pasting preformatted text;
* algorithm descriptions;
* program source code;
* ASCII art;
* chemical structures;
* league tables for sports roleplaying.

* WARNING: If you make it wide, you force the whole page to be wide and hence less readable, especially for people who use lower resolutions. Never start ordinary lines with spaces.

 IF a line starts with a space THEN
 it will be formatted exactly
 as typed;
 in a fixed-width font;
 lines won't wrap;
 ENDIF
 this is useful for:
 * pasting preformatted text;
 * algorithm descriptions;
 * program source code;
 * [[Wikipedia:ASCII art|]];
 * chemical structures;
 * league tables for [[sports roleplaying]].
Centered text.
<center>Centered text.</center>

A horizontal dividing line: this is above it


and this is below it.

  • Mainly useful for separating threads on Talk pages.
  • Also used to disambiguate within an article without creating a separate page.
A [[horizontal dividing line]]:
this is above it
----
and this is below it.

Links, URLs, and images

  • Wrap an article's name in brackets [[like this]] to create a link
  • To give the link a new name use a pipe, [[like this|do this]]
  • Use a pipe to automatically hide stuff in parentheses: [[Ban of Death Penalty (failed)|]]Ban of Death Penalty
  • Use a pipe to automatically hide namespace: [[NSwiki:Village pump|]]Village pump
  • When adding a comment to a talk page, you should sign.
  • Three tildes (~~~) will give your username, E.g. Goobergunchia
  • Four tildes (~~~~) will give your username and date/time, E.g. Goobergunchia 17:19, 6 Sep 2004 (GMT)
  • To redirect an article to another page, do this #REDIRECT [[Existing Page Name]]
  • To link to Wikipedia, use this syntax: [[Wikipedia:Article Name]]
  • To link to Wikipedia and add your own text, use this syntax: [[Wikipedia:Article Name|Name]]
  • To link to Wikipedia and use the Wikipedia article name, use this syntax: [[Wikipedia:Article Name|]]
  • To create an external link, use this syntax: [http://somepage.com alternative text]
  • To add an image, paste the URL of the picture directly where you want it, with no brackets. The system will recognize it and display it.

Character formatting

What it looks like What you type

Emphasize, strongly, very strongly.

  • These are double and triple apostrophes (single-quote marks), not double-quote marks.
''Emphasize'', '''strongly''', '''''very strongly'''''.

A typewriter font for monospace text or for computer code: int main()

  • For semantic reasons, using <code> where applicable is preferable to using <tt>.
A typewriter font for <tt>monospace text</tt>
or for computer code: <code>int main()</code>

You can use small text for captions.

You can use <small>small text</small> for captions.

You can strike out deleted material and underline new material.

You can also mark deleted material and inserted material using logical markup rather than visual markup.

You can <s>strike out deleted material</s>
and <u>underline new material</u>.

You can also mark <del>deleted material</del> and
<ins>inserted material</ins> using logical markup
rather than visual markup.

Commercial symbols:
™ © ® ¢ € ¥ £ ¤

&trade; &copy; &reg; &cent; &euro; &yen; 
&pound; &curren;

Suppressing interpretation of markup: Link → (''to'') the [[Wikipedia FAQ]]

<nowiki>Link &rarr; (''to'') 
the [[Wikipedia FAQ]]</nowiki>

Commenting page source:
not shown when viewing page

  • Used to leave comments in a page for future editors.
  • Note that most comments should go on the appropriate Talk page.
<!-- comment here -->

Categories

  • Add new articles to appropriate Categories by adding a [[Category:CategoryName]] link on the page.
  • Articles which use Info boxes typically have a Category already added via the template.

See also