Difference between revisions of "Template:Modarg"

From DoomRL Wiki

Jump to: navigation, search
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}}}|ai}}          |{{{1}}} }} =  '''[[Modding:AI|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|AI}}          |{{{1}}} }} =  '''[[Modding:AI|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Cell Flags}}  |{{{1}}} }} =  '''[[Modding: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}}}]]'''
Line 14: Line 16:
 
   | {{#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#Level Flag|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Level Flag}}  |{{{1}}} }} =  '''[[Modding:Constants#Level Flag|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Being Flag}}  |{{{1}}} }} =  '''[[Modding:Constants#Being Flag|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Light Flag}}  |{{{1}}} }} =  '''[[Modding:Constants#Light Flag|{{{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}}}]]'''
Line 29: Line 32:
 
   | {{#if: {{#pos:{{{1}}}|Being}}        |{{{1}}} }} =  '''[[Modding:Being|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Being}}        |{{{1}}} }} =  '''[[Modding:Being|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|being}}        |{{{1}}} }} =  '''[[Modding:being|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|being}}        |{{{1}}} }} =  '''[[Modding:being|{{{1}}}]]'''
   | {{#if: {{#pos:{{{1}}}|Color}}        |{{{1}}} }} =  '''[[Modding:Constants#Colors|{{{1}}}]]'''
+
  | {{#if: {{#pos:{{{1}}}|color}}        |{{{1}}} }} =  '''[[Modding:Color#Color Definitions|{{{1}}}]]'''
 +
   | {{#if: {{#pos:{{{1}}}|Color}}        |{{{1}}} }} =  '''[[Modding:Color#Color Definitions|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Color Set}}        |{{{1}}} }} =  '''[[Modding:Color#Color Sets|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|color set}}        |{{{1}}} }} =  '''[[Modding:Color#Color Sets|{{{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}}}|coord}}        |{{{1}}} }} =  '''[[Modding:coord|{{{1}}}]]'''

Revision as of 19:57, 21 April 2013

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