TOP Support > wiki > Niklas | Discussion



Introduction


This wiki page summarizes the Niklas syntax that is used on forums, wiki pages and blog entries on TaOPis.



Text Formatting


One can use some of the following tags to format text to be published on the forum:

A justified paragraph - syntax
[j]Paragraph content[/j]

Heading 1

- syntax
[h1]Heading 1[/h1]

Heading 2

- syntax
[h2]Heading 2[/h2]

Heading 3

- syntax
[h3]Heading 3[/h3]



Images


- syntax
[img=http://www.tiaktiv.hr/forum/templates/subSilver/images/logo_phpBB.gif]


If you like you can edit the size of the image:

- syntax
[img=http://www.tiaktiv.hr/forum/templates/subSilver/images/logo_phpBB.gif width=50% height=100]

As you see you can use relative (%) or absolute sizes for both width and height.



Bold text Syntax:
[b]Bold text[/b]

Italic text Syntax:
[i]Italic text[/i]

Centered text
Syntax:
[center]Italic text[/center]

Program code
Syntax:
[code]Program code[/code]

quote

Quoted text
Syntax:
[quote]Quoted text[/quote]


Foo Bar wrote:

Named quoted text
Syntax:
[quote=Foo Bar]Named quoted text[/quote]


Links


Links can be used in the following way:
link Syntax:
[url]http://www.somewhere.org[/url]

Named links, e. g. TiAktiv - syntax
[link=http://www.tiaktiv.hr>TiAktiv]



Internal links (to another page on this projects/organizations wiki), e. g. Formatting forum messages - syntax

[link=Forum syntax>Formatting forum messages]



Internal links to wikis of other projects, e. g. TOP Administration wiki frontpage

[link=TOP Administration:FrontPage - TOP Administration>TOP Administration wiki frontpage]



Internal links to discussions on the forum A thread on wiki syntax - syntax

[forum_link=Wiki syntax>A thread on wiki syntax]



YouTube Movies


You tube movies can be included in the following way:
Syntax:
[tube]o9698TqtY4A[/tube]

Where o9698TqtY4A is the code of the YouTube movie (one can get it from the URL on which the movie resides e. g. http://www.youtube.com/watch?v=o9698TqtY4A).



Tables


To create a table use the following syntax:
row 1 column 1row 1 column 2row 1 column 3
row 2 column 1row 2 column 2row 2 column 3
row 3 column 1row 3 column 2row 3 column 3

Syntax:
[table]
row 1 column 1 && row 1 column 2 && row 1 column 3 ##
row 2 column 1 && row 2 column 2 && row 2 column 3 ##
row 3 column 1 && row 3 column 2 && row 3 column 3
[/table]


Lists


To create unordered lists (up to three levels use the '*' character:
Syntax:
 * one
 ** one one
 ** one two
 *** one two one
 *** one two two
 *** one two three
 * two
 ** two one
 * three

For ordered lists use the '1' character:
  1. one
    1. one one
    2. one two
      1. one two one
      2. one two two
      3. one two three
  2. two
    1. two one
  3. three
Syntax:
 1 one
 11 one one
 11 one two
 111 one two one
 111 one two two
 111 one two three
 1 two
 11 two one
 1 three


References and citation


To use references and citations use the following syntax:

  1. Luhmann, N.: Soziale systeme, 1984.

To use [cite references2009 references] and citations use the following syntax:

[ref references2009] Luhmann, N.: Soziale systeme, 1984.


Outline


To create an outline of your post or wiki page


[outline]


Wiki page inclusion


To include the content of another wiki page use:
[include WikiPageTitle]

or to include a page from another project or organization
[include ProjectName:WikiPageTitle]

Note that pages included from other projects or organizations are rendered locally, which means that links will point to the current project/organization. You should also have in mind that queries from included pages (local or external) are not rendered at all.

Smileys / Emoticons


The following smileys / emoticons are available on the system:
:) Syntax: :) or :-)
:( Syntax: :(
;) Syntax: ;)
:P Syntax: :P
:D Syntax: :D
%| Syntax: %|
8) Syntax: 8)
:? Syntax: :?
:bigeek: Syntax: :bigeek:
:cry: Syntax: :cry:
:dead: Syntax: :dead:
:mad: Syntax: :mad:
:roll: Syntax: :roll:
:upset: Syntax: :upset:
:sm: Syntax: :sm:
:war: Syntax: :war:
:2thumbs: Syntax: :2thumbs:
:zzz1: Syntax: :zzz1:
:jumping: Syntax: :jumping:
:afro: Syntax: :afro:
:amen: Syntax: :amen:
:angel1: Syntax: :angel1:
:angeleye: Syntax: :angeleye:
:angel: Syntax: :angel:
:angry: Syntax: :angry:
:azdaja: Syntax: :azdaja:
:bananallama: Syntax: :bananallama:
:bara: Syntax: :bara:
:bau: Syntax: :bau:
:beerchug: Syntax: :beerchug:
:bicedobro: Syntax: :bicedobro:
:biggrin: Syntax: :biggrin:
:blabla: Syntax: :blabla:
:blush: Syntax: :blush:
:bonk: Syntax: :bonk:
:booty: Syntax: :booty:
:braca: Syntax :braca:
:buum: Syntax: :buum:
:ceka: Syntax: :ceka:
:cheer: Syntax: :cheer:
:cice: Syntax: :cice:
:clint: Syntax: :clint:
:confused: Syntax: :confused:
:mali: Syntax: :mali:
:marrige: Syntax: :marrige:
:daz: Syntax: :daz:
:tekma: Syntax: :tekma:
:dog: Syntax: :dog:
:downtown: Syntax: :downtown:
:driver: Syntax: :driver:
:duckie: Syntax: :duckie:
:dvoboj: Syntax: :dvoboj:
:sleeping: Syntax: :sleeping:
:eek: Syntax: :eek:
:evil1: Syntax: :evil1:
:evil2: Syntax: :evil2:
:guitar: Syntax: :guitar:
:bow: Syntax: :bow:
:headbang: Syntax: :headbang:
:hebemu: Syntax: :hebemu:
:hekla: Syntax: :hekla:
:horor: Syntax: :horor:
:anal: Syntax: :anal:
:pall: Syntax: :pall:
:wc: Syntax: :wc:
:weed: Syntax: :weed:
:jerk: Syntax: :jerk:
:jumping2: Syntax: :jumping2:
:kada: Syntax: :kada:
:kava: Syntax: :kava:
:kiss: Syntax: :kiss:
:klap: Syntax: :klap:
:klopa: Syntax: :klopa:
:kukuc: Syntax: :kukuc:
:kusch: Syntax: :kusch:
:lol: Syntax: :lol:
:love: Syntax: :love:
:lurk: Syntax: :lurk:
:mad: Syntax: :mad:
:mama: Syntax: :mama:
:mar: Syntax: :mar:
:cow: Syntax: :cow:
:mirko: Syntax: :mirko:
:misli: Syntax: :misli:
:moli: Syntax: :moli:
:ne_zna: Syntax: :ne_zna:
:ninja: Syntax: :ninja:
:nono: Syntax: :nono:
:off: Syntax: :off:
:old: Syntax: :old:
:osama: Syntax: :osama:
:wry: Syntax: :wry:
:bozic: Syntax: :bozic:
:peglaona: Syntax: :peglaona:
:pila: Syntax: :pila:
:pljesko: Syntax: :pljesko:
:popcorn: Syntax: :popcorn:
:pop: Syntax: :pop:
:prd: Syntax: :prd:
:puke: Syntax: :puke:
:redface: Syntax: :redface:
:riga: Syntax: :riga:
:rock: Syntax: :rock:
:birthday: Syntax: :birthday:
:rofl: Syntax: :rofl:
:romeo: Syntax: :romeo:
:sex: Syntax: :sex:
:shakecan: Syntax: :shakecan:
:shhh: Syntax: :shhh:
:slin: Syntax: :slin:
:smash: Syntax: :smash:
:zastava: Syntax: :zastava:
:sok: Syntax: :sok:
:strika: Syntax: :strika:
:paksn: Syntax: :paksn:
:thumbsdown: Syntax: :thumbsdown:
:thumbsup: Syntax: :thumbsup:
:traca: Syntax: :traca:
:trio: Syntax: :trio:
:troll: Syntax: :troll:
:tuctuc: Syntax: :tuctuc:
:tulum: Syntax: :tulum:
:vidiga: Syntax: :vidiga:
:tuctuctuc: Syntax: :tuctuctuc:
:whatever: Syntax: :whatever:
:world_domination: Syntax: :world_domination:
:zivili: Syntax: :zivili:
:zjev: Syntax: :zjev:
:zubeki: Syntax: :zubeki:
:zubo: Syntax: :zubo:
:zvrko: Syntax: :zvrko:
:zzzz: Syntax: :zzzz:
:bic: Syntax: :bic:


