Difference between revisions of "Template:Modarg"

From DoomRL Wiki

Jump to: navigation, search
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|{{{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:35, 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:

  • {{modarg|integer}} → integer
  • {{modarg|Being}} → Being
  • {{modarg|CoordList}} → CoordList

If there are more links required, feel free to add a line to the template. {{{1}}}

Personal tools