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:Level#Flags|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|Level Flag}}  |{{{1}}} }} =  '''[[Modding:Constants#LevelFlag|{{{1}}}]]'''
   | {{#if: {{#pos:{{{1}}}|LightFlag}}   |{{{1}}} }} =  '''[[Modding:Constants#LightFlag|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|Light Flag}}   |{{{1}}} }} =  '''[[Modding:Constants#LightFlag|{{{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}}}]]'''
Line 29: Line 29:
 
   | {{#if: {{#pos:{{{1}}}|Color}}        |{{{1}}} }} =  '''[[Modding:Constants#Colors|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Color}}        |{{{1}}} }} =  '''[[Modding:Constants#Colors|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Coord}}        |{{{1}}} }} =  '''[[Modding:Coord|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Coord}}        |{{{1}}} }} =  '''[[Modding:Coord|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|coord}}        |{{{1}}} }} =  '''[[Modding:coord|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|DamageType}}  |{{{1}}} }} =  '''[[Modding:Constants#DamageType|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|DamageType}}  |{{{1}}} }} =  '''[[Modding:Constants#DamageType|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Klass}}        |{{{1}}} }} =  '''[[Modding:Klass|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Klass}}        |{{{1}}} }} =  '''[[Modding:Klass|{{{1}}}]]'''

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