Dynamic queries


Dynamic queries allow you to dynamically generate new data from metainformation stored in the semantic wiki's knowledge base. The TaOPis system uses frame logic and especially the FLORA-2 syntax wich is build in to Niklas to achieve this

The syntax for dynamic queries is as follows:

[query the_query. ]
{[header] the_header [/header]}
formatting
[/query]


Whereby the_query is a query in FLORA-2 syntax, the_header is an optional header that remains same for every result obtained from the query and is often used to generate table headers. The formatting can be any formatted text (as shown above) whereby there can be variables in the text (strings starting with a "?"). This formatting will be added to the wiki page as much times as results come out from the query whereby every variable will be exchanged with the concrete result obtained by the query.

Examples



A query that returns the surnames of project/organization members:

[query ?_:member[ surname->?sur ]. ]
Members surname: ?sur.
[/query]


A query that returns tha names and surnames of project/organization members:

[query ?_:member[ name -> ?na, surname -> ?s ]. ]
[b]Members name is ?na, and surname ?s.[/b]
[/query]


A query that returns tha names and surnames of project/organization members with corresponding birth dates:

[query ?_:member[ name -> ?n, surname -> ?s, date_of_birth -> ?date ]. ]
?n ?s is born on [b]?date[/b]. :birthday:
[/query]


