Difference between revisions of "Template:Modarg"

From DoomRL Wiki

Jump to: navigation, search
m (I have no idea what the problem, simply does not "work")
m (ugh)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
Whenever an input or output argument is required for an API function, one should use <nowiki>{{modarg|arg}}</nowiki> to express it. This also handles cases where links are required. Some examples:
 
Whenever an input or output argument is required for an API function, one should use <nowiki>{{modarg|arg}}</nowiki> to express it. This also handles cases where links are required. Some examples:
*<nowiki>{{modarg|integer}}</nowiki> &rarr; {{modarg|integer}}
+
*<nowiki>{{modarg|integer}}</nowiki> &rarr; '''integer'''
*<nowiki>{{modarg|Being}}</nowiki> &rarr; {{modarg|Being}}
+
*<nowiki>{{modarg|Being}}</nowiki> &rarr; '''[[Modding:Being|Being]]'''
*<nowiki>{{modarg|CoordList}}</nowiki> &rarr; {{modarg|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>

Revision as of 00:58, 27 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