Difference between revisions of "Help:Editing"

From Grand Theft Wiki
Jump to: navigation, search
(minor HTML fixture)
(Updated & formatted into tables)
 
Line 1: Line 1:
 
{{help|[[EDIT]]}}{{toc}}
 
{{help|[[EDIT]]}}{{toc}}
  
This article explains how to format articles on Grand Theft Wiki. When you edit a page, you can use WikiMarkup or HTML to format.
+
This article explains how to format articles on Grand Theft Wiki. When you edit a page, we use WikiMarkup for formatting. This is generally identical to the code used on Wikipedia.
  
To understand how to edit articles and for more information on editing, please read [[Help:How To]]
+
'''For a basic understanding of wikis and editing, please read [[Help:Basics]]'''
  
  
 
== Links ==
 
== Links ==
<pre>[[Policy]]</pre>
+
{| class="wikitable"
*[[Policy]] (A link to the page called Policy)
+
!Code
<pre>[[Policy|Grand Theft Wiki Policy]]</pre>
+
!Result
*[[Policy|Grand Theft Wiki Policy]] (A link to the page called Policy with the text "Grand Theft Wiki Policy")
+
!Description
<pre>[[User:Xenon]]</pre>
+
|-
*[[User:Xenon]] (A link to the page of the user called Xenon)
+
|<tt><nowiki>[[Policy]]</nowiki></tt>
<pre>[http://www.bbc.co.uk BBC Website]</pre>
+
|[[Policy]]
*[http://www.bbc.co.uk BBC Website] (A link to the website bbc.co.uk with the text "BBC Website")
+
|A link to the page called "Policy"
 +
|-
 +
|<tt><nowiki>[[Policy|Grand Theft Wiki Policy]]</nowiki></tt>
 +
|[[Policy|Grand Theft Wiki Policy]]
 +
|A link to the page called "Policy" but with the link showing the text "Grand Theft Wiki Policy"
 +
|-
 +
|<tt><nowiki>[[User:Chris]]</nowiki></tt>
 +
|[[User:Chris]]
 +
|A link to the page of the user called "Chris"
 +
|-
 +
|<tt><nowiki>[[wp:GTA | Read on Wikipedia]]</nowiki></tt>
 +
|[[wp:GTA | Read on Wikipedia]]
 +
|A link to the page "GTA" on Wikipedia (called an 'interwiki link'), with the text "Read on Wikipedia"
 +
|-
 +
|<tt><nowiki>[http://www.bbc.co.uk BBC Website]</nowiki></tt>
 +
|[http://www.bbc.co.uk BBC Website]
 +
|An external link to the website bbc.co.uk with the text "BBC Website"
 +
|}
  
  
 
== Text Formatting ==
 
== Text Formatting ==
  
<pre>''text''</pre>
+
{| class="wikitable"
*''text'' - Italics (two apostrophes on each side}
+
!Code
<pre>'''text'''</pre>
+
!Result
*'''text''' - Bold (three apostrophes on each side}
+
!Description
<pre><u>text</u></pre>
+
|-
*<u>text</u> (underline)
+
|<tt><nowiki>''text''</nowiki></tt>
<pre><s>text</s></pre>
+
|''text''
*<s>text</s> - (Rule Out)
+
|Italics (two apostrophes on each side}
<pre>~~~</pre>
+
|-
*[[User:Xenon|Xenon]]<sup>[[User talk:Xenon|talk]]</sup> (Your name)
+
|<tt><nowiki>'''text'''</nowiki></tt>
<pre>~~~~</pre>
+
|'''text'''
*[[User:Xenon|Xenon]]<sup>[[User talk:Xenon|talk]]</sup> 17:08, 28 July 2006 (BST) (your name and the date)
+
|Bold (three apostrophes on each side}
<pre><tt>text</tt></pre>
+
|-
*<tt>text</tt> (typewriter font for code)
+
|<tt><nowiki><u>text</u></nowiki></tt>
<pre>X<sup>2</sup>, H<sub>2</sub>O</pre>
+
|<u>text</u>
*X<sup>2</sup>, H<sub>2</sub>O (superscript and subscript)
+
|underline)
<pre><nowiki><nowiki>'''text'''</nowiki></nowiki></pre>
+
|-
*Does not format the text into '''text'''
+
|<tt><nowiki><s>text</s></nowiki></tt>
 +
|<s>text</s>
 +
|Rule Out)
 +
|-
 +
|<tt><nowiki>~~~</nowiki></tt>
 +
|[[User:Xenon|Xenon]]<sup>[[User talk:Xenon|talk]]</sup>
 +
|Partial signature (Your name)
 +
|-
 +
|<tt><nowiki>~~~~</nowiki></tt>
 +
|[[User:Xenon|Xenon]]<sup>[[User talk:Xenon|talk]]</sup> 17:08, 28 July 2006 (BST)
 +
|Full signature (your name and the date)
 +
|-
 +
|<tt><nowiki>~~~~~</nowiki></tt>
 +
|17:08, 28 July 2006 (BST) - 17:49, 25 January 2012 (UTC)
 +
|Timestamp (shows date and timezone)
 +
|-
 +
|<tt><nowiki>X<sup>2</sup></nowiki><br><nowiki>H<sub>2</sub>O</nowiki></tt>
 +
|X<sup>2</sup>, H<sub>2</sub>O
 +
|superscript and subscript)
 +
|-
 +
|<tt><nowiki><nowiki>'''text'''</nowiki></nowiki></tt>
 +
|<nowiki>'''text'''</nowiki>
 +
|Nowiki - does not process the code between the tags (just shows the raw code)
 +
|-
 +
|<tt><nowiki><tt>text</tt></nowiki></tt>
 +
|<tt>Text</tt>
 +
|Uses typewriter (monospaced) font (also use nowiki inside this if showing wiki code)
 +
|-
 +
|<tt><nowiki><code>text</code></nowiki></tt>
 +
|<code>Text</code>
 +
|Shows code inside a code box (also use nowiki inside thisif showing wiki code)
 +
|-
 +
|<tt><nowiki> ''Unformatted text''</nowiki></tt>
 +
|
 
  ''Unformatted Text''
 
  ''Unformatted Text''
Putting a blank space at the start of a line stops its contents being formatted.
+
|Putting a blank space at the start of a line stops its contents being formatted.
*Mathematical Formulae:
+
|}
<pre><math>\sum_{n=0}^\infty \frac{x^n}{n!}</math></pre>
+
<math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
+
  
 
== Headings ==
 
== Headings ==
Line 48: Line 96:
 
<pre>== heading ==</pre>
 
<pre>== heading ==</pre>
 
*A <nowiki><h2></nowiki> heading, like "Headings" (above)
 
*A <nowiki><h2></nowiki> heading, like "Headings" (above)
 +
 +
=== Third Level ===
 
<pre>=== heading ===</pre>
 
<pre>=== heading ===</pre>
 
*A <nowiki><h3></nowiki> heading, like "Third Level" (below)
 
*A <nowiki><h3></nowiki> heading, like "Third Level" (below)
=== Third Level ===
+
 
 +
==== Fourth Level ====
 
<pre>==== heading ====</pre>
 
<pre>==== heading ====</pre>
 
*A <nowiki><h4></nowiki> heading, like "Fourth Level" (below)
 
*A <nowiki><h4></nowiki> heading, like "Fourth Level" (below)
==== Fourth Level ====
+
 
 
Please do not use <nowiki>=Heading=</nowiki>, because that creates a first-level heading that should only be used on page titles, which are implemented automatically.
 
Please do not use <nowiki>=Heading=</nowiki>, because that creates a first-level heading that should only be used on page titles, which are implemented automatically.
  
Line 98: Line 149:
  
  
== [[Categories]] ==
+
== Categories ==
 +
{{main|Help:Categories}}
  
 
<pre>[[Category:Help]]</pre>
 
<pre>[[Category:Help]]</pre>
Line 106: Line 158:
  
  
== [[Templates]] ==
+
==Templates==
 +
{{main|Help:Templates}}
 +
 
 +
A template is a piece of reusable code, that can be used in many articles without having to copy or re-type the code. They can also provide some advanced functions to save a lot of time and effort.
 +
 
 +
<pre>{{help}}</pre>
 +
This will show whatever is in the {{template|help}} template - which is the big help banner at the top of this page. This means you don't have to copy the whole code fo
 +
 
 +
 
 +
<pre>{{info | This is some text}}</pre>
 +
 
 +
This will show the {{template|info}} template, providing "This is some text" as the only input ("parameter") for that template:
 +
 
 +
{{info | This is some text}}
 +
 
 +
This particular template is built to just show that input (as seen above), whilst other templates can use that input to decide what to show or how to show it (such as choosing colours, styles or different sections of code altogether).
 +
 
 +
Other templates (including all [[Help:Message Boxes|message boxes]]) can take multiple inputs for different purposes. Inputs are separated with a vertical line | and selected by name=input.
 +
 
 +
<pre>{{ambox | type = speedy | image = none | text = This is some text for a big red template }}</pre>
 +
 
 +
This uses the {{template|ambox}} template, along with three inputs given for the type, image and text. This produces:
  
<pre>{{Help}}</pre>
+
{{ambox | type = speedy | image = none | text = This is some text for a red 'speedy' message box with no image }}
This will show the code for whatever is in page [[Template:Help]] - this is the big help banner at the top of the page.
+
  
  
== [[Help:Tables|Tables]] ==
+
==Tables==
 +
{{main|wp:Help:Table}}
  
 
{| class="wikitable"
 
{| class="wikitable"

Latest revision as of 17:49, 25 January 2012



This article explains how to format articles on Grand Theft Wiki. When you edit a page, we use WikiMarkup for formatting. This is generally identical to the code used on Wikipedia.

For a basic understanding of wikis and editing, please read Help:Basics


Links

Code Result Description
[[Policy]] Policy A link to the page called "Policy"
[[Policy|Grand Theft Wiki Policy]] Grand Theft Wiki Policy A link to the page called "Policy" but with the link showing the text "Grand Theft Wiki Policy"
[[User:Chris]] User:Chris A link to the page of the user called "Chris"
[[wp:GTA | Read on Wikipedia]] Read on Wikipedia A link to the page "GTA" on Wikipedia (called an 'interwiki link'), with the text "Read on Wikipedia"
[http://www.bbc.co.uk BBC Website] BBC Website An external link to the website bbc.co.uk with the text "BBC Website"


Text Formatting

Code Result Description
''text'' text Italics (two apostrophes on each side}
'''text''' text Bold (three apostrophes on each side}
<u>text</u> text underline)
<s>text</s> text Rule Out)
~~~ Xenontalk Partial signature (Your name)
~~~~ Xenontalk 17:08, 28 July 2006 (BST) Full signature (your name and the date)
~~~~~ 17:08, 28 July 2006 (BST) - 17:49, 25 January 2012 (UTC) Timestamp (shows date and timezone)
X<sup>2</sup>
H<sub>2</sub>O
X2, H2O superscript and subscript)
<nowiki>'''text'''</nowiki> '''text''' Nowiki - does not process the code between the tags (just shows the raw code)
<tt>text</tt> Text Uses typewriter (monospaced) font (also use nowiki inside this if showing wiki code)
<code>text</code> Text Shows code inside a code box (also use nowiki inside thisif showing wiki code)
''Unformatted text''
Unformatted Text
Putting a blank space at the start of a line stops its contents being formatted.

Headings

Headings are big dividers on pages, and they show up in the table of contents at the top if the page is large enough.

== heading ==
  • A <h2> heading, like "Headings" (above)

Third Level

=== heading ===
  • A <h3> heading, like "Third Level" (below)

Fourth Level

==== heading ====
  • A <h4> heading, like "Fourth Level" (below)

Please do not use =Heading=, because that creates a first-level heading that should only be used on page titles, which are implemented automatically.


Lists

  • One asterisk (*) makes the first item in a bulleted list, like this one
  • Two asterisks (**) make the next line in
      • Three
        • Four
      • Three
  • one
    • two
      • Three


  1. One hash (#) makes the first item in a numbered list
    1. Two hashes (##) make the next item
    2. And so on
      1. And so on
  2. The same as the bulleted list


Page Formatting

This is plain text.

A single colon (:) indents this text once
You can repeat this for a new line too
Two colons (::) indents twice
Three (:::) indents three times.
et cetera
#REDIRECT [[User:Xenon]]
  • This will redirect the current page to the page you mention. This should be used for other words that mean the same thing. For example, the page Sysop redirects to Administrators, because they are just two different words for the same thing.

Putting __NOEDITSECTION__ anywhere in an article prevents the little "Edit" buttons showing up at every heading. See Help:Magic Words.


Table of Contents

To place a table of contents over to the right hand side of the page, simply put {{toc}} where you want it to show. You can also use __NOTOC__ anywhere in an article to stop a table of contents showing up, and __FORCETOC__ to make one show up. See Help:Magic Words.


Categories

[[Category:Help]]

This will add the page to the list of Working Documents, and automatically place a link at the bottom of the page. This page IS in the Working Documents category, and so at the bottom of this page you can see the link to it.

If you just want to link to a category page, put a colon (:) at the start of the link such as [[:Category:Help]]


Templates

A template is a piece of reusable code, that can be used in many articles without having to copy or re-type the code. They can also provide some advanced functions to save a lot of time and effort.

{{help}}

This will show whatever is in the {{help}} template - which is the big help banner at the top of this page. This means you don't have to copy the whole code fo


{{info | This is some text}}

This will show the {{info}} template, providing "This is some text" as the only input ("parameter") for that template:

This particular template is built to just show that input (as seen above), whilst other templates can use that input to decide what to show or how to show it (such as choosing colours, styles or different sections of code altogether).

Other templates (including all message boxes) can take multiple inputs for different purposes. Inputs are separated with a vertical line | and selected by name=input.

{{ambox | type = speedy | image = none | text = This is some text for a big red template }}

This uses the {{ambox}} template, along with three inputs given for the type, image and text. This produces:


Tables

This is
a table
{| class="wikitable"
! This
! is
|- 
| a
| table
|-
|}