Unofficial LSL Reference

[[wiki:macros]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:macros [2015-09-22 19:19 SLT]
sei remove $code again: nested keywords don't work
wiki:macros [2019-05-10 08:30 SLT] (current)
sei Change function categories to admit 2nd param
Line 2: Line 2:
 ===== Macro Reference ===== ===== Macro Reference =====
 See https://​www.dokuwiki.org/​plugin:​macros for reference. See https://​www.dokuwiki.org/​plugin:​macros for reference.
-{{$nav=^ [[/Start]] ^ [[/​Functions/​]] ^ [[/​Events/​]] ^ [[/​Constants/​]] ^ [[/Types/]] ^ [[/​Articles/​]] ^$}}+{{$nav=^ [[/Start]] ^ [[/​Functions/​]] ^ [[/​Events/​]] ^ [[/​Constants/​]] ^ [[/Types/]] ^ [[/Language/]] ^ [[/​Articles/​]] ^$}}
 {{$globals=//​globals//​$}}{{##​ word "​globals"​ when refered to the globals declarations##​}} {{$globals=//​globals//​$}}{{##​ word "​globals"​ when refered to the globals declarations##​}}
 {{$ct=<​html><​kbd></​html>​**@0**<​html></​kbd></​html>​$}}{{##​ constant ##}} {{$ct=<​html><​kbd></​html>​**@0**<​html></​kbd></​html>​$}}{{##​ constant ##}}
Line 8: Line 8:
 {{$lct=$??​[@1|<​html><​kbd></​html>​**[[/​constants/​@0`|@1`]`]**<​html></​kbd></​html>​|<​html><​kbd></​html>​**[[/​constants/​@0`]`]**<​html></​kbd></​html>​]$}}{{##​ constant with link ##}} {{$lct=$??​[@1|<​html><​kbd></​html>​**[[/​constants/​@0`|@1`]`]**<​html></​kbd></​html>​|<​html><​kbd></​html>​**[[/​constants/​@0`]`]**<​html></​kbd></​html>​]$}}{{##​ constant with link ##}}
 {{$fn=<​html><​kbd></​html>​**@0**<​html></​kbd></​html>​$}}{{##​ function ##}} {{$fn=<​html><​kbd></​html>​**@0**<​html></​kbd></​html>​$}}{{##​ function ##}}
-{{$lfn=$??​[@1|[[/​functions/​@0`|<​html><​kbd></​html>​@1<​html></​kbd></​html>​`]`]|<​html><​kbd></​html>​**[[/​functions/​@0`]`]**<​html></​kbd></​html>​]$}}{{## function with link ##}}+{{$lfn=$??​[@1|[[/​functions/​@0`|@1`]`]|''​**[[/​functions/​@0`]`]**''​]$}}{{## function with link ##}}
 {{$ev=//​@0//​$}}{{##​ event ##}} {{$ev=//​@0//​$}}{{##​ event ##}}
 {{##​$lev=//​[[/​events/​@0]]//​$##​}}{{##​ event with link ##}} {{##​$lev=//​[[/​events/​@0]]//​$##​}}{{##​ event with link ##}}
Line 15: Line 15:
 {{$lty=<​html><​kbd></​html>​**[[/​types/​@0]]**<​html></​kbd></​html>​$}}{{##​ type with link ##}} {{$lty=<​html><​kbd></​html>​**[[/​types/​@0]]**<​html></​kbd></​html>​$}}{{##​ type with link ##}}
 {{$kw=''​**@0**''​$}}{{##​ keyword ##}} {{$kw=''​**@0**''​$}}{{##​ keyword ##}}
-{{$lkw=''​**[[/​keywords/​@0]]**''​$}}{{##​ keyword with link ##}}+{{$lkw=''​**[[/​language/​@0]]**''​$}}{{##​ keyword ​with link ##}} 
 +{{$lla=[[/​language/​@0]]$}} 
 +{{$cc=**@0**$}}{{##​ constant category ##}} 
 +{{$lcc=[[/​constants/​@0/​]]$}}{{##​ constant category with link ##}} 
 +{{$fc=**@0**$}}{{##​ function category ##}} 
 +{{$lfc=$??​[@1|[[/​functions/​@0`|@1`]`]|//​[[/​functions/​@0`]`]//​]$}}{{##​ function category with link ##}} 
 +{{$ec=**@0**$}}{{##​ event category ##}} 
 +{{$lec=[[/​events/​@0/​]]$}}{{##​ event category ​with link ##}}
 {{$op=''​**@0**''​$}}{{##​ operator ##}} {{$op=''​**@0**''​$}}{{##​ operator ##}}
 {{$art=@0$}}{{##​ article ##}} {{$art=@0$}}{{##​ article ##}}
 {{$lart=$??​[@1|[[/​articles/​@0`|@1`]`]|[[/​articles/​@0`]`]]$}}{{##​ article with link ##}} {{$lart=$??​[@1|[[/​articles/​@0`|@1`]`]|[[/​articles/​@0`]`]]$}}{{##​ article with link ##}}
-{{$prm=''​**@0**''​$}}{{##​ parameter citation within function ##}} +{{$prm=''​@0''​$}}{{##​ parameter citation within function ##}} 
-{{$pinf=**Infinity**$}} {{$inf=$pinf$}} {{$minf=**-Infinity**$}} {{$nan=**NaN**$}} {{$econst=**e**$}}+{{$pinf=**Infinity**$}} {{$inf=$pinf$}} {{$minf=**-Infinity**$}} {{$nan=<​html><​b><​abbr title="​NaN stands for Not a Number. It's a special value that floats can take, returned as the result of certain invalid operations.">​NaN</​abbr></​b></​html>​$}} {{$econst=**e**$}} 
 +{{$err=<color maroon>**@0**</​color>​$}}{{## error message ##}}
 {{$delay=Sleeps the script for @0 seconds.$}} {{$delay=Sleeps the script for @0 seconds.$}}
 {{$colorparam=A LSL color $lty[vector] (3 comma-separated RGB values in the range 0.0 to 1.0, between angle brackets)$}} {{$colorparam=A LSL color $lty[vector] (3 comma-separated RGB values in the range 0.0 to 1.0, between angle brackets)$}}
 {{$faceparam=An $lty[integer] value defining the face of the prim to be affected. $lct[ALL_SIDES] affects all faces.$}} {{$faceparam=An $lty[integer] value defining the face of the prim to be affected. $lct[ALL_SIDES] affects all faces.$}}
 {{$faceparamread=An $lty[integer] value defining the face of the prim to read from.$}} {{$faceparamread=An $lty[integer] value defining the face of the prim to read from.$}}
 +{{$Mono=<​html><​abbr title="​Mono is the name of the modern virtual machine used to execute scripts.&#​10;​It is active when the Mono checkbox of the script is checked.">​Mono</​abbr></​html>​$}}
 +{{$LSO=<​html><​abbr title="​LSO (Linden Script Object) is the legacy virtual machine used to execute scripts.&#​10;​It'​s the one that is in effect when the Mono checkbox of the script is not checked">​LSO</​abbr></​html>​$}}
 +{{$JIRA=**[[https://​jira.secondlife.com/​browse/​@0|@0]]**$}}
 +{{$TODO=<​html><​!--TODO:​ @0--></​html>​$}}
 {{$linkparam=An $lty[integer] value defining the link number of the prim to be read. {{$linkparam=An $lty[integer] value defining the link number of the prim to be read.