Difference between revisions of "Template:Modarg"

From DoomRL Wiki

Jump to: navigation, search
m (Death to newlines!)
m (some fixes, added StatusEffect)
Line 6: Line 6:
 
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>{{#switch: {{{1}}}
 
</noinclude>{{#switch: {{{1}}}
   | {{#if: {{#pos:{{{1}}}|Cell Flags}}  |{{{1}}} }} =  '''[[Modding:Constants#Cell Flags|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|Cell Flags}}  |{{{1}}} }} =  '''[[Modding:Cell#Flags|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Cellset}}      |{{{1}}} }} =  '''[[Modding:Constants#Cellsets|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Cellset}}      |{{{1}}} }} =  '''[[Modding:Constants#Cellsets|{{{1}}}]]'''
 
   | {{#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}}}|Item Flag}}    |{{{1}}} }} =  '''[[Modding:Constants#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}}}|LightFlag}}    |{{{1}}} }} =  '''[[Modding:Constants#LightFlag|{{{1}}}]]'''
   | {{#if: {{#pos:{{{1}}}|Level Flag}}  |{{{1}}} }} =  '''[[Modding:Constants#Level Flags|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|Level Flag}}  |{{{1}}} }} =  '''[[Modding:Level#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}}}]]'''
Line 34: Line 34:
 
   | {{#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}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|StatusEffect}} |{{{1}}} }} =  '''[[Modding:Constants#StatusEffect|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Trait}}        |{{{1}}} }} =  '''[[Modding:Trait|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Trait}}        |{{{1}}} }} =  '''[[Modding:Trait|{{{1}}}]]'''
 
   | <b>{{{1}}}</b>
 
   | <b>{{{1}}}</b>
 
}}
 
}}

Revision as of 22:03, 24 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