Difference between revisions of "Template:Modarg"

From DoomRL Wiki

Jump to: navigation, search
m (added explanation)
(added a whole crapload of links)
Line 8: Line 8:
 
<!--
 
<!--
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
   | {{#if: {{#pos:{{{1}}}|Coord}} |{{{1}}} }} =  '''[[Modding:Coord|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|Cell Flags}}   |{{{1}}} }} =  '''[[Modding:Constants#Cell Flags|{{{1}}}]]'''
   | {{#if: {{#pos:{{{1}}}|Area}}  |{{{1}}} }} =  '''[[Modding:Area|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|Cellset}}     |{{{1}}} }} = '''[[Modding:Constants#Cellsets|{{{1}}}]]'''
   | {{#if: {{#pos:{{{1}}}|Item}}  |{{{1}}} }} =  '''[[Modding:Item|{{{1}}}]]'''
+
  | {{#if: {{#pos:{{{1}}}|Cell}}        |{{{1}}} }} =  '''[[Modding:Cell|{{{1}}}]]'''
   | {{#if: {{#pos:{{{1}}}|Being}} |{{{1}}} }} =  '''[[Modding:Being|{{{1}}}]]'''
+
 
   | {{#if: {{#pos:{{{1}}}|Player}}|{{{1}}} }} =  '''[[Modding:Player|{{{1}}}]]'''
+
  | {{#if: {{#pos:{{{1}}}|ExplosionFlag}}|{{{1}}} }} =  '''[[Modding:Constants#ExplosionFlag|{{{1}}}]]'''
   | {{#if: {{#pos:{{{1}}}|Room}}  |{{{1}}} }} =  '''[[Modding:Generator|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|Item Flag}}   |{{{1}}} }} = '''[[Modding:Constants#Item Flags|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|LightFlag}}    |{{{1}}} }} =  '''[[Modding:Constants#LightFlag|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Level Flag}}  |{{{1}}} }} =  '''[[Modding:Constants#Level Flags|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Flag}}        |{{{1}}} }} =  '''[[Modding:Constants#Flags|{{{1}}}]]'''
 +
 
 +
  | {{#if: {{#pos:{{{1}}}|ItemType}}|{{{1}}} }} =  '''[[Modding:Constants#ItemType|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|ItemSet}} |{{{1}}} }} =  '''[[Modding:ItemSet|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Item}}    |{{{1}}} }} =  '''[[Modding:Item|{{{1}}}]]'''
 +
 
 +
  | {{#if: {{#pos:{{{1}}}|Affect}}    |{{{1}}} }} =  '''[[Modding:Affect|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|AltReload}} |{{{1}}} }} =  '''[[Modding:Constants#AltReload|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|AltFire}}  |{{{1}}} }} =  '''[[Modding:Constants#AltFire|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Area}}      |{{{1}}} }} =  '''[[Modding:Area|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Badge}}    |{{{1}}} }} =  '''[[Modding:Badge|{{{1}}}]]'''
 +
   | {{#if: {{#pos:{{{1}}}|Being}}     |{{{1}}} }} =  '''[[Modding:Being|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Color}}    |{{{1}}} }} =  '''[[Modding:Constants#Colors|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Coord}}    |{{{1}}} }} =  '''[[Modding:Coord|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|DamageType}}|{{{1}}} }} =  '''[[Modding:Constants#DamageType|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Klass}}    |{{{1}}} }} =  '''[[Modding:Klass|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Medal}}    |{{{1}}} }} =  '''[[Modding:Medal|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Missile}}  |{{{1}}} }} =  '''[[Modding:Missile|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|ModArray}}  |{{{1}}} }} =  '''[[Modding:ModArray|{{{1}}}]]'''
 +
   | {{#if: {{#pos:{{{1}}}|Player}}   |{{{1}}} }} =  '''[[Modding:Player|{{{1}}}]]'''
 +
   | {{#if: {{#pos:{{{1}}}|Rank}}     |{{{1}}} }} = '''[[Modding:Rank|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Resistance}}|{{{1}}} }} =  '''[[Modding:Constants#Resistance|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Room}}      |{{{1}}} }} =  '''[[Modding:Generator|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Trait}}    |{{{1}}} }} =  '''[[Modding:Trait|{{{1}}}]]'''
 
   | '''{{{1}}}'''
 
   | '''{{{1}}}'''
 
}}
 
}}
 
-->
 
-->

Revision as of 20:30, 26 January 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.


Personal tools