Difference between revisions of "Template:Modarg"

From DoomRL Wiki

Jump to: navigation, search
Line 32: 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:Color#Color Definitions|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|color}}        |{{{1}}} }} =  '''[[Modding:Color#Console Colors|{{{1}}}]]'''
   | {{#if: {{#pos:{{{1}}}|Color}}        |{{{1}}} }} =  '''[[Modding:Color#Color Definitions|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|Color}}        |{{{1}}} }} =  '''[[Modding:Color#Console Colors|{{{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}}}|color set}}        |{{{1}}} }} =  '''[[Modding:Color#Color Sets|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|color set}}        |{{{1}}} }} =  '''[[Modding:Color#Color Sets|{{{1}}}]]'''

Revision as of 20:28, 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