Difference between revisions of "Template:Modarg"
From DRL Wiki
Game Hunter (Talk | contribs) m (time to test again) |
Game Hunter (Talk | contribs) m (test test test) |
||
| Line 8: | Line 8: | ||
<!-- | <!-- | ||
{{#switch: {{{1}}} | {{#switch: {{{1}}} | ||
| + | <noinclude> | ||
| + | Whenever an input or output argument is required for an API function, one should use <nowiki>{{modarg|arg}}</nowiki> to express it. This also handles cases where links are required. Some examples: | ||
| + | *<nowiki>{{modarg|integer}}</nowiki> → {{modarg|integer}} | ||
| + | *<nowiki>{{modarg|Being}}</nowiki> → {{modarg|Being}} | ||
| + | *<nowiki>{{modarg|CoordList}}</nowiki> → {{modarg|CoordList}} | ||
| + | If there are more links required, feel free to add a line to the template. | ||
| + | </noinclude> | ||
| + | {{#switch: {{{1}}} | ||
| + | | {{#if: {{#pos:{{{1}}}|Being}} |{{{1}}} }} = '''[[Modding:Being|{{{1}}}]]''' | ||
| + | | {{#if: {{#pos:{{{1}}}|Coord}} |{{{1}}} }} = '''[[Modding:Coord|{{{1}}}]]''' | ||
| + | | '''{{{1}}}''' | ||
| + | }} | ||
| + | |||
| '''{{{1}}}''' | | '''{{{1}}}''' | ||
}} | }} | ||
--> | --> | ||
Revision as of 20:43, 26 January 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.