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.
No edit summary
Line 25: Line 25:
## Ordered sub thing
## Ordered sub thing


==== Code Formating ====
==== Code Block Formating ====
----
----
<code>
<nowiki>
#!/bin/bash
#Turn backlight brighness up
currentBrightness=$(cat "/sys/class/backlight/intel_backlight/brightness")
currentBrightness=$(cat "/sys/class/backlight/intel_backlight/brightness")
newBrightness=$(($currentBrightness + 50))</code>
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
</nowiki>

Revision as of 15:34, 27 December 2019

This is a header

This is a sentence under the header.

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