Jump to content

Help:Editing: Difference between revisions

2,237 bytes added ,  25 January 2012
Updated & formatted into tables
(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"
Cookies help us deliver our services. By using our services, you agree to our use of cookies.