Difference between revisions of "Template talk:LSL Function/Head"
Jump to navigation
Jump to search
m |
m |
||
Line 4: | Line 4: | ||
p_desc appears multiple times when variable p_name has the same value | p_desc appears multiple times when variable p_name has the same value | ||
== for example == | == for example == | ||
Line 74: | Line 73: | ||
|func_footer | |func_footer | ||
}} | }} | ||
== For example, it occurs on this page == | == For example, it occurs on this page == | ||
[[:Category:LSL LinksetData|Linkset Persistent Store]] | [[:Category:LSL LinksetData|Linkset Persistent Store]] | ||
---- | ---- | ||
[[User:Misaki Vanilla|Misaki Vanilla]] ([[User talk:Misaki Vanilla|talk]]) 12:33, 9 October 2023 (PDT) | [[User:Misaki Vanilla|Misaki Vanilla]] ([[User talk:Misaki Vanilla|talk]]) 12:33, 9 October 2023 (PDT) |
Latest revision as of 12:39, 9 October 2023
Bug with same value of p_name within one page
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.
testB
Function: testB( integer link, string test );0.0 | Forced Delay |
10.0 | Energy |
TestB description
• integer | link | – | linknumber | |
• string | test | – | messageA descriptionmessageB description |
if change p_name. its worked
testB
Function: testB( integer link2, string test2 );0.0 | Forced Delay |
10.0 | Energy |
TestB description
• integer | link2 | – | linknumber | |
• string | test2 | – | messageB description |
For example, it occurs on this page
Misaki Vanilla (talk) 12:33, 9 October 2023 (PDT)