Difference between revisions of "Template:Modarg"
From DoomRL Wiki
Yaflhdztioxo (Talk | contribs) |
Yaflhdztioxo (Talk | contribs) |
||
Line 33: | Line 33: | ||
| {{#if: {{#pos:{{{1}}}|ModArray}} |{{{1}}} }} = '''[[Modding:ModArray|{{{1}}}]]''' | | {{#if: {{#pos:{{{1}}}|ModArray}} |{{{1}}} }} = '''[[Modding:ModArray|{{{1}}}]]''' | ||
| {{#if: {{#pos:{{{1}}}|Player}} |{{{1}}} }} = '''[[Modding:Player|{{{1}}}]]''' | | {{#if: {{#pos:{{{1}}}|Player}} |{{{1}}} }} = '''[[Modding:Player|{{{1}}}]]''' | ||
− | | {{#if: {{#pos:{{{1}}}|range} |{{{1}}} }} = '''[[Modding:core/functions:resolverange | + | | {{#if: {{#pos:{{{1}}}|range} |{{{1}}} }} = '''[[Modding:core/functions:resolverange|{{{1}}}]]''' |
| {{#if: {{#pos:{{{1}}}|Resistance}} |{{{1}}} }} = '''[[Modding:Constants#Resistance|{{{1}}}]]''' | | {{#if: {{#pos:{{{1}}}|Resistance}} |{{{1}}} }} = '''[[Modding:Constants#Resistance|{{{1}}}]]''' | ||
| {{#if: {{#pos:{{{1}}}|Room}} |{{{1}}} }} = '''[[Modding:Generator|{{{1}}}]]''' | | {{#if: {{#pos:{{{1}}}|Room}} |{{{1}}} }} = '''[[Modding:Generator|{{{1}}}]]''' |
Revision as of 18:31, 22 December 2012
Whenever an input or output argument is required for an API function, one should use {{modarg|arg}} to express it. This also handles cases where links are required. Some examples:
If there are more links required, feel free to add a line to the template. {{#switch: {{{1}}}
| = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}} | = {{{1}}}