Template: Semorg-travel-expenses: Difference between revisions
From SemanticOrganization
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
|person={{{person|}}} | |person={{{person|}}} | ||
|project={{{project|}}} | |project={{{project|}}} | ||
| | |start={{{start|}}} | ||
|end={{{end|}}} | |||
|description={{{description|}}} | |description={{{description|}}} | ||
|quarter={{semorg-quarter|{{{ | |quarter={{{quarter|{{semorg-quarter|{{{start|}}}}}}}} | ||
|destination={{{destination|}}} | |destination={{{destination|}}} | ||
|year={{semorg-year|{{{ | |distance={{{distance|}}} | ||
|year={{{year|{{semorg-year|{{{start|}}}}}}}} | |||
|means={{{means|}}} | |means={{{means|}}} | ||
|duration={{semorg-duration|{{{start|}}}|{{{end|}}}}} | |||
|duration={{semorg-duration|{{{start | |||
|allowance-day={{{allowance-day|}}} | |allowance-day={{{allowance-day|}}} | ||
|allowance-night={{{allowance-night|}}} | |allowance-night={{{allowance-night|}}} | ||
|allowances={{semorg-allowances|{{{start | |allowances={{formatnum:{{semorg-allowances|{{{start|}}}|{{{end|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}}} | ||
|expenses={{formatnum:{{#if:{{{expenses|}}}|{{#expr:{{#replace:{{{expenses|}}}|,|.}}}}}}}} | |expenses={{formatnum:{{#if:{{{expenses|}}}|{{#expr:{{#replace:{{{expenses|}}}|,|.}}}}}}}} | ||
|total={{formatnum:{{#expr | |total={{formatnum:{{#expr:{{semorg-allowances|{{{start|}}}|{{{end|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}+{{formatnum:{{{expenses|0}}}|R}}}}}} | ||
}}{{#semorg-detail:travel-expenses | }}{{#semorg-detail:travel-expenses | ||
|heading={{int:semorg-travel-expenses-displaytitle|{{{person|}}}}} | |heading={{int:semorg-travel-expenses-displaytitle|{{{person|}}}}} | ||
Line 22: | Line 22: | ||
{{#semorg-table:travel-expenses | {{#semorg-table:travel-expenses | ||
|person={{semorg-person-link|{{{person|}}}}} | |person={{semorg-person-link|{{{person|}}}}} | ||
| | |start={{semorg-datetime|{{{start|}}}|long}} | ||
| | |end={{semorg-datetime|{{{end|}}}|long}} | ||
|duration={{# | |duration={{#semorg-datediff:{{{start|}}}|{{{end|}}}}} h | ||
|project={{{project|}}} | |project={{#if:{{{project|}}}|[[{{{project|}}}]]}} | ||
|description={{{description|}}} | |description={{{description|}}} | ||
|destination={{{destination|}}} | |destination={{{destination|}}} | ||
|means={{{means|}}} | |means={{{means|}}} | ||
|allowance-day={{#if:{{{allowance-day|}}}|€ {{{allowance-day|}}}}} | |allowance-day={{#if:{{{allowance-day|}}}|€ {{{allowance-day|}}}}}/Tag | ||
|allowance-night={{#if:{{{allowance-night|}}}|€ {{{allowance-night|}}}}} | |allowance-night={{#if:{{{allowance-night|}}}|€ {{{allowance-night|}}}}} | ||
|allowances=€ {{semorg-allowances|{{{start | |allowances={{#if:{{{allowance-day|}}}{{{allowance-night|}}}|€ {{formatnum:{{semorg-allowances|{{{start|}}}|{{{end|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}}}}} | ||
|expenses=€ {{formatnum:{{#if:{{{expenses|}}}|{{#expr:{{#replace:{{{expenses|}}}|,|.}}}}}}}} | |expenses=€ {{formatnum:{{#if:{{{expenses|}}}|{{#expr:{{#replace:{{{expenses|}}}|,|.}}}}}}}} | ||
|total=€ {{formatnum:{{#expr | |total=€ {{formatnum:{{#expr:{{semorg-allowances|{{{start|}}}|{{{end|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}+{{formatnum:{{{expenses|0}}}|R}}}}}} | ||
}}{{semorg-printable | }}{{semorg-printable | ||
|template=Semorg-travel-expenses-footer | |template=Semorg-travel-expenses-footer | ||
|class=semorg-travel-expenses-footer | |class=semorg-travel-expenses-footer | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 15:15, 20 March 2020
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