Invoice-template
From SemanticOrganization
Messages
"semorg-invoice-template-template": "semorg-invoice-template", "semorg-invoice-template-category": "semorg-invoice-template", "semorg-invoice-template-form": "semorg-invoice-template", "semorg-invoice-template-page-name": "Invoice Templates", "semorg-invoice-template-entity-name": "Invoice Template", "semorg-form-invoice-template-create-title": "Create Invoice Template", "semorg-form-invoice-template-edit-title": "Edit Invoice Template", "semorg-form-invoice-template-page-name": "Invoice Templates", "semorg-form-invoice-template-template": "invoice", "semorg-form-invoice-template-rows": "template-name,recipient,description,period,items,outro", "semorg-list-invoice-template-headers": "invoice-template-name,recipient,invoice-amount-net-short",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-invoice-template-create-title}} |edit title={{int:semorg-form-invoice-template-edit-title}}<span class="d-none">: <page name></span> |page name={{int:semorg-form-invoice-template-page-name}}/<unique number;start=1> }}} {{semorg-form-template|invoice-template}} {{semorg-form-standard-inputs}} </includeonly>
as embedded:
Use this code, if this is not meant to be a standalone feature but rather a supplement that should be embedded in other forms. Add this line to a form definition that includes a field with the parameter holds template
. The second parameter of the semorg-form-template-embed
call should be the target field, specified with <feature>[<field>]
(e.g. meeting-group[files]
or {{int:semorg-meeting-group-template}}[files]
to respect template customization).
{{semorg-form-template-embed|invoice-template|}}
Category
Category:Semorg-invoice-template
{{semorg-category}}
Template
Template:Semorg-invoice-template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-invoice-template-category}}]]{{#semorg-set:invoice-template }}{{#semorg-detail:invoice-template}}{{#semorg-table:invoice-template }}</includeonly>
Row Template
Template:Semorg-invoice-template-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-invoice-template-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:invoice-template |heading={{int:semorg-invoice-template-page-name}} |formlink={{#semorg-formlink:invoice-template}} |links={{{links|}}} |query={{{query|}}} |sort={{{sort|}}} |order={{{order|}}} |limit={{{limit|}}} |filter links={{{filter links|}}} |filters={{{filters|}}} |category={{{category|}}} |headers={{{headers|}}} |row template={{{row template|}}} |tableclass={{{tableclass|}}} |title={{{title|}}} |sums={{{sums|}}} |csv={{{csv|}}} |default={{{default|}}} |returnto={{{returnto|}}} |help={{{help|}}} }}</includeonly>
Overview Page
{{semorg-invoice-template-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['invoice-template'] = [ "id" => "IT","fields" => [ ] ];