Template:expense-row
This template is used to generate a table row for a single expense on the expenses page. It is intended to be wrapped in a table
element.
Blank Template
Copy, paste, and fill in the information:
{{expense-row | date = | description = | payer = | payer_url = | payee = | payee_url = | amount = | currency_symbol = }}
Parameters
- date
- The expense's date in
YYYY-MM-DD
format. - description
- The expense's description.
- payer
- The name of the payer.
- payer_url
- The URL of the payer. (optional)
- payee
- The name of the payee.
- payee_url
- The URL of the payee. (optional)
- amount
- The expense's amount; numbers only, no currency symbol.
- currency_symbol
- The currency symbol for the amount. USD is the default, so this parameter can be left blank unless you need to specify another currency. (optional)
Examples
With URLs and USD currency
Including this template code:
<table width="100%" border="1" class="expense" style="border-collapse: collapse;" cellpadding="3"> {{expense-row | date = 2014-06-01 | description = Sample expense | payer = John Doe | payer_url = http://example.com/payer | payee = HostingCo | payee_url = http://example.com/payee | amount = 25 | currency_symbol = }} </table>
Will generate:
2014-06-01 | Sample expense | John Doe | HostingCo | $25 |
With no URLs and Euro currency
Including this template code:
<table width="100%" border="1" class="expense" style="border-collapse: collapse;" cellpadding="3"> {{expense-row | date = 2014-06-01 | description = Sample expense | payer = John Doe | payer_url = | payee = HostingCo | payee_url = | amount = 25 | currency_symbol = β¬ }} </table>
Will generate:
2014-06-01 | Sample expense | John Doe | HostingCo | β¬25 |