Help:Editing

(Redirected from Editing)



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
|-
|}