Difference between revisions of "Template:Modarg"

From DoomRL Wiki

Jump to: navigation, search
m (undoing because for some reason it suddenly stopped working completely)
m (woo undo out the wazoo)
Line 1: Line 1:
{{#switch: {{{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:
Line 7: 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>
 
</noinclude>
 +
<!--
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
   | {{#if: {{#pos:{{{1}}}|Being}}       |{{{1}}} }} =  '''[[Modding:Being|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|Coord}} |{{{1}}} }} =  '''[[Modding:Coord|{{{1}}}]]'''
   | {{#if: {{#pos:{{{1}}}|Coord}}       |{{{1}}} }} =  '''[[Modding:Coord|{{{1}}}]]'''
+
   | {{#if: {{#pos:{{{1}}}|Area}} |{{{1}}} }} =  '''[[Modding:Area|{{{1}}}]]'''
   | '''{{{1}}}'''
+
   | {{#if: {{#pos:{{{1}}}|Item}}  |{{{1}}} }} =  '''[[Modding:Item|{{{1}}}]]'''
}}
+
  | {{#if: {{#pos:{{{1}}}|Being}} |{{{1}}} }} =  '''[[Modding:Being|{{{1}}}]]'''
 
+
  | {{#if: {{#pos:{{{1}}}|Player}}|{{{1}}} }} =  '''[[Modding:Player|{{{1}}}]]'''
 +
  | {{#if: {{#pos:{{{1}}}|Room}}  |{{{1}}} }} =  '''[[Modding:Generator|{{{1}}}]]'''
 
   | '''{{{1}}}'''
 
   | '''{{{1}}}'''
 
}}
 
}}
 +
-->

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