Difference between revisions of "Template:Modarg"

From DoomRL Wiki

Jump to: navigation, search
Line 12: Line 12:
 
   | {{#if: {{#pos:{{{1}}}|Empty Flag}}  |{{{1}}} }} =  '''[[Modding:Constants#Empty Flags|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Empty Flag}}  |{{{1}}} }} =  '''[[Modding:Constants#Empty Flags|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Item Flag}}    |{{{1}}} }} =  '''[[Modding:Item#Flags|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Item Flag}}    |{{{1}}} }} =  '''[[Modding:Item#Flags|{{{1}}}]]'''
   | {{#if: {{#pos:{{{1}}}|Level Flag}}  |{{{1}}} }} =  '''[[Modding:Constants#LevelFlag|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|Level Flag}}  |{{{1}}} }} =  '''[[Modding:Constants#Level Flag|{{{1}}}]]'''
   | {{#if: {{#pos:{{{1}}}|Light Flag}}  |{{{1}}} }} =  '''[[Modding:Constants#LightFlag|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|Light Flag}}  |{{{1}}} }} =  '''[[Modding:Constants#Light Flag|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Missile Flag}} |{{{1}}} }} =  '''[[Modding:Missile#Flags|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Missile Flag}} |{{{1}}} }} =  '''[[Modding:Missile#Flags|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Flag}}        |{{{1}}} }} =  '''[[Modding:Constants#Flags|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Flag}}        |{{{1}}} }} =  '''[[Modding:Constants#Flags|{{{1}}}]]'''

Revision as of 21:47, 23 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