Difference between revisions of "Template:Native"
Jump to navigation
Jump to search
Letsplayordy (talk | contribs) |
CarLuver69 (talk | contribs) m (Added 'Number of Parameters' default value) |
||
Line 1: | Line 1: | ||
− | <table cellspacing="4" cellpadding="2" style="border: 1px solid #cedff2; text-align: left; line-height: 1.5em; margin: .5em 0 .5em 1em">{{#ifexpr: {{{noheader|0}}}=1||<caption>'''{{PAGENAMEE}}'''</caption>}}<tr><th colspan="3" align="center">Number of parameters: {{{np}}}</th></tr>{{#ifexpr: {{{{{{np}}}|0}}}>0 | <tr><th>#</th><th>Type</th><th>Description</th></tr>}} | + | <table cellspacing="4" cellpadding="2" style="border: 1px solid #cedff2; text-align: left; line-height: 1.5em; margin: .5em 0 .5em 1em">{{#ifexpr: {{{noheader|0}}}=1||<caption>'''{{PAGENAMEE}}'''</caption>}}<tr><th colspan="3" align="center">Number of parameters: {{{np|0}}}</th></tr>{{#ifexpr: {{{{{{np}}}|0}}}>0 | <tr><th>#</th><th>Type</th><th>Description</th></tr>}} |
{{#if: {{{p1t|}}}|<tr><td>Parameter 1</td>{{#if: {{{p1t|}}}|<td>{{{p1t}}}</td>|<td></td>}}{{#if: {{{p1d|}}}|<td>{{{p1d|}}}</td>|<td></td>}}</tr>}}{{#if: {{{p2t|}}}|<tr><td>Parameter 2</td>{{#if: {{{p2t|}}}|<td>{{{p2t}}}</td>|<td></td>}} | {{#if: {{{p1t|}}}|<tr><td>Parameter 1</td>{{#if: {{{p1t|}}}|<td>{{{p1t}}}</td>|<td></td>}}{{#if: {{{p1d|}}}|<td>{{{p1d|}}}</td>|<td></td>}}</tr>}}{{#if: {{{p2t|}}}|<tr><td>Parameter 2</td>{{#if: {{{p2t|}}}|<td>{{{p2t}}}</td>|<td></td>}} | ||
{{#if: {{{p2d|}}}|<td>{{{p2d|}}}</td>|<td></td>}}</tr>}}{{#if: {{{p3t|}}}|<tr><td>Parameter 3</td>{{#if: {{{p3t|}}}|<td>{{{p3t}}}</td>|<td></td>}} | {{#if: {{{p2d|}}}|<td>{{{p2d|}}}</td>|<td></td>}}</tr>}}{{#if: {{{p3t|}}}|<tr><td>Parameter 3</td>{{#if: {{{p3t|}}}|<td>{{{p3t}}}</td>|<td></td>}} |
Revision as of 17:51, 6 June 2015
Number of parameters: 0 | ||||
---|---|---|---|---|
Returned value: | ||||
Is present? | Type | Description | ||
None |
{{Native |game = <use 5 for GTA V's native; 4 for IV's (default)> |noheader = <use 1 if you dont want a table header; otherwise 0> |np = <number of parameters> |p1t = <parameter 1 type (integer, float, pointer, handle, boolean)> |p1d = <parameter 1 description> |p2t = <parameter 2 type (integer, float, pointer, handle, boolean)> |p2d = <parameter 2 description> |<other parameters if there are ones> |r = <1 if function returns something, otherwise 0> |rt = <result value type> |rd = <result value description> }}