Difference between revisions of "Template talk:LSL Function/Head"
m |
m |
||
Line 38: | Line 38: | ||
Function | {{LSL Function/Head | ||
|func_sleep=0.0|func_energy=10.0 | |||
|func=[[testA]] | |||
|func_desc=TestA description | |||
|p1_type=string|p1_name=test|p1_desc=messageA description | |||
|return_type=| | |||
|func_footer | |||
}} | |||
{{LSL Function/Head | |||
|func_sleep=0.0|func_energy=10.0 | |||
|func=[[testB]] | |||
|func_desc=TestB description | |||
|p1_type=integer|p1_name=link|p1_desc=linknumber | |||
|p2_type=string|p2_name=test|p2_desc=messageB description | |||
|return_type=| | |||
|func_footer | |||
}} | |||
---- | ---- | ||
Line 56: | Line 64: | ||
---- | ---- | ||
[[User:Misaki Vanilla|Misaki Vanilla]] ([[User talk:Misaki Vanilla|talk]]) 12: | [[User:Misaki Vanilla|Misaki Vanilla]] ([[User talk:Misaki Vanilla|talk]]) 12:24, 9 October 2023 (PDT) |
Revision as of 12:24, 9 October 2023
When write a function using Head Template multiple times in one page
p_desc appears multiple times when variable p_name has the same value
for example
Function 1 testA(string test)
string test : messageA description
Function 2 testB(integer link, string test)
integer link: link number
string test : messageB description
A problem will occur if set this when you want to write
Function 1
|p1_type=string|p1_name=test|p1_desc=messageA description
Function 2
|p1_type=integer|p1_name=link|p1_desc=linknumber
|p2_type=string|p2_name=test|p2_desc=messageB description
As a result of this, the description of Function 2 test variable is displayed twice.
testA
Function: testA( string test );? | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
TestA description
• string | test | – | messageA description |
testB
Function: testB( integer link, string test );? | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
TestB description
• integer | link | – | linknumber | |
• string | test | – | messageA descriptionmessageB description |
For example, it occurs on this page
Misaki Vanilla (talk) 12:24, 9 October 2023 (PDT)