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

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "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(st...")
 
m
Line 24: Line 24:
Function 1
Function 1


p1_name test
|p1_type=string|p1_name=test|p1_desc=messageA description
 
p1_desc messageA description




Function 2
Function 2


p1_name link
|p1_type=integer|p1_name=link|p1_desc=linknumber
 
p1_desc linknumber
 
p2_name test


p2_desc messageB description
|p2_type=string|p2_name=test|p2_desc=messageB description


----
----
Line 56: Line 50:


----
----
[[User:Misaki Vanilla|Misaki Vanilla]] ([[User talk:Misaki Vanilla|talk]]) 11:35, 9 October 2023 (PDT)
[[User:Misaki Vanilla|Misaki Vanilla]] ([[User talk:Misaki Vanilla|talk]]) 12:04, 9 October 2023 (PDT)

Revision as of 12:04, 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.


Function 1 testA(string test)

string test : messageA description


Function 2 testB(integer link, string test)

integer link: link number

string test : messageA description messageB description


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