Difference between revisions of "NSWiki:Page editing"

From NSwiki, the NationStates encyclopedia.
Jump to: navigation, search
(Links, URLs, and images)
(Sections, paragraphs, lists and lines)
Line 19: Line 19:
 
==The wiki markup==
 
==The wiki markup==
 
To practice editing without fear of harming any particular page, use the [[NSwiki:Sandbox|sandbox]].  Again, for a comprehensive list of the markup and its effects, see [[Wikipedia:Wikipedia:How_to_edit_a_page#The_wiki_markup|Wikipedia:How to edit a page]].
 
To practice editing without fear of harming any particular page, use the [[NSwiki:Sandbox|sandbox]].  Again, for a comprehensive list of the markup and its effects, see [[Wikipedia:Wikipedia:How_to_edit_a_page#The_wiki_markup|Wikipedia:How to edit a page]].
 
=== Sections, paragraphs, lists and lines ===
 
{| border="1" cellpadding="2" cellspacing="0"
 
|-
 
! What it looks like
 
! What you type
 
|- valign="top"
 
|
 
'''<font style="font-size:130%">New section</font>'''
 
----
 
 
'''<font style="font-size:115%">Subsection</font>'''
 
 
'''<font style="font-size:100%">Sub-subsection</font>'''
 
 
<small>* Start with a second-level heading (<tt><nowiki>==</nowiki></tt>); do not use first-level headings (=).
 
* Do not skip levels (e.g., second-level followed by fourth-level).</small>
 
 
|
 
<pre><nowiki>
 
==New section==
 
 
===Subsection===
 
 
====Sub-subsection====
 
</nowiki></pre>
 
|- valign="top"
 
|
 
A single [[Wikipedia:newline|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 ([[#lists|see below]]).
 
|
 
<pre><nowiki>
 
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.
 
</nowiki></pre>
 
|- valign="top"
 
|
 
You can break lines<br>
 
without starting a new paragraph.
 
* Please use this sparingly.
 
|
 
<pre><nowiki>
 
You can break lines<br>
 
without starting a new paragraph.
 
</nowiki></pre>
 
|- id="lists" valign="top"
 
|
 
* 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.
 
|
 
<pre><nowiki>
 
* 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.
 
</nowiki></pre>
 
|- valign="top"
 
|
 
# Numbered lists are also good
 
## very organized
 
## easy to follow
 
|
 
<pre><nowiki>
 
# Numbered lists are also good
 
## very organized
 
## easy to follow
 
</nowiki></pre>
 
|- valign="top"
 
|
 
* You can even do mixed lists
 
*# and nest them
 
*#* like this
 
|
 
<pre><nowiki>
 
* You can even do mixed lists
 
*# and nest them
 
*#* like this
 
</nowiki></pre>
 
|- valign="top"
 
|
 
; 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.
 
|
 
<pre><nowiki>
 
; Definition list : list of definitions
 
; item : the item's definition
 
; another item
 
: the other item's definition
 
</nowiki></pre>
 
|- valign="top"
 
|
 
: 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 [[Wikipedia:Talk page|Talk page]]s.
 
|
 
<pre><nowiki>
 
: A colon indents a line or paragraph.
 
A manual newline starts a new paragraph.
 
</nowiki></pre>
 
|- valign=top
 
|
 
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|ASCII art]];
 
* chemical structures;
 
 
<small>* '''WARNING:''' If you make it wide, you [[Wikipedia:page widening|force the whole page to be wide]] and hence less readable, especially for people who use lower resolutions. Never start ordinary lines with spaces.</small>
 
|
 
<pre><nowiki>
 
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;
 
</nowiki></pre>
 
|- valign="top"
 
|
 
<center>Centered text.</center>
 
|
 
<pre><nowiki>
 
<center>Centered text.</center>
 
</nowiki></pre>
 
|- valign="top"
 
|
 
A [[Wikipedia:horizontal dividing line|horizontal dividing line]]:
 
this is above it
 
----
 
and this is below it.
 
 
* Mainly useful for separating threads on Talk pages.
 
* Also used to [[Wikipedia:Disambiguation|disambiguate]] within an article without creating a separate page.
 
|
 
<pre><nowiki>
 
A [[horizontal dividing line]]:
 
this is above it
 
----
 
and this is below it.
 
</nowiki></pre>
 
|}
 
  
  

Revision as of 14:07, 2 June 2005

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.


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.


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