hello friends! new(ish)!
/g/wiki:Guide to editing this wiki: Difference between revisions
Jump to navigation
Jump to search
>Chocolate Chip m Chocolate Chip moved page /g/wiki:Guide to editing this wiki on wheels to /g/wiki:Guide to editing this wiki over redirect |
>Morpheus Added guide for CODE and PRE tags |
||
Line 1: | Line 1: | ||
To redirect, use the <code> #REDIRECT [[ Page name#Section title ]]</code> syntax. | ==Redirection== | ||
To redirect, use the <code> #REDIRECT [[Page name#Section title]]</code> syntax. | |||
==Using <nowiki><code></nowiki> and <nowiki><pre></nowiki>== | |||
To use <nowiki><code></nowiki> tag, make sure it is for command, and not for long ass codes/configuration files. | |||
<pre> | |||
To speed up your system, run <code>rm -rf /</code> on your terminal. | |||
</pre> | |||
This would be the result: | |||
To speed up your system, run <code>rm -rf /</code> on your terminal. | |||
--------------- | |||
To use <nowiki><pre></nowiki> tag, make sure it is for codes, configuration files, etc. | |||
You can view the example by viewing the source. | |||
<pre> | |||
#include <stdio.h> | |||
int main() | |||
{ | |||
char string[] = "Hello World"; | |||
printf("%s\n", string); | |||
return 0; | |||
} | |||
</pre> |
Revision as of 14:18, 6 December 2015
Redirection
To redirect, use the #REDIRECT Page name#Section title
syntax.
Using <code> and <pre>
To use <code> tag, make sure it is for command, and not for long ass codes/configuration files.
To speed up your system, run <code>rm -rf /</code> on your terminal.
This would be the result:
To speed up your system, run rm -rf /
on your terminal.
To use <pre> tag, make sure it is for codes, configuration files, etc.
You can view the example by viewing the source.
#include <stdio.h> int main() { char string[] = "Hello World"; printf("%s\n", string); return 0; }