Help:Editing Guidelines: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Added Script Examples, protected pages and minor edits.)
Line 4: Line 4:


== Editing Pages ==
== Editing Pages ==
<div style="font-size: 85%;">''MediaWiki general help page: [http://www.mediawiki.org/wiki/Help:Editing_pages Editing Pages]''</div>
=== Minor Edits ===
From Wikipedia: "A check to the "minor edit" box signifies that only superficial differences exist between the version with your edit and the previous version: typo corrections, formatting and presentational changes, rearranging of text without modifying content, etc. A minor edit is a version that the editor believes requires no review and could never be the subject of a dispute. The "minor edit" option is one of several options available only to registered users."<ref>http://en.wikipedia.org/wiki/Help:Minor_edit</ref>
=== Editing Function/Event Pages ===
[[File:Layout function page.png|thumb|Layout Function Pages]]
[[File:Layout function page.png|thumb|Layout Function Pages]]
<div style="font-size: 85%;">''MediaWiki general help page: [http://www.mediawiki.org/wiki/Help:Editing_pages Editing Pages]''</div>


Specific information for editing the MTA Wiki.
Specific information for editing the MTA Wiki.


==== Contents of Function/Event Pages ====
===== Contents of Function/Event Pages =====
Function and event pages have a layout that is easy to identify and consistent. Before adding function and/or event pages make sure they do exist in the MTA Core!
Function and event pages have a layout that is easy to identify and consistent. Before adding function and/or event pages make sure they do exist in the MTA Core!


===== Layout Function Pages =====
====== Layout Function Pages ======
* No Table of Contents: <nowiki>__NOTOC__</nowiki>
* No Table of Contents: <nowiki>__NOTOC__</nowiki>
* Define if function is server and/or client: <nowiki>{{Server client function}}</nowiki>
* Define if function is server and/or client: <nowiki>{{Server client function}}</nowiki>
Line 26: Line 30:
* See Also: Add the template to which function group this function belongs
* See Also: Add the template to which function group this function belongs


===== Layout Event Pages =====
====== Layout Event Pages ======
* No Table of Contents: <nowiki>__NOTOC__</nowiki>
* No Table of Contents: <nowiki>__NOTOC__</nowiki>
* Define if event is server or client: <nowiki>{{server event}}</nowiki>
* Define if event is server or client: <nowiki>{{server event}}</nowiki>
Line 42: Line 46:
* When you don't want add examples add the <nowiki>{{Needs Example}}</nowiki> template at the top of the page.
* When you don't want add examples add the <nowiki>{{Needs Example}}</nowiki> template at the top of the page.
* If you added examples to a page make sure to remove template <nowiki>{{Needs Example}}</nowiki> when necessary.  
* If you added examples to a page make sure to remove template <nowiki>{{Needs Example}}</nowiki> when necessary.  
== Script Examples ==
When writing a script example always test and verify that your example is working, submitting not working examples is a waste of time for everyone.
* Use the syntaxhighlighting codebox provided on this wiki. (<nowiki><syntaxhighlight lang="lua">(CODE HERE)</syntaxhighlight></nowiki>)
* If the event/function is both client and server you should use the section template with server and/or client classes.
** For server side examples: <nowiki><section name="Example 1" </nowiki>'''class="server"'''<nowiki> show="true"></section></nowiki>
** For client side examples: <nowiki><section name="Example 2" </nowiki>'''class="client"'''<nowiki> show="false"></section></nowiki>
When an event/function is only client or server side you should only use the code box not the section tags.
If there are enough scripting examples, remove the template <nowiki>{{Needs Example}}</nowiki> or the <nowiki>[[Category:Needs Example]]</nowiki> when necessary.


== Templates ==
== Templates ==
Line 50: Line 66:


* [[MTA Wiki:Specific Templates |How to use MTA Wiki's Specific templates]]
* [[MTA Wiki:Specific Templates |How to use MTA Wiki's Specific templates]]
== Protected Pages ==
Protected pages cannot be modified by normal users, if you want to change something on a protected page you will have to ask someone who as the rights to modify them.<ref>http://www.mediawiki.org/wiki/Help:Protected_pages</ref>


== Icons ==
== Icons ==
Line 57: Line 76:


== Helpful links ==
== Helpful links ==
* [http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Cheatsheet]
* [http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Wikipedia Cheatsheet] - Quick overview of general editing tags and functions.
 
== References ==
<references></references>


[[Category:MTA Wiki:Editing]]
[[Category:MTA Wiki:Editing]]

Revision as of 09:56, 16 November 2011

> This page is work in progress (WIP) <

Before you contribute to the Multi Theft Auto Wiki make sure you know/understand the basics of MediaWiki.

Editing Pages

MediaWiki general help page: Editing Pages

Minor Edits

From Wikipedia: "A check to the "minor edit" box signifies that only superficial differences exist between the version with your edit and the previous version: typo corrections, formatting and presentational changes, rearranging of text without modifying content, etc. A minor edit is a version that the editor believes requires no review and could never be the subject of a dispute. The "minor edit" option is one of several options available only to registered users."[1]

Editing Function/Event Pages

Layout Function Pages

Specific information for editing the MTA Wiki.

Contents of Function/Event Pages

Function and event pages have a layout that is easy to identify and consistent. Before adding function and/or event pages make sure they do exist in the MTA Core!

Layout Function Pages
  • No Table of Contents: __NOTOC__
  • Define if function is server and/or client: {{Server client function}}
    • Server only function: {{Server function}}
    • Client only function: {{Client function}}
    • Both client and server: {{Server client function}}
  • Explain the function
  • Syntax: Use <syntaxhighlight lang="lua"></syntaxhighlight>
    • Required Arguments
    • Optional Arguments (not always necessary)
  • Returns
  • Example
  • See Also: Add the template to which function group this function belongs
Layout Event Pages
  • No Table of Contents: __NOTOC__
  • Define if event is server or client: {{server event}}
    • Server event: {{Server event}}
    • Client event: {{Client event}}
  • Parameters
  • Source: The source of the event.
  • Example
  • See Also

Events can only be server or client side not both.

Tips
  • When creating a new page for a function or event, you need to edit the template for 'See Also' too. If you don't add it to a function/event group template this page is considered orphaned and no one will find it unless they use the search function.
  • When you don't want add examples add the {{Needs Example}} template at the top of the page.
  • If you added examples to a page make sure to remove template {{Needs Example}} when necessary.

Script Examples

When writing a script example always test and verify that your example is working, submitting not working examples is a waste of time for everyone.

  • Use the syntaxhighlighting codebox provided on this wiki. (<syntaxhighlight lang="lua">(CODE HERE)</syntaxhighlight>)
  • If the event/function is both client and server you should use the section template with server and/or client classes.
    • For server side examples: <section name="Example 1" class="server" show="true"></section>
    • For client side examples: <section name="Example 2" class="client" show="false"></section>

When an event/function is only client or server side you should only use the code box not the section tags.

If there are enough scripting examples, remove the template {{Needs Example}} or the [[Category:Needs Example]] when necessary.

Templates

MediaWiki general help page: Templates

Templates are a consistent set of visual styling and can be used in articles to get the reader's attention or mark a page for example as outdated. Some templates also require arguments, for more information on how to use MTA's specific wiki templates go here.

Using templates is recommended when using the same content over a large number of pages. This will save you time when you want to change something in that content and doesn't require you to edit all the pages but just the template.

Protected Pages

Protected pages cannot be modified by normal users, if you want to change something on a protected page you will have to ask someone who as the rights to modify them.[2]

Icons

When you want to use icons, it is recommended to use general icons this improves the consistency of the wiki.

Helpful links

References