Difference between revisions of "Template:Modarg"

From DoomRL Wiki

Jump to: navigation, search
m (some fixes, added StatusEffect)
(fixed missile flag link, added empty flags)
Line 10: Line 10:
 
   | {{#if: {{#pos:{{{1}}}|Cell}}        |{{{1}}} }} =  '''[[Modding:Cell|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Cell}}        |{{{1}}} }} =  '''[[Modding:Cell|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|ExplosionFlag}}|{{{1}}} }} =  '''[[Modding:Constants#ExplosionFlag|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|ExplosionFlag}}|{{{1}}} }} =  '''[[Modding:Constants#ExplosionFlag|{{{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}}}|LightFlag}}    |{{{1}}} }} =  '''[[Modding:Constants#LightFlag|{{{1}}}]]'''
 
 
   | {{#if: {{#pos:{{{1}}}|Level Flag}}  |{{{1}}} }} =  '''[[Modding:Level#Flags|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Level Flag}}  |{{{1}}} }} =  '''[[Modding:Level#Flags|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|LightFlag}}    |{{{1}}} }} =  '''[[Modding:Constants#LightFlag|{{{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}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|ItemType}}    |{{{1}}} }} =  '''[[Modding:Constants#ItemType|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|ItemType}}    |{{{1}}} }} =  '''[[Modding:Constants#ItemType|{{{1}}}]]'''

Revision as of 17:47, 27 March 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