Difference between revisions of "WritingRules"
From ArmadeusWiki
(→Pages under construction) |
|||
Line 1: | Line 1: | ||
On this page are explained the rules to follow when writing articles for this wiki | On this page are explained the rules to follow when writing articles for this wiki | ||
− | =Shell commands= | + | ==Shell commands== |
* If you're speaking about a command launched as a '''user''' on your development Host then use: | * If you're speaking about a command launched as a '''user''' on your development Host then use: | ||
Line 43: | Line 43: | ||
</pre> | </pre> | ||
− | =Traduction= | + | ==Traduction== |
* Use the "LanguageBar" Template to add multiple languages selection to your page: | * Use the "LanguageBar" Template to add multiple languages selection to your page: | ||
<pre> | <pre> | ||
Line 50: | Line 50: | ||
==Warning== | ==Warning== | ||
+ | |||
+ | <pre> | ||
+ | {{Warning| it's dangerous !}} | ||
+ | </pre> | ||
+ | |||
+ | give : | ||
+ | |||
+ | {{Warning| it's dangerous !}} | ||
==Info== | ==Info== | ||
+ | |||
+ | <pre> | ||
+ | {{Info| A little information flash}} | ||
+ | </pre> | ||
+ | |||
+ | give: | ||
+ | |||
+ | {{Info| A little information flash}} | ||
==Pages under construction== | ==Pages under construction== | ||
Line 61: | Line 77: | ||
{{Under_Construction}} | {{Under_Construction}} | ||
− | = QDWL = | + | == QDWL == |
[http://code.google.com/p/qdwl/source/browse/trunk/QDWL.py '''Q'''uick and '''D'''irty '''W'''iki to '''L'''atex] is an home made script used to convert Wikimedia pages in Latex (that can be converted in pdf). To use this script, some special writing rules must be followed: | [http://code.google.com/p/qdwl/source/browse/trunk/QDWL.py '''Q'''uick and '''D'''irty '''W'''iki to '''L'''atex] is an home made script used to convert Wikimedia pages in Latex (that can be converted in pdf). To use this script, some special writing rules must be followed: |
Revision as of 12:10, 3 February 2009
On this page are explained the rules to follow when writing articles for this wiki
Contents
Shell commands
- If you're speaking about a command launched as a user on your development Host then use:
<pre class="host">
[ ] $ command
</pre>
That give you :
[ ] $ command
- If you're speaking about a command launched on the target then use:
<pre class="apf">
# command
</pre>
That give you :
# command
- If you're speaking about a make menuconfig configuration then use :
<pre class="config">
[*] Networking support --->
Wireless --->
<*> Generic IEEE 802.11 Networking Stack (mac80211)
</pre>
That give you :
[*] Networking support ---> Wireless ---> <*> Generic IEEE 802.11 Networking Stack (mac80211)
Traduction
- Use the "LanguageBar" Template to add multiple languages selection to your page:
{{LanguageBar|Page_English_Name|Page_French_Name|Page_German_Name}}
Warning
{{Warning| it's dangerous !}}
give :
Info
{{Info| A little information flash}}
give:
Pages under construction
- Use the "Under_Construction Template:
{{Under_Construction}}
Page under construction...
Informations on this page are not guaranteed !!
QDWL
Quick and Dirty Wiki to Latex is an home made script used to convert Wikimedia pages in Latex (that can be converted in pdf). To use this script, some special writing rules must be followed:
Source code syntax highlighting
- When you write code or bash script directly in the Wiki, you must use the automatic syntax highlighting feature with "source" tag; for example:
<source lang="c"> #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { printf( "APF9328 says: Hello World ! ;-)\n" ); exit(0); } </source>
will give you:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
printf( "APF9328 says: Hello World ! ;-)\n" );
exit(0);
}
Insert image
To insert image, you must use the following syntax :
[[image:imagename.png|center|frame|'''figure <number>''' - ''legend title'']]
If QDWL find this syntax, it will download the picture and print the legend.