Difference between revisions of "Template:LSL Function/KeyValue"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 5: Line 5:
{{#vardefine:p_{{{2|}}}<noinclude>{{{2}}}</noinclude>_desc|The value for the key-value pair.  Maximum 2047 characters, or 4095 if using Mono.}}
{{#vardefine:p_{{{2|}}}<noinclude>{{{2}}}</noinclude>_desc|The value for the key-value pair.  Maximum 2047 characters, or 4095 if using Mono.}}
}}
}}
<includeonly>
{{#ifeq:{{#var:article-type}}|event||{{#if:{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}||{{#vardefine:hidden-text|{{#var:hidden-text}}
{{LSLC|Dataserver{{#var:lang}}}}{{#if:{{{mode|}}}|{{LSLC|Dataserver/{{{mode}}}{{#var:lang}}}}}}
}}}}}}
</includeonly>


{{#vardefine:header_footnote_last|{{#var:header_footnote_last}}{{PBR}}
{{#vardefine:header_footnote_last|{{#var:header_footnote_last}}{{PBR}}
The [[dataserver]] callback parameters are:
The [[dataserver]] callback parameters are:
* A key containing the {{LSLGC|Key/handle|handle}} returned from [[{{#var:name}}]]
* A key containing the {{LSLGC|Key/handle|handle}} returned from [[{{#var:name}}]]
* A string containing a comma-delimited list.
* A string containing a comma-delimited list. <code>llDumpList2String([ integer&nbsp;success, string&nbsp;value&nbsp;OR&nbsp;integer&nbsp;error],",")</code>
{{#if:{{{ds1|}}}|**{{{ds1|}}}|**The first item is a boolean specifying if the transaction succeeded (1) or not (0).}}
{{#if:{{{ds1|}}}|**{{{ds1|}}}|**The first item is a boolean specifying if the transaction succeeded (1) or not (0).}}
{{#if:{{{ds2|}}}|**{{{ds2|}}}
{{#if:{{{ds2|}}}|**{{{ds2|}}}|**The second item is a string with a status/error message if it failed or the value if the transaction succeeded.}}
{{#if:{{{ds3|}}}|**{{{ds3|}}}
{{#if:{{{ds3|}}}|**{{{ds3|}}}
{{#if:{{{ds4|}}}|**{{{ds4|}}}}}}}}}
{{#if:{{{ds4|}}}|**{{{ds4|}}}}}}}
}}
}}


{{#if:{{{nocaveats|}}}||{{#if:{{{nogroup|}}}|
{{#if:{{{nocaveats|}}}||{{#if:{{{nogroup|}}}|
{{#vardefine:caveats|{{#var:caveats}}}}
{{#vardefine:caveats|{{#var:caveats}}}}
*
}}}}
}}}}


Line 36: Line 43:
|-
|-
{{VarPair|header_footnote_last}}
{{VarPair|header_footnote_last}}
|-
{{VarPair|caveats}}
|-
|-
{{VarPair|notes}}
{{VarPair|notes}}
|}
|}
</noinclude>
</noinclude>

Revision as of 11:59, 9 July 2014

#var value
p_{{{1}}}_desc The key for the key-value pair
p_{{{2}}}_desc The value for the key-value pair. Maximum 2047 characters, or 4095 if using Mono.
header_footnote_last

The dataserver callback parameters are:

  • A key containing the handle returned from [[]]
  • A string containing a comma-delimited list. llDumpList2String([ integer success, string value OR integer error],",")
    • The first item is a boolean specifying if the transaction succeeded (1) or not (0).
    • The second item is a string with a status/error message if it failed or the value if the transaction succeeded.
caveats
notes