Difference between revisions of "Template talk:LSL Function/Head"

From Second Life Wiki
Jump to navigation Jump to search
m
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Bug with same value of p_name within one page ==
When write a function using Head Template multiple times in 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
p_desc appears multiple times when variable p_name has the same value


 
== for example ==
for example




Line 18: Line 19:
string test : messageB description
string test : messageB description


----
== A problem will occur if set this when you want to write ==
 
A problem will occur if set this when you want to write


Function 1
Function 1
Line 33: Line 32:
|p2_type=string|p2_name=test|p2_desc=messageB description
|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. ==
 


As a result of this, the description of Function 2 test variable is displayed twice.
{{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
}}


== if change p_name. its worked ==


Function 1 testA(string test)


string test : messageA description
{{LSL Function/Head
|func_sleep=0.0|func_energy=10.0
|func=[[testA]]
|func_desc=TestA description
|p1_type=string|p1_name=test1|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=link2|p1_desc=linknumber
|p2_type=string|p2_name=test2|p2_desc=messageB description
|return_type=|
|func_footer
}}


== For example, it occurs on this page ==


Function 2 testB(integer link, string test)
[[:Category:LSL LinksetData|Linkset Persistent Store]]


integer link: link number


string test : messageA description messageB description


----
----
[[User:Misaki Vanilla|Misaki Vanilla]] ([[User talk:Misaki Vanilla|talk]]) 12:04, 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.

testA

Function: testA( string test );

TestA description

• string test messageA description
All Issues ~ Search JIRA for related Bugs

testB

Function: testB( integer link, string test );

TestB description

• integer link linknumber
• string test messageA descriptionmessageB description
All Issues ~ Search JIRA for related Bugs

if change p_name. its worked

testA

Function: testA( string test1 );

TestA description

• string test1 messageA description
All Issues ~ Search JIRA for related Bugs

testB

Function: testB( integer link2, string test2 );

TestB description

• integer link2 linknumber
• string test2 messageB description
All Issues ~ Search JIRA for related Bugs

For example, it occurs on this page

Linkset Persistent Store



Misaki Vanilla (talk) 12:33, 9 October 2023 (PDT)