Talk:Main Page: Difference between revisions
m (It's more logical to put the mother-class after as the constructor must be the first function.) |
mNo edit summary |
||
| Line 2: | Line 2: | ||
For example: | For example: | ||
* '''Naming the templates''': | * '''Naming the templates''': Defining a type must have the ''definition'' suffix with 2 pages (one for functions and one for properties) | ||
* '''Add a 'c' at the end of your template name if it's a | * '''Add a 'c' at the end of your template name if it's a client-side definition''' | ||
* '''Sorting the functions and properties alphabetically''': Keep the types with themselves, but sort them alphabetically so it's simpler to look at a function in all this mess. If you see that you're using a template and you can't sort them perfectly, create a new template. | * '''Sorting the functions and properties alphabetically''': Keep the types with themselves, but sort them alphabetically so it's simpler to look at a function in all this mess. If you see that you're using a template and you can't sort them perfectly, create a new template. | ||
* '''Mother-class always last''': As some classes are inherited (like Player), the mother class shall be put at last. (For example every properties of Entity must be listed after properties of Player) | * '''Mother-class always last''': As some classes are inherited (like Player), the mother class shall be put at last. (For example every properties of Entity must be listed after properties of Player) | ||
Latest revision as of 18:56, 27 December 2017
We should have some rules about contributing on the Wiki, just to format it in a proper ways.
For example:
- Naming the templates: Defining a type must have the definition suffix with 2 pages (one for functions and one for properties)
- Add a 'c' at the end of your template name if it's a client-side definition
- Sorting the functions and properties alphabetically: Keep the types with themselves, but sort them alphabetically so it's simpler to look at a function in all this mess. If you see that you're using a template and you can't sort them perfectly, create a new template.
- Mother-class always last: As some classes are inherited (like Player), the mother class shall be put at last. (For example every properties of Entity must be listed after properties of Player)