Labs/Ubiquity/Ubiquity 0.5 Author Tutorial: Difference between revisions

more for arguments
m (s/state/storage/)
(more for arguments)
Line 517: Line 517:
</pre>
</pre>


but if we don't care about specifying a label for the argument, we can get away with using a single object for "arguments", with the roles as the property names, and the nountypes as the property values:
but if we don't care about specifying extra parameters for the argument, we can get away with using a single object for "arguments", with the roles as the property names, and the nountypes as the property values:


<pre>
<pre>
Line 523: Line 523:
</pre>
</pre>


If we had several arguments, and none of them needed labels, we could say:
or with label using <code>"_"</code> (or <code>" "</code>) as separator:
 
<pre>
  arguments: {modifier_contact: noun_type_contact}
</pre>
 
If we had several arguments, we could say:


<pre>
<pre>
Line 529: Line 535:
</pre>
</pre>


and so on.
Finally, if you only have "object" and don't need to specify a label...:
 
<pre>
  argument: noun_arb_text
</pre>


Aza writes:
Aza writes:
73

edits