Difference between revisions of "Template:Modarg"

From DoomRL Wiki

Jump to: navigation, search
m (let's try uncommenting it)
m (test time!)
Line 36: Line 36:
 
   | {{#if: {{#pos:{{{1}}}|Room}}        |{{{1}}} }} =  '''[[Modding:Generator|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Room}}        |{{{1}}} }} =  '''[[Modding:Generator|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Trait}}        |{{{1}}} }} =  '''[[Modding:Trait|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Trait}}        |{{{1}}} }} =  '''[[Modding:Trait|{{{1}}}]]'''
   | '''{{{1}}}'''
+
   | <b>{{{1}}}</b>
 
}}
 
}}

Revision as of 19:18, 28 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.

{{{1}}}

Personal tools