WikiPages: Difference between revisions

From LabRPS Documentation
Jump to navigation Jump to search
(Created page with " {{TOCright}} This page is an extension of the Help:Editing page and gives common guidelines for writing and updating the LabRPS wiki documentation. It summarizes several discussions and brainstorming sessions == Before starting == * This wiki documentation is based on [https://www.mediawiki.org/wiki/MediaWiki MediaWiki], the same software that powers [https://en.wikipedia.org/wiki/Main_Page Wikipedia]. If you have contributed to Wikipedia, editing L...")
Tag: visualeditor-switched
 
 
(5 intermediate revisions by the same user not shown)
Line 11: Line 11:
* For advanced use of the wiki software, see [https://www.mediawiki.org/wiki/Help:Contents MediaWiki Help:Contents]. Not all features of MediaWiki are available in this LabRPS wiki, but many are.
* For advanced use of the wiki software, see [https://www.mediawiki.org/wiki/Help:Contents MediaWiki Help:Contents]. Not all features of MediaWiki are available in this LabRPS wiki, but many are.
* We like to keep the documentation easy to read, so avoid using complex features. Keep it simple.
* We like to keep the documentation easy to read, so avoid using complex features. Keep it simple.
* Use a sandbox to test your code, for example, [[LabRPSDocu:Sandbox]] or a particular page with your name [[Sandbox:Yourname]]. Sandbox pages must be placed in the Sandbox category. This is done by adding <code><nowiki>[[Category:Sandbox]]</nowiki></code> at the bottom of the wiki code.


== General guidelines ==  
== General guidelines ==  
Line 20: Line 19:


; Bad description
; Bad description
: [[windLab_Plugin|windLab Plugin]]: the windLab Plugin is a plugin for wind velocity that aims to provide tools for the simulation of wind velocity.
: [[WindLab_Plugin|WindLab Plugin]]: the WindLab Plugin is a plugin for wind velocity that aims to provide tools for the simulation of wind velocity.


; Good description
; Good description
: [[windLab_Plugin|windLab Plugin]]: aims to provide tools for the numerical simulation of random wind velocity.
: [[WindLab_Plugin|WindLab Plugin]]: aims to provide tools for the numerical simulation of random wind velocity.


=== Centralized information ===  
=== Centralized information ===  
Line 64: Line 63:
: Simulation of Sea Surface
: Simulation of Sea Surface


The names of top level plugin pages must have this format: <code>XYZ Plugin</code>, where <code>XYZ</code> is the name of the plugin, for example [[windLab_Plugin|windLab Plugin]]. And the names of pages describing the commands (or tools) belonging to a plugin must have this format: <code>XYZ Command</code>, for example [[windLab_Spectrum|windLab Spectrum]]. Note that you should use the command name as it occurs in the source code.
The names of top level plugin pages must have this format: <code>XYZ Plugin</code>, where <code>XYZ</code> is the name of the plugin, for example [[WindLab_Plugin|WindLab Plugin]]. And the names of pages describing the commands (or tools) belonging to a plugin must have this format: <code>XYZ Command</code>, for example [[WindLab_Spectrum|WindLab Spectrum]]. Note that you should use the command name as it occurs in the source code.


=== Headings ===  
=== Headings ===  
Line 75: Line 74:


; Bad link
; Bad link
: For more information on the implementation of the kaimal Spectrum click [[windLab_Plugin|here]].
: For more information on the implementation of the kaimal Spectrum click [[WindLab_Plugin|here]].


; Good link
; Good link
: For more information on implementation of the kaimal Spectrum refer to the [[windLab_Plugin|windLab Plugin]].
: For more information on implementation of the kaimal Spectrum refer to the [[WindLab_Plugin|WindLab Plugin]].


The preferred format for a link is:
The preferred format for a link is:
Line 108: Line 107:


; Image link + text link
; Image link + text link
: [[Image:windLab_Spectrum.svg|24px|link=windLab_Spectrum]] [[windLab_Spectrum|windLab Spectrum]]
: [[Image:windLab_Spectrum.svg|24px|link=windLab_Spectrum]] [[windLab_Spectrum|WindLab Spectrum]]


If you leave out the optional text the link itself will be shown when the image is hovered, which is preferable, and you should also add a text link after the image link:
If you leave out the optional text the link itself will be shown when the image is hovered, which is preferable, and you should also add a text link after the image link:
Line 250: Line 249:
|--
|--
|[[Template:Obsolete|Obsolete]]
|[[Template:Obsolete|Obsolete]]
|{{Obsolete|0.19}}
|{{Obsolete|0.004}}
|Use it to indicate that a feature became obsolete in the specified LabRPS version.
|Use it to indicate that a feature became obsolete in the specified LabRPS version.


|--
|--
|[[Template:Version|Version]]
|[[Template:Version|Version]]
|{{Version|0.18}}
|{{Version|0.003}}
|Use it to indicate that a feature was introduces in the specified LabRPS version.
|Use it to indicate that a feature was introduces in the specified LabRPS version.


|--
|--
|[[Template:VersionMinus|VersionMinus]]
|[[Template:VersionMinus|VersionMinus]]
|{{VersionMinus|0.16}}
|{{VersionMinus|0.001}}
|Use it to indicate that a feature is available in the specified LabRPS version and earlier versions.
|Use it to indicate that a feature is available in the specified LabRPS version and earlier versions.


|--
|--
|[[Template:VersionPlus|VersionPlus]]
|[[Template:VersionPlus|VersionPlus]]
|{{VersionPlus|0.17}}
|{{VersionPlus|0.002}}
|Use it to indicate that a feature is available in the specified LabRPS version and later versions.
|Use it to indicate that a feature is available in the specified LabRPS version and later versions.


Line 305: Line 304:
|--
|--
|[[Template:Code|Code]]
|[[Template:Code|Code]]
|{{Code|code=#include "RPS.h"}}
|{{Code|lang=cpp|code=#include "RPS.h"}}
|Use it to include multi-line code examples with a monospace font. The default language is Python, but other languages can be specified.
|Use it to include multi-line code examples with a monospace font. The default language is Python, but other languages can be specified.


Line 379: Line 378:
=== Name ===  
=== Name ===  


Give meaningful names to your images. If you have an image that showcases the characteristics of a particular function, you should use the name of that function with {{incode|_example}} at the end. For example for the command [[windLab_Simulate|windLab Simulate]] the image should be called {{incode|windLab_simulate_example.png}}.
Give meaningful names to your images. If you have an image that showcases the characteristics of a particular function, you should use the name of that function with {{incode|_example}} at the end. For example for the command [[WindLab_New|WindLab New]] the image should be called {{incode|WindLab_New.svg}}.


=== Screen capture ===  
=== Screen capture ===  

Latest revision as of 20:35, 29 October 2024

This page is an extension of the Help:Editing page and gives common guidelines for writing and updating the LabRPS wiki documentation. It summarizes several discussions and brainstorming sessions

Before starting

  • This wiki documentation is based on MediaWiki, the same software that powers Wikipedia. If you have contributed to Wikipedia, editing LabRPS wiki pages should be easy.
  • Contrary to Wikipedia, the LabRPS wiki is write-protected to avoid spam. You must request an account on the forum.
  • If you have never used wiki software before, please read Help:Editing to become familiar with the markup that is used.
  • For advanced use of the wiki software, see MediaWiki Help:Contents. Not all features of MediaWiki are available in this LabRPS wiki, but many are.
  • We like to keep the documentation easy to read, so avoid using complex features. Keep it simple.

General guidelines

Concise descriptions

When describing LabRPS try to be concise and to the point and avoid repetition. Describe what LabRPS does, not what LabRPS does not do. Also avoid colloquial expressions such as 'a couple'. Use 'some' when dealing with an indeterminate number, or specify the correct quantity.

Bad description
WindLab Plugin: the WindLab Plugin is a plugin for wind velocity that aims to provide tools for the simulation of wind velocity.
Good description
WindLab Plugin: aims to provide tools for the numerical simulation of random wind velocity.

Centralized information

Avoid duplicating the same information in different places. Insert the information in a new page, and link to this page from other pages that require this information.

Styling

Templates are used to style the help pages. They give the documentation a consistent look and feel. There is a template for menu commands, File → Save, a template to style keys to be pressed, Shift, to show a Boolean value, true, etc. Please get familiar with the #Templates section before writing help pages.

Temporary flags

If you are working on a large page it is advisable to mark the page either as a work in progress or as unfinished. This assures that wiki admins don't mark your page as ready for translation while you are still changing it.

To flag a page add either {{Page in progress}} or {{UnfinishedDocu}} as the first line. With {{UnfinishedDocu}} you invite others to join you in finishing the page, while {{Page in progress}} indicates that you will do the work yourself and others should give you some time.

Once the work is done, please don't forget to remove the flags!

Examples

Structure

Templates

Graphics

Create, rename and delete pages

Create pages

Before creating a new page you should first check if a similar page already exists. If that is the case it is usually better to edit that existing page instead. When in doubt please open a topic in the forum first.

To create a new page do one of the following:

  • Visit the URL with the desired page name, for example: https://wiki.labrps.com/My_new_page, and click on 'create this page'.
  • Do a wiki search for the page name, and click on the red text in 'Create the page "My new page" on this wiki!'.

Rename pages

Since LabRPS is a project under permanent development, it is sometimes necessary to revise the content of the wiki. If the names of commands are changed in the source code, the wiki pages documenting them have to be renamed as well. This can only be done by wiki administrators. To inform them, open a topic in the wiki and list the necessary renaming operation in this form:

old name         new name
Old_page_name_1  New_page_name_1
Old_page_name_2  New_page_name_2
...

Delete files and pages

In case you need to delete a file, go to its page (https://www.labrps.com/wiki/File:***.***) and edit it. No matter if the page is blank or not, add this as the first element: {{Delete}} and directly below it describe why the page should be deleted. Additionally, open a topic in the forum.

For pages the procedure is the same.

Discussion

The subforum in the forum provides a dedicated space for discussing wiki topics, the wiki appearance and anything else related to the wiki. Direct your questions and suggestions there.

Terminology - naming policy

English

See Glossary.