|
|
(64 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| <includeonly><!-- | | <includeonly><!-- |
| -->==={{{name|}}}=== | | -->==={{{name}}}=== |
| ;Definition
| | {{Function_wrapped/sub_start |
| :{{{name|}}}({{
| | | Definition |
| #if: {{{arg1_name|}}} | {{Function_wrapped/component | {{{arg1_name|}}} | {{{arg1_type|}}}}} | }} {{
| | | {{Function/definition | name={{{name}}} | arg_list={{{arg_list}}} | ret_list={{{ret_list}}} }} |
| #if: {{{arg2_name|}}} | , {{Function_wrapped/component | {{{arg2_name|}}} | {{{arg2_type|}}}}} | }} {{ | | }}<!-- |
| #if: {{{arg3_name|}}} | , {{Function_wrapped/component | {{{arg3_name|}}} | {{{arg3_type|}}}}} | }} {{ | | -->{{Function_wrapped/sub_start |
| #if: {{{arg4_name|}}} | , {{Function_wrapped/component | {{{arg4_name|}}} | {{{arg4_type|}}}}} | }} {{
| |
| #if: {{{arg5_name|}}} | , {{Function_wrapped/component | {{{arg5_name|}}} | {{{arg5_type|}}}}} | }} {{
| |
| #if: {{{arg6_name|}}} | , {{Function_wrapped/component | {{{arg6_name|}}} | {{{arg6_type|}}}}} | }} {{
| |
| #if: {{{arg7_name|}}} | , {{Function_wrapped/component | {{{arg7_name|}}} | {{{arg7_type|}}}}} | }} {{
| |
| #if: {{{arg8_name|}}} | , {{Function_wrapped/component | {{{arg8_name|}}} | {{{arg8_type|}}}}} | }} {{
| |
| #if: {{{arg9_name|}}} | , {{Function_wrapped/component | {{{arg9_name|}}} | {{{arg9_type|}}}}} |
| |
| }}) -> {{
| |
| #if: {{{ret1_name|}}} | {{Function_wrapped/component | {{{ret1_name|}}} | {{{ret1_type|}}}}} | }} {{
| |
| #if: {{{ret2_name|}}} | , {{Function_wrapped/component | {{{ret2_name|}}} | {{{ret2_type|}}}}} | }} {{
| |
| #if: {{{ret3_name|}}} | , {{Function_wrapped/component | {{{ret3_name|}}} | {{{ret3_type|}}}}} | }} {{
| |
| #if: {{{ret4_name|}}} | , {{Function_wrapped/component | {{{ret4_name|}}} | {{{ret4_type|}}}}} | }} {{
| |
| #if: {{{ret5_name|}}} | , {{Function_wrapped/component | {{{ret5_name|}}} | {{{ret5_type|}}}}} | }} {{
| |
| #if: {{{ret6_name|}}} | , {{Function_wrapped/component | {{{ret6_name|}}} | {{{ret6_type|}}}}} | }} {{
| |
| #if: {{{ret7_name|}}} | , {{Function_wrapped/component | {{{ret7_name|}}} | {{{ret7_type|}}}}} | }} {{
| |
| #if: {{{ret8_name|}}} | , {{Function_wrapped/component | {{{ret8_name|}}} | {{{ret8_type|}}}}} | }} {{
| |
| #if: {{{ret9_name|}}} | , {{Function_wrapped/component | {{{ret9_name|}}} | {{{ret9_type|}}}}} | }}<!--
| |
| -->{{Function_wrapped/sub | |
| | Description | | | Description |
| |{{{desc|}}} | | |{{{desc}}} |
| }}<!-- | | }}<!-- |
| -->{{Function_wrapped/sub | | -->{{Function_wrapped/sub_start |
| | Arguments | | | Arguments |
| | {{ | | | {{Function_wrapped/cbox |
| #if: {{{arg1_name|}}} | {{Function_wrapped/component2 | {{{arg1_name|}}} | {{{arg1_type|}}} | {{{arg1_desc|}}}}} | }} {{
| | | {{#explode: {{{arg_list}}} |//| 0}} | {{#explode: {{{arg_list}}} |//| 1}} | {{#explode: {{{arg_list}}} |//| 2}} | {{#explode: {{{arg_list}}} |//| 3}} |
| #if: {{{arg2_name|}}} | {{Function_wrapped/component2 | {{{arg2_name|}}} | {{{arg2_type|}}} | {{{arg2_desc|}}} |#E5E5E5}} | }} {{
| | | {{#explode: {{{arg_list}}} |//| 4}} | {{#explode: {{{arg_list}}} |//| 5}} | {{#explode: {{{arg_list}}} |//| 6}} | {{#explode: {{{arg_list}}} |//| 7}} |
| #if: {{{arg3_name|}}} | {{Function_wrapped/component2 | {{{arg3_name|}}} | {{{arg3_type|}}} | {{{arg3_desc|}}}}} | }} {{
| | | {{#explode: {{{arg_list}}} |//| 8}} | {{#explode: {{{arg_list}}} |//| 9}} | {{#explode: {{{arg_list}}} |//| 10}} | {{#explode: {{{arg_list}}} |//| 11}} |
| #if: {{{arg4_name|}}} | {{Function_wrapped/component2 | {{{arg4_name|}}} | {{{arg4_type|}}} | {{{arg4_desc|}}} |#E5E5E5}} | }} {{
| | | {{#explode: {{{arg_list}}} |//| 12}} | {{#explode: {{{arg_list}}} |//| 13}} | {{#explode: {{{arg_list}}} |//| 14}} | {{#explode: {{{arg_list}}} |//| 15}} |
| #if: {{{arg5_name|}}} | {{Function_wrapped/component2 | {{{arg5_name|}}} | {{{arg5_type|}}} | {{{arg5_desc|}}}}} | }} {{
| | | {{#explode: {{{arg_list}}} |//| 16}} | {{#explode: {{{arg_list}}} |//| 17}} | {{#explode: {{{arg_list}}} |//| 18}} | {{#explode: {{{arg_list}}} |//| 19}} |
| #if: {{{arg6_name|}}} | {{Function_wrapped/component2 | {{{arg6_name|}}} | {{{arg6_type|}}} | {{{arg6_desc|}}} |#E5E5E5}} | }} {{
| | | {{#explode: {{{arg_list}}} |//| 20}} | {{#explode: {{{arg_list}}} |//| 21}} | {{#explode: {{{arg_list}}} |//| 22}} | {{#explode: {{{arg_list}}} |//| 23}} |
| #if: {{{arg7_name|}}} | {{Function_wrapped/component2 | {{{arg7_name|}}} | {{{arg7_type|}}} | {{{arg7_desc|}}}}} | }} {{
| | | {{#explode: {{{arg_list}}} |//| 24}} | {{#explode: {{{arg_list}}} |//| 25}} | {{#explode: {{{arg_list}}} |//| 26}} | {{#explode: {{{arg_list}}} |//| 27}} |
| #if: {{{arg8_name|}}} | {{Function_wrapped/component2 | {{{arg8_name|}}} | {{{arg8_type|}}} | {{{arg8_desc|}}} |#E5E5E5}} | }} {{
| | | {{#explode: {{{arg_list}}} |//| 28}} | {{#explode: {{{arg_list}}} |//| 29}} | {{#explode: {{{arg_list}}} |//| 30}} | {{#explode: {{{arg_list}}} |//| 31}} |
| #if: {{{arg9_name|}}} | {{Function_wrapped/component2 | {{{arg9_name|}}} | {{{arg9_type|}}} | {{{arg9_desc|}}}}} | }}
| | | {{#explode: {{{arg_list}}} |//| 32}} | {{#explode: {{{arg_list}}} |//| 33}} | {{#explode: {{{arg_list}}} |//| 34}} | {{#explode: {{{arg_list}}} |//| 35}} |
| | }} |
| }}<!-- | | }}<!-- |
| -->{{Function_wrapped/sub | | -->{{Function_wrapped/sub_start |
| | Returns | | | Returns |
| | {{ | | | {{Function_wrapped/cbox |
| #if: {{{ret1_name|}}} | {{Function_wrapped/component2 | {{{ret1_name|}}} | {{{ret1_type|}}} | {{{ret1_desc|}}}}} | }} {{
| | | {{#explode: {{{ret_list}}} |//| 0}} | {{#explode: {{{ret_list}}} |//| 1}} | {{#explode: {{{ret_list}}} |//| 2}} | |
| #if: {{{ret2_name|}}} | {{Function_wrapped/component2 | {{{ret2_name|}}} | {{{ret2_type|}}} | {{{ret2_desc|}}} |#E5E5E5}} | }} {{
| | | {{#explode: {{{ret_list}}} |//| 4}} | {{#explode: {{{ret_list}}} |//| 5}} | {{#explode: {{{ret_list}}} |//| 6}} | |
| #if: {{{ret3_name|}}} | {{Function_wrapped/component2 | {{{ret3_name|}}} | {{{ret3_type|}}} | {{{ret3_desc|}}}}} | }} {{
| | | {{#explode: {{{ret_list}}} |//| 8}} | {{#explode: {{{ret_list}}} |//| 9}} | {{#explode: {{{ret_list}}} |//| 10}} | |
| #if: {{{ret4_name|}}} | {{Function_wrapped/component2 | {{{ret4_name|}}} | {{{ret4_type|}}} | {{{ret4_desc|}}} |#E5E5E5}} | }} {{
| | | {{#explode: {{{ret_list}}} |//| 12}} | {{#explode: {{{ret_list}}} |//| 13}} | {{#explode: {{{ret_list}}} |//| 14}} | |
| #if: {{{ret5_name|}}} | {{Function_wrapped/component2 | {{{ret5_name|}}} | {{{ret5_type|}}} | {{{ret5_desc|}}}}} | }} {{
| | | {{#explode: {{{ret_list}}} |//| 16}} | {{#explode: {{{ret_list}}} |//| 17}} | {{#explode: {{{ret_list}}} |//| 18}} | |
| #if: {{{ret6_name|}}} | {{Function_wrapped/component2 | {{{ret6_name|}}} | {{{ret6_type|}}} | {{{ret6_desc|}}} |#E5E5E5}} | }} {{
| | | {{#explode: {{{ret_list}}} |//| 20}} | {{#explode: {{{ret_list}}} |//| 21}} | {{#explode: {{{ret_list}}} |//| 22}} | |
| #if: {{{ret7_name|}}} | {{Function_wrapped/component2 | {{{ret7_name|}}} | {{{ret7_type|}}} | {{{ret7_desc|}}}}} | }} {{
| | | {{#explode: {{{ret_list}}} |//| 24}} | {{#explode: {{{ret_list}}} |//| 25}} | {{#explode: {{{ret_list}}} |//| 26}} | |
| #if: {{{ret8_name|}}} | {{Function_wrapped/component2 | {{{ret8_name|}}} | {{{ret8_type|}}} | {{{ret8_desc|}}} |#E5E5E5}} | }} {{
| | | {{#explode: {{{ret_list}}} |//| 28}} | {{#explode: {{{ret_list}}} |//| 29}} | {{#explode: {{{ret_list}}} |//| 30}} | |
| #if: {{{ret9_name|}}} | {{Function_wrapped/component2 | {{{ret9_name|}}} | {{{ret9_type|}}} | {{{ret9_desc|}}}}} | }}
| | | {{#explode: {{{ret_list}}} |//| 32}} | {{#explode: {{{ret_list}}} |//| 33}} | {{#explode: {{{ret_list}}} |//| 34}} | |
| | }} |
| }}<!-- | | }}<!-- |
| -->{{Function_wrapped/sub | | -->{{Function_wrapped/sub_start |
| | Notes | | | Notes |
| | {{{notes|}}} | | | {{{notes}}} |
| }} | | }} |
| Test 1a = [{{{test1}}}]
| | |
| Test 1b = [{{{test1|}}}]
| | {{#if:{{NAMESPACE}}||[[Category:Functions]]}}</includeonly> |
| Test 1c = [{{#if: {{{test1}}} | {{{test1}}} | }}]
| |
| Test 1d = [{{#if: {{{test1|}}} | {{{test1}}} | }}]
| |
| Test 2a = [{{{test2}}}]
| |
| Test 2b = [{{{test2|}}}]
| |
| Test 2c = [{{#if: {{{test2}}} | {{{test2}}} | }}]
| |
| Test 2d = [{{#if: {{{test2|}}} | {{{test2}}} | }}]
| |
| Test 3c = [{{#if: {{{test1}}} | {{{test1}}} | }}{{#if: {{{test2}}} | {{{test2}}} | }}]
| |
| Test 3d = [{{#if: {{{test1|}}} | {{{test1|}}} | }}{{#if: {{{test2|}}} | {{{test2|}}} | }}]
| |
| </includeonly> | |
|
| |
|
| <noinclude> | | <noinclude> |
| {{Function_wrapped/doc}} | | {{Function_wrapped/doc}} |
| </noinclude> | | </noinclude> |
This template is intended to have it's parameters filled by Template:Function. This template shouldn't be called directly.
There is currently not template code. the following is only the structure in development.
Example
FunctionName
Definition
FunctionName( number arg1, string arg2) -> string ret1, table ret2 Description
Function description Arguments
Type |
Name |
Description |
number |
arg1 |
argument (1,2,...,n) description, including examples if so desired |
string |
arg2 |
argument (1,2,...,n) description, including examples if so desired |
Returns
Type |
Name |
Description |
string |
ret1 |
return value (1,2,...,n) description, including examples if so desired |
table |
ret2 |
return value (1,2,...,n) description, including examples if so desired |
Notes
notes