Wiki Basic Syntax: Difference between revisions
(13 intermediate revisions by 2 users not shown) | |||
Line 69: | Line 69: | ||
===Line Brake=== | ===Line Brake=== | ||
<nowiki><br | <nowiki><br></nowiki> | ||
===Escape markup=== | ===Escape markup=== | ||
Line 79: | Line 79: | ||
<code>print "hello world"</code><br \> | <code>print "hello world"</code><br \> | ||
<nowiki><code>print "hello world"</code></nowiki> | <nowiki><code>print "hello world"</code></nowiki> | ||
====Customized colour <code>code</code> text==== | |||
<nowiki><code style="color: blue">is this blue</code></nowiki><br> | |||
<code style="color: blue">is this blue</code><br> | |||
===Preforrmated context=== | ===Preforrmated context=== | ||
Line 92: | Line 96: | ||
</nowiki> | </nowiki> | ||
===Customized preformatted text=== | ====Customized colour preformatted text==== | ||
<pre style="color: red"> | <pre style="color: red"> | ||
Preformatted content | |||
10 print "hello world" | |||
20 goto 10 | |||
</pre> | </pre> | ||
<br> | |||
<nowiki> | <nowiki> | ||
<pre style="color: red"> | <pre style="color: red"> | ||
Preformatted content | |||
10 print "hello world" | |||
20 goto 10 | |||
</pre> | </pre> | ||
</nowiki> | </nowiki> | ||
Line 142: | Line 147: | ||
<b>bold</b><br \> | <b>bold</b><br \> | ||
<nowiki><b>bold</b></nowiki> | <nowiki><b>bold</b></nowiki> | ||
also three <code>'</code> on each side<br> | |||
<nowiki>'''</nowiki><br> | |||
<nowiki>'''bold'''</nowiki><br> | |||
'''bold'''<br> | |||
===Italic=== | ===Italic=== | ||
Line 148: | Line 158: | ||
===bold and italic=== | ===bold and italic=== | ||
Thats 5 ' | Thats 5 ' each side | ||
<nowiki>'''''Bold and italic'''''</nowiki><br \> | <nowiki>'''''Bold and italic'''''</nowiki><br \> | ||
'''''Bold and italic''''' | '''''Bold and italic'''''<br> | ||
<nowiki>'''''</nowiki><br> | |||
===Syntax highlighting=== | ===Syntax highlighting=== | ||
Line 175: | Line 186: | ||
else: | else: | ||
pass | pass | ||
</syntaxhighlight> | |||
</pre> | |||
* Quick copy/paste | |||
<pre> | |||
<syntaxhighlight lang="python" line> | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</pre> | </pre> | ||
Line 230: | Line 248: | ||
Link to Section on another page:<br \> | Link to Section on another page:<br \> | ||
<nowiki>[[PAGE_NAME#SECTION | NAME_TO_DISPLAY]]</nowiki> | <nowiki>[[PAGE_NAME#SECTION | NAME_TO_DISPLAY]]</nowiki> | ||
===Align=== | |||
<div style='text-align: left;'>left aligned</div> | |||
<pre><div style='text-align: left;'>left aligned</div></pre> | |||
<div style='text-align: center;'>center aligned</div> | |||
<pre><div style='text-align: center;'>center aligned</div></pre> | |||
<div style='text-align: right;'>right aligned</div> | |||
<pre><div style='text-align: right;'>right aligned</div></pre> | |||
==Youtube extension - Embed Video== | |||
* On wiki page | |||
** https://www.youtube.com/watch?v=wB4gvSgYmfY | |||
** After '''watch?v=''' | |||
** <nowiki><youtube>wB4gvSgYmfY</youtube></nowiki> | |||
<youtube>wB4gvSgYmfY</youtube> | |||
* Defaults '''width'''=640 pixels '''height'''=385 pixels | |||
* Change defaults <nowiki><youtube width="800" height="400">wB4gvSgYmfY</youtube></nowiki> | |||
<youtube width="800" height="400">wB4gvSgYmfY</youtube> |
Latest revision as of 17:10, 16 May 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>
Customized colour code
text
<code style="color: blue">is this blue</code>
is this blue
Preforrmated context
Preformatted content 10 print "hello world" 20 goto 10
<pre> content </pre>
Customized colour preformatted text
Preformatted content 10 print "hello world" 20 goto 10
<pre style="color: red">
Preformatted content
10 print "hello world"
20 goto 10
</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>
also three '
on each side
'''
'''bold'''
bold
Italic
''italic''
italic
bold and italic
Thats 5 ' each side
'''''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>
- Quick copy/paste
<syntaxhighlight lang="python" line> </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 |}
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]]
Align
<div style='text-align: left;'>left aligned</div>
<div style='text-align: center;'>center aligned</div>
<div style='text-align: right;'>right aligned</div>
Youtube extension - Embed Video
- On wiki page
- https://www.youtube.com/watch?v=wB4gvSgYmfY
- After watch?v=
- <youtube>wB4gvSgYmfY</youtube>
- Defaults width=640 pixels height=385 pixels
- Change defaults <youtube width="800" height="400">wB4gvSgYmfY</youtube>