Changes

Jump to navigation Jump to search
527 bytes added ,  16:22, 11 November 2019
no edit summary
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>dodoubleempty</syntax>
== [[Help:Reference|Syntax]] ==
<tr>
<td colspan="2" class="cmd">\dodoubleempty''\commmand''<!--
--></td>
</tr>
</table>
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\dodoubleargument''\commmand''<!--
--></td>
</tr>
== Description ==
{{cmd|dodoubleempty}} is used to write commands that can take zero, one, or two square-bracketed arguments: if the user specifies less than two arguments, it adds empty arguments at the end to make up the missing numbers.  {{cmd|dodoubleargument|link=no}} used to be a variant that required exactly two arguments, but is now a synonym. It is still used alongside {{cmd|dodoubleempty}} to remind the programmer that the arguments are requird instead of optional, but the difference is semantic rather than syntactic.
So, <tt>\dodoubleempty\command</tt> leads to:
* <tt>\dosixtupleempty</tt>
* <tt>\doseventupleempty</tt>
 
== Example ==

Navigation menu