Wiki Basic Syntax: Difference between revisions

From CompleteNoobs
Jump to navigation Jump to search
(Created page with " ==Headings== Do Not use <code>=Level 1=</code> Level one is for Page titles<br \> <nowiki>==Level 2 heading==</nowiki> <nowiki>===Level 3 heading===</nowiki> <nowiki>====level 4 heading====</nowiki> <nowiki>=====level 5 heading=====</nowiki> <nowiki>======level 6 heading======</nowiki> ==Info boxes== ===expanding content=== <div class="toccolours mw-collapsible mw-collapsed"> What you will like in title: <div class="mw-collapsible-content"> and of course the...")
 
Line 50: Line 50:
</div>
</div>
</div>
</div>
</div>
 




Line 148: Line 148:


===bold and italic===
===bold and italic===
Thats 5 '
<nowiki>'''''Bold and italic'''''</nowiki><br \>
<nowiki>'''''Bold and italic'''''</nowiki><br \>
'''''Bold and italic'''''
'''''Bold and italic'''''

Revision as of 12:14, 3 March 2023


Headings

Do Not use =Level 1= Level one is for Page titles


==Level 2 heading==

===Level 3 heading===

====level 4 heading====

=====level 5 heading=====

======level 6 heading======

Info boxes

expanding content

What you will like in title:

and of course the content when expanded.
print "hello content"

<div class="toccolours mw-collapsible mw-collapsed">
What you will like in title:
<div class="mw-collapsible-content">

and of course the content when expanded.<br \>
<code>print "hello content"</code>
</div>
</div>

Collapsing Content

Content title here

and here you place the content print("hello world");


<div class="toccolours mw-collapsible" style="width:400px; overflow:auto;">
<div style="font-weight:bold;line-height:1.6;">
Content title here
</div>
<div class="mw-collapsible-content">
and here you place the content
<code>print("hello world");</code>
</div>
</div>


Markup

Line Brake

<br \>

Escape markup

Escape wiki syntax markup
<nowiki>escaped markup</nowiki>

Code markup

print "hello world"
<code>print "hello world"</code>

Preforrmated context

Preformatted content
10 print "hello world"
20 goto 10


<pre> content </pre>

Customized preformatted text

<code>rm -rf /*</code><br \>
Will make your computer faster.


<pre style="color: red"> <code>rm -rf /</code><br \> Will make your computer faster. </pre>

BlockQuotes

This is a block quote

<blockquote> This is a block quote </blockquote>

Many lined
block
quote

<blockquote> Many lined <br \> block <br \> quote <br \> </blockquote>

underlined

underlined
<u>underlined</u>

bold

bold
<b>bold</b>

Italic

''italic''
italic

bold and italic

Thats 5 '

'''''Bold and italic'''''
Bold and italic

Syntax highlighting

def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass
<syntaxhighlight lang="python" line>
def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass
</syntaxhighlight>

Tables

https://www.mediawiki.org/wiki/Help:Tables

{| class="wikitable"
|+ Dns
|-
|Type
|Host
|Ip address
|TTL
|-
|A record
|@
|12.34.56.78
|auto
|-
|A record
|www
|12.34.56.78
|auto
|}
Dns
Type Host Ip address TTL
A record @ 12.34.56.78 auto
A record www 12.34.56.78 auto

Internal Links

Link to Page:
[[PAGE_NAME]]

Link to section:
[SECTION_NAME]

Link to Section on another page:
[[PAGE_NAME#SECTION | NAME_TO_DISPLAY]]