Copy-edit Params section
authoralmikes@aol.com
Sun, 21 Dec 2014 01:35:52 +0000
changeset 531 5628b472ab0d
parent 530 9d1b7bddb6d2
child 532 8b7a9c032722
Copy-edit Params section
LuaLibraries.wiki
--- a/LuaLibraries.wiki	Sun Dec 21 01:30:24 2014 +0000
+++ b/LuaLibraries.wiki	Sun Dec 21 01:35:52 2014 +0000
@@ -323,13 +323,12 @@
 The Params library is a small library introduced in 0.9.21. It provides a function to parse the parameter string `ScriptParam` and it is intended to simplify using this string.
 
 This library requires the parameter string to be in a certain format. It must be a comma-seperated list of kev-value pairs in the `key=value` format. Examples:
-{{{
-speed=1
-health=100, ammo=5
-param1=hello, param2=whatever, param3=5325.4
-}}}
 
-Using this library is by no means neccessary.
+<code>speed=1</code>
+<code>health=100, ammo=5</code>
+<code>param1=hello, param2=whatever, param3=5325.4</code>
+
+Using this library is by no means neccessary, you could use practically whatever syntax you wish if you write your own code for parsing.
 
 === `parseParams()` ===
 Parses `ScriptParam` and writes the result into the global table `params`. The table will follow the `key=value` pattern. Both keys and pairs are stored as string.
@@ -345,8 +344,6 @@
 
 If the key-value pair `myparam1=hello` is present, this script writes “Hello World!” in the console. All these inputs would trigger the event:
 
-{{{
-myparam1=hello
-myparam2=whatever, myparam1=hello
-g=4, f=56, m=56, myparam1=hello
-}}}
\ No newline at end of file
+<code>myparam1=hello</code>
+<code>myparam2=whatever, myparam1=hello</code>
+<code>g=4, f=56, m=56, myparam1=hello</code>
\ No newline at end of file