Template: Semorg-travel-expenses: Difference between revisions
From SemanticOrganization
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
|allowance-night={{{allowance-night|}}} | |allowance-night={{{allowance-night|}}} | ||
|allowances={{semorg-allowances|{{{start-time|}}}|{{{end-time|}}}|{{{allowance-day|}}}|{{{allowance-night|}}}}} | |allowances={{semorg-allowances|{{{start-time|}}}|{{{end-time|}}}|{{{allowance-day|}}}|{{{allowance-night|}}}}} | ||
|expenses={{{expenses|}}} | |expenses={{formatnum:{{#if:{{{expenses|}}}|{{#expr:{{#replace:{{{expenses|}}}|,|.}}}}}}}} | ||
|total={{formatnum:{{#expr:{{formatnum:{{semorg-allowances|{{{start-time|}}}|{{{end-time|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}|R}}+{{formatnum:{{{expenses|0}}}|R}}}}}} | |total={{formatnum:{{#expr:{{formatnum:{{semorg-allowances|{{{start-time|}}}|{{{end-time|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}|R}}+{{formatnum:{{{expenses|0}}}|R}}}}}} | ||
}}{{#semorg-detail:travel-expenses | }}{{#semorg-detail:travel-expenses | ||
Line 24: | Line 24: | ||
|date={{semorg-date|{{{date|}}}|long}} | |date={{semorg-date|{{{date|}}}|long}} | ||
|time={{{start-time|}}}{{#if:{{{start-time|}}}|{{#if:{{{end-time|}}}|-}}}}{{{end-time|}}} | |time={{{start-time|}}}{{#if:{{{start-time|}}}|{{#if:{{{end-time|}}}|-}}}}{{{end-time|}}} | ||
|duration={{#expr:{{semorg-duration|{{{start-time|}}}|{{{end-time|}}}}}/60 round 0}} h | |||
|project={{{project|}}} | |project={{{project|}}} | ||
|description={{{description|}}} | |description={{{description|}}} | ||
|destination={{{destination|}}} | |destination={{{destination|}}} | ||
|means={{{means|}}} | |means={{{means|}}} | ||
|allowance-day=€ {{{allowance-day|}}} | |allowance-day={{#if:{{{allowance-day|}}}|€ {{{allowance-day|}}}}} | ||
|allowance-night=€ {{{allowance-night|}}} | |allowance-night={{#if:{{{allowance-night|}}}|€ {{{allowance-night|}}}}} | ||
|allowances=€ {{semorg-allowances|{{{start-time|}}}|{{{end-time|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}} | |allowances=€ {{semorg-allowances|{{{start-time|}}}|{{{end-time|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}} | ||
|expenses=€ {{formatnum:{{#if:{{{expenses|}}}|{{#expr:{{#replace:{{{expenses|}}}|,|.}}}}}}}} | |expenses=€ {{formatnum:{{#if:{{{expenses|}}}|{{#expr:{{#replace:{{{expenses|}}}|,|.}}}}}}}} |
Revision as of 21:23, 6 October 2019
This page is part of the Semantic Organization extension.
If you want to customize this template you can copy its contents to another page (use for example Template:Semorg-travel-expenses-custom) and change the following system message to the name of the newly created page: MediaWiki:semorg-travel-expenses-template