A query that returns classes with corresponding subclasses:

[query ?subclass :: ?superclass. ]
[header]
[b]SUBCLASS – SUPERCLASS[/b] 
[/header]
[i]?subclass - ?superclass[/i]
[/query]


A query that returns all names and surnames of users that have been authors on the projects/organizations forum:

[query ?_per[ name->?nam, surname -> ?sur  ], ?_:forum_post[ author -> ?_per ]. ]
[header]
[center]The following users have sent tagged messages to the forum[/center]
[/header]
[center]?nam ?sur[/center]
[/query]


A query that returns names and surnames of authors and the corresponding forum message title:

[query ?_:forum_post[ title->?tit,  author->?_a ], ?_a[ name->?name, surname -> ?last_name ]. ]
?name ?last_name has sent the message entitled ?tit.
[/query]


A query that returns forum message titles with a link on the actual message:

[query ?_:forum_post[ title -> ?title, url -> ?address ]. ]
[link=?address>?title]
[/query]


A query that returns all defined classes with corresponding attributes in a table:

[query ?_ : ?klass[ ?attribute->?_ ]. ]
[header]
[table]
[b]Class[/b] && [b]Attribute[/b] ##
[/header]
?klass && ?attribute ##
[/table]
[/query]


Sorting output



To sort the output use the built-in sort/2 predicate:

sort(?variable,asc) – ascending
sort(?variable,desc) – descending


A query that returns all defined classes with corresponding attributes sorted ascending by class name:

[query ?_ : ?klass[ ?attribute->?_ ],sort(?klass,asc). ]
[header]
[table]
[b]Class[/b] && [b]Attribute[/b] ##
[/header]
?klass && ?attribute ##
[/table]
[/query]


What links here (note that "Niklas" is the title of the current page):

[query ?_[ ?_ -> ?_str, title -> ?title, url -> ?url ],?_str[ title -> 'Niklas' ],sort(?title,asc). ]
[header]What links here?[/header]
[link=?url>?title]
[/query]



Who edited this page?

[query ?_[ author -> ?_aut, title -> 'Niklas' ],  ?_aut[ name -> ?name, surname -> ?surname ],sort(?surname,asc),sort(?name,asc). ]
[header]This page was edited by:[/header]
?name ?surname
[/query]



  Attribute     Value  

TOP moderators on this project

User
Count
Status
X Y (2)
Markus Schatten (2)
No Filter (2)
X Y (1)
X Y (1)
X Y (1)
X Y (1)
X Y (1)
X Y (1)
X Y (1)
X Y (1)
X Y (1)
X Y (1)
X Y (1)

Most active projects/organizations last week

Most visited projects/organizations last week