Difference between revisions of "Module:Currency/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Trappist the monk
(create;)
 
blackwiki>Trappist the monk
m (copyedit;)
Line 3: Line 3:
 
== Usage ==
 
== Usage ==
  
This code is invoked from {{tlx|Currency/new}}.  All of the template parameters are passed in the module's frame.
+
This code is invoked from {{tlx|Currency}}.  All of the template parameters are passed in the module's frame.
:<code><nowiki>{{</nowiki>#invoke:Currency|Currency|<''amount''>|<''code''>|<''first''>}}</code>
+
:<code><nowiki>{{</nowiki>#invoke:Currency|Currency|<''amount''>|<''code''>|<''first''>|<''linked''>}}</code>
 
See the template code for a description of the parameters.
 
See the template code for a description of the parameters.
  
Other modules may use this code.  The entry point for other modules is <code>_render_currency (amount, code, long_form)</code>.  See the function <code>render_currency()</code> for detail.
+
Other modules may use this code.  The entry point for other modules is <code>_render_currency (amount, code, long_form, linked)</code>.  See the function <code>render_currency()</code> for detail.
  
 
The data file [[Module:Currency/Presentation]] holds required currency presentation characteristics.
 
The data file [[Module:Currency/Presentation]] holds required currency presentation characteristics.

Revision as of 18:02, 19 April 2016

Usage

This code is invoked from {{Currency}}. All of the template parameters are passed in the module's frame.

{{#invoke:Currency|Currency|<amount>|<code>|<first>|<linked>}}

See the template code for a description of the parameters.

Other modules may use this code. The entry point for other modules is _render_currency (amount, code, long_form, linked). See the function render_currency() for detail.

The data file Module:Currency/Presentation holds required currency presentation characteristics.