IT/Software/Mediawiki/Formatting Example: Difference between revisions

From msgwiki
< IT‎ | Software‎ | Mediawiki
Jump to navigation Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.
m (Nathan moved page First Test to IT/Mediawiki/Formatting Example without leaving a redirect)
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== This is a header ==
=== This is a header ===
This is a sentence under the header.
*This is a sentence under the header.
*Above you will the Table of Contents
** It will normally only show after a certain number of headings.
** You can force it with <nowiki>__TOC__ anywhere on the page</nowiki>


=== This is a section with a numbered list ===
=== Here are Lists ===
----
 
==== This is a section with a numbered list ====
# Thing 1
# Thing 1
## Another thing  
## Another thing  
Line 9: Line 13:
### More things
### More things
# New things
# New things
=== This is a section with a unorderd list ===
==== This is a section with a unorderd list ====
----
----
* a thing
* a thing
Line 17: Line 21:
*filler text yay
*filler text yay


=== This is a section with combined lists ===
==== This is a section with combined lists ====
----
----
# First thing
# First thing
Line 25: Line 29:
## Ordered sub thing
## Ordered sub thing


==== Code Block Formating ====
=== Code Block Formating ===
----
----
  <nowiki>
  <nowiki>
Line 39: Line 43:
fi
fi
</nowiki>
</nowiki>
==== One Line Code Formating ====
==== One Line Code Formating ====  
----
----
<code>#!/bin/bash</code>
<code>#!/bin/bash</code>
=== This is a section on Hidden Comments ===
----
<code><nowiki><!-- Comment_Hidden --></nowiki></code>
=== Links ===
==== Internal ====
==== External ====
# You simply do it like this. 
## Note that there is no pipe. 
## The last word in the brackets will show up as text.
<code><nowiki>[https://www.zoneedit.com/ ZoneEdit]</nowiki></code>
=== Pictures ===
# Internal
# External
# Gallery
## this is a nice way to display a few pictures together.
<code>
<nowiki>
File:Example.jpg|Item 1  File:Example.jpg|a link to [[Help:Contents]]
File:Example.jpg | thumb | description
File:Example.jpg|alt=An example image. It has flowers
File:Example.jpg|''italic caption'' Example.jpg|on page "{{PAGENAME}}"
File:Using Firefox.pdf|page=72
</nowiki>
</code>

Latest revision as of 14:11, 24 April 2020

This is a header

  • This is a sentence under the header.
  • Above you will the Table of Contents
    • It will normally only show after a certain number of headings.
    • You can force it with __TOC__ anywhere on the page

Here are Lists

This is a section with a numbered list

  1. Thing 1
    1. Another thing
    2. sub things
      1. More things
  2. New things

This is a section with a unorderd list


  • a thing
    • a sub thing
    • another sub thing
  • next thing
  • filler text yay

This is a section with combined lists


  1. First thing
    • Unordered sub thing
    • Another unordered sub thing
  2. Second Thing
    1. Ordered sub thing

Code Block Formating


#!/bin/bash
#Turn backlight brighness up
currentBrightness=$(cat "/sys/class/backlight/intel_backlight/brightness")
newBrightness=$(($currentBrightness + 50))

if [[ $newBrightness>937 ]]; then
	echo 937 | tee /sys/class/backlight/intel_backlight/brightness
else
	echo $newBrightness | tee /sys/class/backlight/intel_backlight/brightness
fi

One Line Code Formating


#!/bin/bash

This is a section on Hidden Comments


<!-- Comment_Hidden -->

Links

Internal

External

  1. You simply do it like this.
    1. Note that there is no pipe.
    2. The last word in the brackets will show up as text.
[https://www.zoneedit.com/ ZoneEdit]

Pictures

  1. Internal
  2. External
  3. Gallery
    1. this is a nice way to display a few pictures together.

File:Example.jpg|Item 1  File:Example.jpg|a link to [[Help:Contents]] 
File:Example.jpg | thumb | description
File:Example.jpg|alt=An example image. It has flowers
File:Example.jpg|''italic caption'' Example.jpg|on page "{{PAGENAME}}" 
File:Using Firefox.pdf|page=72