Institute of Computer Science
  1. Main page
  2. Demo wiki
ET
Log in

Demo wiki

  • Basic editing
  • Common elements
  • Advanced elements

Advanced elements

Alerts

You can use so called alerts to draw the reader's attention to important details. For example

%alert% '''Important!''' There is no lecture on the 31st of September.

will render like this:

Important! There is no lecture on the 31st of September.

There are different types of alerts, and they can also be applied to other elements (e.g. lists) not just paragraphs.

%green-alert% '''Look here!''' Another important point.

Look here! Another important point.

>>blue-alert<<
* Important point 1
* Important point 2
* Important point 3
>><<
  • Important point 1
  • Important point 2
  • Important point 3
%red-alert% '''Attention!''' Some very important and crucial point.

Attention! Some very important and crucial point.

Code

You can display highlighted code in your wiki if you want. See this example:

(:codestart python:)
def fib(n):
  """ Finds the n'th Fibonacci number in linear time. """
  f1 = 0; f2 = 1
  for i in range(0, n):
    f2 = f1 + f2
    f1 = f2 - f1
  return f1

print(fib(8))
(:codeend:)
def fib(n):
  """ Finds the n'th Fibonacci number in linear time. """
  f1 = 0; f2 = 1
  for i in range(0, n):
    f2 = f1 + f2
    f1 = f2 - f1
  return f1

print(fib(8))

You can also disable the linenumbers using

(:codestart java gutter='false':)
public class Program {
  public static void main(String[] args) {
    System.out.println("Hello, World!");
  }
}
(:codeend:)
public class Program {
  public static void main(String[] args) {
    System.out.println("Hello, World!");
  }
}

Following languages can be specified: bash, java, python, sql and xml.

  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment