Difference between revisions of "Template:Modarg"
From DoomRL Wiki
Game Hunter (Talk | contribs) m (test time!) |
m (Death to newlines!) |
||
Line 5: | Line 5: | ||
*<nowiki>{{modarg|CoordList}}</nowiki> → '''[[Modding:Coord|CoordList]]''' | *<nowiki>{{modarg|CoordList}}</nowiki> → '''[[Modding:Coord|CoordList]]''' | ||
If there are more links required, feel free to add a line to the template. | If there are more links required, feel free to add a line to the template. | ||
− | </noinclude> | + | </noinclude>{{#switch: {{{1}}} |
− | {{#switch: {{{1}}} | + | |
| {{#if: {{#pos:{{{1}}}|Cell Flags}} |{{{1}}} }} = '''[[Modding:Constants#Cell Flags|{{{1}}}]]''' | | {{#if: {{#pos:{{{1}}}|Cell Flags}} |{{{1}}} }} = '''[[Modding:Constants#Cell Flags|{{{1}}}]]''' | ||
| {{#if: {{#pos:{{{1}}}|Cellset}} |{{{1}}} }} = '''[[Modding:Constants#Cellsets|{{{1}}}]]''' | | {{#if: {{#pos:{{{1}}}|Cellset}} |{{{1}}} }} = '''[[Modding:Constants#Cellsets|{{{1}}}]]''' |
Revision as of 19:35, 28 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. {{{1}}}