Difference between revisions of "Template:LSL Function/negative index"
Jump to navigation
Jump to search
m |
m |
||
Line 49: | Line 49: | ||
{{#vardefine:header_footnote|{{#var:header_footnote}}{{PBR}} | {{#vardefine:header_footnote|{{#var:header_footnote}}{{PBR}} | ||
{{#switch:{{#var:ni_c}} | {{#vardefineecho:ni_ps|{{#switch:{{#var:ni_c}} | ||
|0=This function | |0=This function | ||
|1='''{{LSL Param|{{{2}}}}}''' | |1='''{{LSL Param|{{{2}}}}}''' | ||
|2='''{{LSL Param|{{{2}}}}}''' & '''{{LSL Param|{{{3}}}}}''' | |2='''{{LSL Param|{{{2}}}}}''' & '''{{LSL Param|{{{3}}}}}''' | ||
|3='''{{LSL Param|{{{2}}}}}''', '''{{LSL Param|{{{3}}}}}''' & '''{{LSL Param|{{{4}}}}}''' | |3='''{{LSL Param|{{{2}}}}}''', '''{{LSL Param|{{{3}}}}}''' & '''{{LSL Param|{{{4}}}}}''' | ||
}} {{#if:{{#var:t}}| support{{#ifexpr:{{#var:ni_c}}>1||s}}| ''do{{#ifexpr:{{#var:ni_c}}>1||es}} not'' support }} {{LSLGC|Negative_Index{{#var:lang}}|negative indexes}}.{{PBR}} | }}}} {{#if:{{#var:t}}| support{{#ifexpr:{{#var:ni_c}}>1||s}}| ''do{{#ifexpr:{{#var:ni_c}}>1||es}} not'' support }} {{LSLGC|Negative_Index{{#var:lang}}|negative indexes}}. {{#if:{{#var:t}}|{{#ifexpr:{{#var:ni_c}}>1|'''{{LSL Param|{{{2}}}}}''' & '''{{LSL Param|{{{3}}}}}''' can also form an [[#exclusion range|exclusion range]].}}}} {{PBR}} | ||
}} | }} | ||
Revision as of 23:55, 4 September 2011
Format:
{{LSL Function/negative index|boolean|p1|p2|p3}}
Exclude p1, p2, or p3 if not used.
Debugging
#var | value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
header_footnote |
{{{2}}} supports negative indexes. | ||||||||||
spec |
Indexes
| ||||||||||
caveats |
| ||||||||||
notes | |||||||||||
constants_nb | |||||||||||
also_articles |
| ||||||||||
footer |