Difference between revisions of "Wiki Syntax"

From HPC Wiki
Jump to: navigation, search
m (Stefan-erlbeck-05df@rwth-aachen.de moved page Wiki Syntax to Wiki Syntax: The name "Wiki" is too broad and the page is specifically about how to write source code for the Wiki. Even more, there is a new page about general "how-to-wiki" questions. The...)
Line 1: Line 1:
This page is about the Wiki source code syntax. For general tips, refer to [[How-to-Wiki]].
+
This page is about the Wiki source code syntax. There are also Information on [[How-to-Contribute]].
  
 
== LaTeX Formula ==
 
== LaTeX Formula ==

Revision as of 09:10, 25 February 2019

This page is about the Wiki source code syntax. There are also Information on How-to-Contribute.

LaTeX Formula

<math> a+b = c</math>

Code Segmente mit Syntax Highlighting

user1@blablubb:~/test$ ls datei*
datei datei1 datei2 datei3 datei4 datei5 datei6  # Auch 'datei' ohne Nummer
user1@blablubb:~/test$ ls datei?
datei1 datei2 datei3 datei4 datei5 datei6
user1@blablubb:~/test$ ls datei[1-3]          # Wertebereich
datei1 datei2 datei3
<syntaxhighlight lang="bash">
user1@blablubb:~/test$ ls datei*
datei datei1 datei2 datei3 datei4 datei5 datei6  # Auch 'datei' ohne Nummer
user1@blablubb:~/test$ ls datei?
datei1 datei2 datei3 datei4 datei5 datei6
user1@blablubb:~/test$ ls datei[1-3]          # Wertebereich
datei1 datei2 datei3
</syntaxhighlight>
import numpy as np

def main():
    # ========================================================================
    # Initialisation
    # ----- Switches --------------------------------------------------------
    debug=False
    call_gnuplot=False ## call gnuplot automatically generates gnuplot
<syntaxhighlight lang="python">
import numpy as np

def main():
    # ========================================================================
    # Initialisation
    # ----- Switches --------------------------------------------------------
    debug=False
    call_gnuplot=False ## call gnuplot automatically generates gnuplot
</syntaxhighlight>


Pictures

  1. Make sure you know or have the licenses to the uploaded material and only use it accordingly!!
  2. Upload the picture to the Wiki:
    Upload Picture.PNG
  3. Link the File into the article with
    [[File:ProPE_Logo.png|1000px]]
  4. Format the picture how you like it :)

Heading IDs

When creating internal links to sections, use the id of the heading rather than the current heading name. One advantage of these types of references is, that you are not relying on the plain text of the heading, but rather an internal id. Unlike the id, the heading might change during the development of this Wiki and as a result all links to this heading will break. To create an heading with id UsingIDs for this section:

Invisible span element in front of the visible heading text
internal link to id UsingIDs
internal link to heading Heading_IDs

== <span id="UsingIDs"></span> Heading IDs ==
[[#UsingIDs|internal link to id UsingIDs]]
[[#Heading_IDs|internal link to heading Heading_IDs]]