Help:Editing Guidelines: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Initial, still WIP)
 
No edit summary
Line 14: Line 14:
===== Layout Function Pages =====
===== Layout Function Pages =====
* No Table of Contents: <nowiki>__NOTOC__</nowiki>
* No Table of Contents: <nowiki>__NOTOC__</nowiki>
* Define Function Server and/or client function: <nowiki>{{Server client function}}</nowiki>
* Define if function is server and/or client: <nowiki>{{Server client function}}</nowiki>
** Server only function:  <nowiki>{{Server function}}</nowiki>
** Server only function:  <nowiki>{{Server function}}</nowiki>
** Client only function:  <nowiki>{{Client function}}</nowiki>
** Client only function:  <nowiki>{{Client function}}</nowiki>
Line 23: Line 23:
** Optional Arguments (not always necessary)
** Optional Arguments (not always necessary)
* Returns
* Returns
* Example: If the function is both client and server make sure you add at least one for the server and one for the client. Or add template <nowiki>{{Needs Example}}</nowiki> at the top of the page.
* Example
* 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 =====
TODO
* No Table of Contents: <nowiki>__NOTOC__</nowiki>
* Define if event is server or client: <nowiki>{{server event}}</nowiki>
** Server event:  <nowiki>{{Server event}}</nowiki>
** Client event:  <nowiki>{{Client event}}</nowiki>
* Parameters
* Source: What the source of the event is.
* Example
* See Also
 
Events can only be server or client side not both.


===== Tips =====
===== Tips =====
* When creating a new page, you need to edit the template for 'See Also' too. If you don't add it to a function group template this page is considered orphaned and no one will find it unless they use the search function.
* 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.
* If you add examples to a page make sure to remove template <nowiki>{{Needs Example}}</nowiki> when necessary.  
* 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.  
 
== Templates ==
<div style="font-size: 85%;">''MediaWiki general help page: [http://www.mediawiki.org/wiki/Help:Templates Templates]''</div>
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 [[MTA Wiki:Specific Templates |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.
 
* [[MTA Wiki:Specific Templates |How to use MTA Wiki's Specific templates]]


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

Revision as of 13:10, 14 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

Layout Function Pages
MediaWiki general help page: Editing 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: What the source of the event is.
  • 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.

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.