Difference between revisions of "Template:Modarg"

From DoomRL Wiki

Jump to: navigation, search
m (test time!)
m (Death to newlines!)
Line 5: Line 5:
 
*<nowiki>{{modarg|CoordList}}</nowiki> &rarr; '''[[Modding:Coord|CoordList]]'''
 
*<nowiki>{{modarg|CoordList}}</nowiki> &rarr; '''[[Modding:Coord|CoordList]]'''
 
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>
+
</noinclude>{{#switch: {{{1}}}
{{#switch: {{{1}}}
+
 
   | {{#if: {{#pos:{{{1}}}|Cell Flags}}  |{{{1}}} }} =  '''[[Modding:Constants#Cell Flags|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Cell Flags}}  |{{{1}}} }} =  '''[[Modding:Constants#Cell Flags|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Cellset}}      |{{{1}}} }} =  '''[[Modding:Constants#Cellsets|{{{1}}}]]'''
 
   | {{#if: {{#pos:{{{1}}}|Cellset}}      |{{{1}}} }} =  '''[[Modding:Constants#Cellsets|{{{1}}}]]'''

Revision as of 19:35, 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