Difference between revisions of "Template:LSL Function/zh-Hant"
Jump to navigation
Jump to search
Chaser Zaks (talk | contribs) |
|||
(8 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Multi-lang|category=LSL|2=/ | {{Multi-lang|category=LSL|2=/zh-Hant}}{{LSL Header{{#var:lang}}}} __NOTOC__ <noinclude> | ||
點選 [[{{#var:langbase}}/docs{{#var:lang}}]] 來查閱參考文件。 | |||
</noinclude><includeonly>{{#if:{{#var:sort}}||{{#if:{{{sort|}}}|{{#vardefine:sort|{{{sort|}}}}}|{{#if:{{LSL_Sort}}}}}}}}<div id="sort" style="display:none">{{DEFAULTSORT:{{#var:sort}}}}{{#var:sort}}</div>{{#if:{{#var:nofixname}}||{{#if:{{#pos:{{lc:{{FULLPAGENAMEE}}}}|{{lc:{{{func}}}}}}}|<div id="RealTitleBanner" style="display:none"><span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{func}}}</span></div>}}}}{{#if: | </noinclude><includeonly>{{#if:{{#var:sort}}||{{#if:{{{sort|}}}|{{#vardefine:sort|{{{sort|}}}}}|{{#if:{{LSL_Sort}}}}}}}}<div id="sort" style="display:none">{{DEFAULTSORT:{{#var:sort}}}}{{#var:sort}}</div>{{#if:{{#var:nofixname}}||{{#if:{{#pos:{{lc:{{FULLPAGENAMEE}}}}|{{lc:{{{func}}}}}}}|<div id="RealTitleBanner" style="display:none"><span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{func}}}</span></div>}}}}{{#if: | ||
{{#vardefine:article_type| | {{#vardefine:article_type|函式}} | ||
{{#vardefine:name|{{{func|}}}}} | |||
{{#if:{{{func_id|}}}|{{#vardefine:func_id|{{{func_id|}}}}}}} | {{#if:{{{func_id|}}}|{{#vardefine:func_id|{{{func_id|}}}}}}} | ||
{{#vardefine:mode|{{#var:mode}}{{{mode|}}}}} | {{#vardefine:mode|{{#var:mode}}{{{mode|}}}}} | ||
{{#vardefine:self|{{#var:self}}{{{self|}}}}} | {{#vardefine:self|{{#var:self}}{{{self|}}}}} | ||
Line 18: | Line 21: | ||
|!}}|}} | |!}}|}} | ||
{{{{#if:{{{deprecated|}}}|LSL_Generic/deprecated{{#var:lang}}|!}}|{{{deprecated|}}}|}} | {{{{#if:{{{deprecated|}}}|LSL_Generic/deprecated{{#var:lang}}|!}}|{{{deprecated|}}}|}} | ||
{{{inject-2|}}} | |||
{{#vardefine:p_{{{p1_name|}}}_desc|{{#var:p_{{{p1_name|}}}_desc}}{{{p1_desc|}}}}} | {{#vardefine:p_{{{p1_name|}}}_desc|{{#var:p_{{{p1_name|}}}_desc}}{{{p1_desc|}}}}} | ||
Line 44: | Line 49: | ||
{{#vardefine:p_{{{p12_name|}}}_hover|{{#var:p_{{{p12_name|}}}_hover}}{{{p12_hover|}}}}} | {{#vardefine:p_{{{p12_name|}}}_hover|{{#var:p_{{{p12_name|}}}_hover}}{{{p12_hover|}}}}} | ||
{{{inject- | {{{inject-3|}}} | ||
{{#if:{{#var:header_desc}}{{{func_desc|}}}| | {{#if:{{#var:header_desc}}{{{func_desc|}}}| | ||
Line 76: | Line 81: | ||
{{{bugs|}}}}} | {{{bugs|}}}}} | ||
{{#vardefine:caveats|{{#ifexpr:{{{func_sleep|0.0}}}> 0.0|* <span id="caveats-sleep"></span> | {{#vardefine:caveats|{{#ifexpr:{{{func_sleep|0.0}}}> 0.0|* <span id="caveats-sleep"></span> 這函式會導致script延遲 {{{func_sleep|}}} 秒。 {{{func_sleep_note|}}}|{{#if:{{{func_sleep_note|}}}|* <span id="caveats-sleep"></span> {{{func_sleep_note|}}}}}}}{{#if:{{#var:caveats}}| | ||
{{#var:caveats}}}}{{#if:{{{caveats|}}}| | {{#var:caveats}}}}{{#if:{{{caveats|}}}| | ||
{{{caveats|}}}}} | {{{caveats|}}}}}}} | ||
{{#if:{{#pos:{{#var:moded}}|u}}||{{# | |||
{{#if:{{#pos:{{#var:moded}}|u}}||{{#vardefine:caveats|{{LSL_Generic/Caveats}}}}}} | |||
{{#if:{{#var:examples}}{{{examples|}}}| | {{#if:{{#var:examples}}{{{examples|}}}| | ||
Line 169: | Line 172: | ||
}}{{#var:header}}{{#if:{{#var:func_id}}{{#var:mode}}{{#var:moded}}|| | }}{{#var:header}}{{#if:{{#var:func_id}}{{#var:mode}}{{#var:moded}}|| | ||
<div id="box" style="background:red;"> | <div id="box" style="background:red;"> | ||
''''func_id' | '''Don't delete the 'func_id'''' | ||
<div style="padding: 0.5em;background:#ffffff;"> | <div style="padding: 0.5em;background:#ffffff;"> | ||
''func_id | ''func_id is a bit of technical information that should not be removed as it is pertinent to anyone writing an LSL compiler or decompiler, so you go and revert the page or set the value properly right now :P.''</div></div>{{#if:{{#var:self}}|| [[Category:LSL FixMe]] }} }}{{#if:{{#if:{{{return_type|}}}|{{#var:return_text}}}}{{{func_desc|}}}||<div id="box" style="background:yellow;"> | ||
''''func_desc' | '''Either 'func_desc' or 'return_type' & 'return_text' must be defined''' | ||
<div style="padding: 0.5em;background:#ffffff;"> | <div style="padding: 0.5em;background:#ffffff;"> | ||
''(' | ''(Please use 'return_text' & 'return_type' or 'func_desc' to summarize the functions actions.)''</div></div>{{#if:{{#var:self}}|| [[Category:LSL FixMe]] }} }} | ||
{{RightToc|font-size:80%}} | {{RightToc|font-size:80%}} | ||
<div id="box"><h2 style="display:none"> | <div id="box"><h2 style="display:none"> 概要 </h2>{{#ifexpr:{{#var:BugCounter|0}} > 0|<div class="mw-headline" style="float:right; margin: 5px 0.5em 0 0.5em;">{{LSL_Bug_Icon}}</div>}}<span id="{{anchorencode:Description}}" style="display:none"></span><span id="{{anchorencode:Summary}}" class="mw-headline" style="display:block; padding-bottom:0.17em; padding-top:0.5em; background:transparent none repeat scroll 0% 0%; color:#546368; font-family:Arial,Helvetica,Sans-Serif; background-color:#F4F8FB; border-bottom:1px dotted #AAAAAA; font-size:120%; font-weight:bold; margin:0pt; padding:0.2em 0.5em; text-align:left;"> [[:Category:LSL_Functions{{#var:lang}}|函式]]: {{#if:{{{return_type|}}}|[[{{{return_type|}}}{{#var:lang}}|{{{return_type|}}}]]||}} [[{{{func}}}{{#var:lang}}|{{{func}}}]]( {{#if:{{{p1_name|}}}{{{p1_type|}}}| [[{{{p1_type|}}}{{#var:lang}}|{{{p1_type|}}}]] {{LSL Param|{{{p1_name|}}}}}{{#if:{{{p2_name|}}}{{{p2_type|}}}|, [[{{{p2_type|}}}{{#var:lang}}|{{{p2_type|}}}]] {{LSL Param|{{{p2_name|}}}}}{{#if:{{{p3_name|}}}{{{p3_type|}}}|, [[{{{p3_type|}}}{{#var:lang}}|{{{p3_type|}}}]] {{LSL Param|{{{p3_name|}}}}}{{#if:{{{p4_name|}}}{{{p4_type|}}}|, [[{{{p4_type|}}}{{#var:lang}}|{{{p4_type|}}}]] {{LSL Param|{{{p4_name|}}}}}{{#if:{{{p5_name|}}}{{{p5_type|}}}|, [[{{{p5_type|}}}{{#var:lang}}|{{{p5_type|}}}]] {{LSL Param|{{{p5_name|}}}}}{{#if:{{{p6_name|}}}{{{p6_type|}}}|, [[{{{p6_type|}}}{{#var:lang}}|{{{p6_type|}}}]] {{LSL Param|{{{p6_name|}}}}}{{#if:{{{p7_name|}}}{{{p7_type|}}}|, [[{{{p7_type|}}}{{#var:lang}}|{{{p7_type|}}}]] {{LSL Param|{{{p7_name|}}}}}{{#if:{{{p8_name|}}}{{{p8_type|}}}|, [[{{{p8_type|}}}{{#var:lang}}|{{{p8_type|}}}]] {{LSL Param|{{{p8_name|}}}}}{{#if:{{{p9_name|}}}{{{p9_type|}}}|, [[{{{p9_type|}}}{{#var:lang}}|{{{p9_type|}}}]] {{LSL Param|{{{p9_name|}}}}}{{#if:{{{p10_name|}}}{{{p10_type|}}}|, [[{{{p10_type|}}}{{#var:lang}}|{{{p10_type|}}}]] {{LSL Param|{{{p10_name|}}}}}{{#if:{{{p11_name|}}}{{{p11_type|}}}|, [[{{{p11_type|}}}{{#var:lang}}|{{{p11_type|}}}]] {{LSL Param|{{{p11_name|}}}}}{{#if:{{{p12_name|}}}{{{p12_type|}}}|, [[{{{p12_type|}}}{{#var:lang}}|{{{p12_type|}}}]] {{LSL Param|{{{p12_name|}}}}}}}}}}}}}}}}}}}}}}}}}}}}} )<nowiki>;</nowiki></span> | ||
<div style="padding: 0.5em; min-height: {{#if:{{{func_complexity|}}}|6em;|5em;}}">{{#if:{{#pos:{{#var:moded}}|u}}|{{#if:{{#var:floater}}|<div id="box" style="float:right;">{{#var:floater}}</div>}}|<div id="box" style="float:right; margin: 0 0.5em; font-size:90%;"> | <div style="padding: 0.5em; min-height: {{#if:{{{func_complexity|}}}|6em;|5em;}}">{{#if:{{#pos:{{#var:moded}}|u}}|{{#if:{{#var:floater}}|<div id="box" style="float:right;">{{#var:floater}}</div>}}|<div id="box" style="float:right; margin: 0 0.5em; font-size:90%;"> | ||
{{{!}} class="collapsible" | {{{!}} class="collapsible" | ||
Line 182: | Line 185: | ||
{{!}}+ | {{!}}+ | ||
{{!}}- | {{!}}- | ||
{{!}} {{HoverText|{{#var:func_id}}| | {{!}} {{HoverText|{{#var:func_id}}|The function index number.}} | ||
{{!}} [[LSL Function ID{{#var:lang}}| | {{!}} [[LSL Function ID{{#var:lang}}|函式ID]] | ||
{{!}}- | {{!}}- | ||
{{!}} {{HoverText|{{{func_sleep|}}}| | {{!}} {{HoverText|{{{func_sleep|}}}|執行完這函式後會延遲的秒數。}}{{#if:{{{func_sleep_note|}}}|{{HoverLink|#caveats-sleep|3=*|2={{{func_sleep_note|}}}}}}} | ||
{{!}} [[LSL Delay{{#var:lang}}| | {{!}} [[LSL Delay{{#var:lang}}|延遲]] | ||
{{!}}- | {{!}}- | ||
{{#if:{{{func_complexity|}}}| | {{#if:{{{func_complexity|}}}| | ||
{{!}} {{HoverText|{{{func_complexity|}}}| | {{!}} {{HoverText|{{{func_complexity|}}}|The complexity of the function based on the parameters.}} | ||
{{!}} [[LSL Complexity{{#var:lang}}| | {{!}} [[LSL Complexity{{#var:lang}}|Compl.]] | ||
{{!}}-}} | {{!}}-}} | ||
{{!}} {{HoverText|{{{func_energy|}}}| | {{!}} {{HoverText|{{{func_energy|}}}|此函式的能量消耗數。}} | ||
{{!}} [[Energy{{#var:lang}}| | {{!}} [[Energy{{#var:lang}}|能量]] | ||
{{!}}}</div>}} | {{!}}}</div>}} | ||
{{#if:{{#var:header_desc}}|{{#var:header_desc}}{{PBR}}{{#if:{{{return_type|}}}|<br id="bdart"/>}}}}{{#if:{{{return_type|}}}|{{#if:{{#var:return_text}}|{{#var:return_text} | {{#if:{{#var:header_desc}}|{{#var:header_desc}}{{PBR}}{{#if:{{{return_type|}}}|<br id="bdart"/>}}}}{{#if:{{{return_type|}}}|回傳一個{{{return_type|}}}為{{#if:{{#var:return_text}}|{{#var:return_text}}}}。{{PBR}}}} | ||
{{#if:{{{p1_name|}}}{{{p1_type|}}}|{{{!}} | {{#if:{{{p1_name|}}}{{{p1_type|}}}|{{{!}} | ||
{{LSL DefineRow|1={{{p1_type|}}}|2={{{p1_name|}}}|3={{#var:p_{{{p1_name|}}}_desc}}}} | {{LSL DefineRow|1={{{p1_type|}}}|2={{{p1_name|}}}|3={{#var:p_{{{p1_name|}}}_desc}}}} | ||
Line 216: | Line 219: | ||
}}</div> | }}</div> | ||
</div>{{#ifexist:{{#var:newbie}}|<div id="box"> | </div>{{#ifexist:{{#var:newbie}}|<div id="box"> | ||
<h2>[[{{#var:newbie}}| | <h2>[[{{#var:newbie}}|新手筆記]]</h2> | ||
<div style="padding: 0.5em; max-height:10em; overflow-x:visible; overflow-y:auto;"> | <div style="padding: 0.5em; max-height:10em; overflow-x:visible; overflow-y:auto;"> | ||
{{:{{#var:newbie}}}} | {{:{{#var:newbie}}}} | ||
</div><div style="padding:0 0.5em;"> | </div><div style="padding:0 0.5em;"> | ||
繼續閱讀: [[{{#var:newbie}}|Newbie Notes]] | |||
</div></div>}}{{#if:{{#var:spec}}|<div id="box"> | </div></div>}}{{#if:{{#var:spec}}|<div id="box"> | ||
<h2> | <h2>規範</h2> | ||
<div style="padding: 0.5em;"> | <div style="padding: 0.5em;"> | ||
{{#var:spec}} | {{#var:spec}} | ||
Line 229: | Line 232: | ||
{{#if:{{#var:constants}}| | {{#if:{{#var:constants}}| | ||
<div id="box"> | <div id="box"> | ||
<h2> | <h2>限制</h2> | ||
{{#var:constants}} | {{#var:constants}} | ||
</div>}}}}{{#if:{{#var:caveats}}|<div id="box"> | </div>}}}}{{#if:{{#var:caveats}}|<div id="box"> | ||
<h2> | <h2>注意事項</h2> | ||
<div style="padding: 0.5em;"> | <div style="padding: 0.5em;"> | ||
{{#var:caveats}} | {{#var:caveats}} | ||
</div></div>}}{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}{{#simple-examples}}{{#complex-examples}}|<div id="box"> | </div></div>}}{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}{{#simple-examples}}{{#complex-examples}}|<div id="box"> | ||
<h2> | <h2>範例</h2> | ||
<div style="padding: 0.5em;"> | <div style="padding: 0.5em;"> | ||
{{#var:examples}}{{#if:{{#var:simple-examples}}| | {{#var:examples}}{{#if:{{#var:simple-examples}}| | ||
<div style="float:left; min-width:200px; width:45%;"> | <div style="float:left; min-width:200px; width:45%;"> | ||
=== | ===簡單的範例=== | ||
{{{!}} | {{{!}} | ||
{{#var:simple-examples}} | {{#var:simple-examples}} | ||
Line 246: | Line 249: | ||
</div>}}{{#if:{{#var:complex-examples}}| | </div>}}{{#if:{{#var:complex-examples}}| | ||
<div style="float:left;"> | <div style="float:left;"> | ||
=== | ===複雜的範例=== | ||
{{{!}} | {{{!}} | ||
{{#var:complex-examples}} | {{#var:complex-examples}} | ||
Line 252: | Line 255: | ||
</div>}}<div style="clear:left;"></div> | </div>}}<div style="clear:left;"></div> | ||
</div></div>}}{{#if:{{#var:helpers}}|<div id="box"> | </div></div>}}{{#if:{{#var:helpers}}|<div id="box"> | ||
<h2> | <h2>有用的小資訊</h2> | ||
<div style="padding: 0.5em;"> | <div style="padding: 0.5em;"> | ||
{{#var:helpers}} | {{#var:helpers}} | ||
</div></div>}}{{#if:{{#var:notes}}|<div id="box"> | </div></div>}}{{#if:{{#var:notes}}|<div id="box"> | ||
<h2> | <h2>筆記</h2> | ||
<div style="padding: 0.5em;"> | <div style="padding: 0.5em;"> | ||
{{#var:notes}} | {{#var:notes}} | ||
</div></div>}}{{#if:{{#var:also_footer}}{{#var:also_functions}}{{#var:also_events}}{{#var:also_articles}}{{#var:also_header}}{{#var:also_library}}{{#var:also_constants}}|<div id="box"> | </div></div>}}{{#if:{{#var:also_footer}}{{#var:also_functions}}{{#var:also_events}}{{#var:also_articles}}{{#var:also_header}}{{#var:also_library}}{{#var:also_constants}}|<div id="box"> | ||
<h2> | <h2>參照</h2> | ||
<div style="padding: 0.5em;"> | <div style="padding: 0.5em;"> | ||
{{#if:{{#var:also_header}}|<div> | {{#if:{{#var:also_header}}|<div> | ||
{{#var:also_header}} | {{#var:also_header}} | ||
</div>}}{{#if:{{#var:also_constants}}| | </div>}}{{#if:{{#var:also_constants}}| | ||
<h3> | <h3>限制</h3> | ||
{{{!}} | {{{!}} | ||
{{#var:also_constants}} | {{#var:also_constants}} | ||
{{!}}} }}{{#if:{{#var:also_events}}| | {{!}}} }}{{#if:{{#var:also_events}}| | ||
<h3> | <h3>事件</h3> | ||
{{{!}} | {{{!}} | ||
{{#var:also_events}} | {{#var:also_events}} | ||
{{!}}} }}{{#if:{{#var:also_functions}}| | {{!}}} }}{{#if:{{#var:also_functions}}| | ||
<h3> | <h3>函式</h3> | ||
{{{!}} | {{{!}} | ||
{{#var:also_functions}} | {{#var:also_functions}} | ||
{{!}}} }}{{#if:{{#var:also_articles}}| | {{!}}} }}{{#if:{{#var:also_articles}}| | ||
<h3> | <h3>文章</h3> | ||
{{{!}} | {{{!}} | ||
{{#var:also_articles}} | {{#var:also_articles}} | ||
{{!}}} }}{{#if:{{#var:also_library}}| | {{!}}} }}{{#if:{{#var:also_library}}| | ||
<h3> | <h3>範例集</h3> | ||
{{{!}} | {{{!}} | ||
{{#var:also_library}} | {{#var:also_library}} | ||
Line 290: | Line 293: | ||
</div></div>}} | </div></div>}} | ||
<div id="box"> | <div id="box"> | ||
== | == Deep Notes == | ||
<div style="padding: 0.5em"><div> | <div style="padding: 0.5em"><div> | ||
{{#var:deepnotes}} | {{#var:deepnotes}} | ||
</div>{{#if:{{#var:mono}}| | </div>{{#if:{{#var:mono}}| | ||
<h4> | <h4> Mono VM Notes </h4><div> | ||
{{#var:mono}} | {{#var:mono}} | ||
</div>}}{{#if:{{#var:lso}}| | </div>}}{{#if:{{#var:lso}}| | ||
<h4> | <h4> LSO VM Notes </h4><div> | ||
{{#var:lso}} | {{#var:lso}} | ||
</div>}}{{#if:{{#var:history}}| | </div>}}{{#if:{{#var:history}}| | ||
<h4> | <h4> 歷史 </h4><div> | ||
{{#var:history}} | {{#var:history}} | ||
</div>}} | </div>}} | ||
{{Anchor|Issues}}{{LSL_Generic/Issues}}{{#if:{{#var:also_tests}}| | |||
<h3>Tests</h3> | |||
}}{{#if:{{#var:also_tests}}| | |||
<h3> | |||
{{{!}} | {{{!}} | ||
{{#var:also_tests}} | {{#var:also_tests}} | ||
{{!}}} | {{!}}} | ||
}}{{#if:{{#var:location}}| | }}{{#if:{{#var:location}}| | ||
<h4> | <h4> Source </h4><div> | ||
{{#var:location}} | {{#var:location}} | ||
</div>}}{{#if:{{#var:messaging}}| | </div>}}{{#if:{{#var:messaging}}| | ||
<h4> | <h4> Messaging </h4><div> | ||
{{#var:messaging}} | {{#var:messaging}} | ||
</div>}}{{#if:{{#var:footnotes}}| | </div>}}{{#if:{{#var:footnotes}}| | ||
<h4 style="margin-bottom:0;"> | <h4 style="margin-bottom:0;"> Footnotes </h4> | ||
{{{{#if:{{#var:footnotes}}|Footnotes|!}}|}} | {{{{#if:{{#var:footnotes}}|Footnotes|!}}|}} | ||
}} | }} | ||
</div></div>{{#if:{{{comments|}}}|<div id="box"> | </div></div>{{#if:{{{comments|}}}|<div id="box"> | ||
<h2> | <h2>Comments</h2> | ||
<div style="padding: 0.5em;"> | <div style="padding: 0.5em;"> | ||
{{{comments|}}} | {{{comments|}}} | ||
</div></div>}} | </div></div>}} | ||
<div style="display:none" class="hidden-text" id="hidden-text">{{#var:hidden-text}}</div> | <div style="display:none" class="hidden-text" id="hidden-text">{{#var:hidden-text}}</div> | ||
{{#var:footer}} | {{#var:footer}} {{#if:{{#var:self}}|| {{#if:{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}|| [[Category:LSL Functions{{#var:lang}}]] {{#if:{{#pos:{{#var:moded}}|f}}||{{#ifexpr:{{#var:BugCounter|0}} > 0|[[Category:LSL topics with bugs{{#var:lang}}]] [[Category:LSL topics with the most bugs{{#var:lang}}| {{padleft:{{#expr:100-{{#var:BugCounter|0}}}}|2|0}}{{PAGENAME}}]]}}}} {{#iferror:{{#expr:{{#var:func_id}}}}|[[Category:LSL Functions/Without IDs{{#var:lang}}]]|[[Category:LSL Functions/ID{{#var:lang}}| {{padleft:{{#var:func_id}}|5|0}}]]}} {{#if:{{#var:examples}}||[[Category:LSL Needs Example{{#var:lang}}]]}} {{LSL Unhelpful|{{{func}}}|}} }} {{#if:{{{cat1|}}}|[[Category:LSL {{{cat1}}}{{#var:lang}}]]}} {{#if:{{{cat2|}}}|[[Category:LSL {{{cat2}}}{{#var:lang}}]]}} {{#if:{{{cat3|}}}|[[Category:LSL {{{cat3}}}{{#var:lang}}]]}} {{#if:{{{cat4|}}}|[[Category:LSL {{{cat4}}}{{#var:lang}}]]}} {{#if:{{{cat5|}}}|[[Category:LSL {{{cat5}}}{{#var:lang}}]]}} {{#if:{{{cat6|}}}|[[Category:LSL {{{cat6}}}{{#var:lang}}]]}} {{#if:{{{cat7|}}}|[[Category:LSL {{{cat7}}}{{#var:lang}}]]}} {{#if:{{{cat8|}}}|[[Category:LSL {{{cat8}}}{{#var:lang}}]]}} }}</includeonly> | ||