Difference between revisions of "Template:LSL Function/negative index"
Jump to navigation
Jump to search
m (better international support (makes it easier to internationalize later)) |
|||
Line 12: | Line 12: | ||
</noinclude>{{#if: | </noinclude>{{#if: | ||
{{#vardefine:also_articles|{{#var:also_articles}} | {{#vardefine:also_articles|{{#var:also_articles}} | ||
{{#ifeq:{{{1|{{#var:ni_mode}}}}}|true|{{LSL_DefineRow||{{LSLGC|Negative_Index}}|}} {{#vardefine:t|{{#ifeq:{{{1|{{#var:ni_mode}}}}}|true|{{#if:{{{2|{{#var:ni_p1}}}}}|LSL_Function/negative_index/{{#if:{{{3|{{#var:ni_p2}}}}}|range|single}}}}}}}}{{#if:{{{2|{{#var:ni_p1}}}}}|{{{{#var:t}}|{{{2|{{#var:ni_p1}}}}}|{{{3|{{#var:ni_p2}}}}}|{{{4|{{#var:ni_p3}}}}}}}}}}}}} | {{#ifeq:{{{1|{{#var:ni_mode}}}}}|true|{{LSL_DefineRow||{{LSLGC|Negative_Index{{#var:lang}}|Negative Index}}|}} {{#vardefine:t|{{#ifeq:{{{1|{{#var:ni_mode}}}}}|true|{{#if:{{{2|{{#var:ni_p1}}}}}|LSL_Function/negative_index/{{#if:{{{3|{{#var:ni_p2}}}}}|range|single}}}}}}}}{{#if:{{{2|{{#var:ni_p1}}}}}|{{{{#var:t}}|{{{2|{{#var:ni_p1}}}}}|{{{3|{{#var:ni_p2}}}}}|{{{4|{{#var:ni_p3}}}}}}}}}}}}} | ||
{{#vardefine:header_footnote|{{#if:{{#var:header_footnote}}|{{#var:header_footnote}}<br/>}}{{#if: {{{1|{{#var:ni_mode}}}}}| {{#if:{{{2|{{#var:ni_p1}}}}}|'''{{{2|{{#var:ni_p1}}}}}'''{{#if:{{{3|{{#var:ni_p2}}}}}|{{#if:{{{4|{{#var:ni_p3}}}}}|, '''{{{3|{{#var:ni_p2}}}}}''' & '''{{{4|{{#var:ni_p3}}}}}'''| & '''{{{3|{{#var:ni_p2}}}}}'''}}}}|This function}} {{#ifeq:{{{1|{{#var:ni_mode}}}}}|false| ''does not'' support | support{{#if:{{{3|{{#var:ni_p2}}}}}||s}} {{#ifeq:{{NAMESPACE}}|Template||{{#if:{{#var:self}}{{{self|}}}||{{LSLC|Negative Index}}}}}}}} {{LSLGC| | {{#vardefine:header_footnote|{{#if:{{#var:header_footnote}}|{{#var:header_footnote}}<br/>}}{{#if: {{{1|{{#var:ni_mode}}}}}| {{#if:{{{2|{{#var:ni_p1}}}}}|'''{{{2|{{#var:ni_p1}}}}}'''{{#if:{{{3|{{#var:ni_p2}}}}}|{{#if:{{{4|{{#var:ni_p3}}}}}|, '''{{{3|{{#var:ni_p2}}}}}''' & '''{{{4|{{#var:ni_p3}}}}}'''| & '''{{{3|{{#var:ni_p2}}}}}'''}}}}|This function}} {{#ifeq:{{{1|{{#var:ni_mode}}}}}|false| ''does not'' support | support{{#if:{{{3|{{#var:ni_p2}}}}}||s}} {{#ifeq:{{NAMESPACE}}|Template||{{#if:{{#var:self}}{{{self|}}}||{{LSLC|Negative Index{{#var:lang}}}}}}}}}} {{LSLGC|Negative_Index{{#var:lang}}|negative indexes}}.}}}} | ||
}}<noinclude> | }}<noinclude> | ||
==Debugging== | ==Debugging== |
Revision as of 04:26, 14 March 2008
Format:
{{LSL Function/negative index|boolean|p1|p2|p3}}
Exclude p1, p2, or p3 if not used.
Debugging
Test |
{{#var:header_footnote}}
number does not support negative indexes.