Template: Semorg-travel-expenses: Difference between revisions
From SemanticOrganization
(Created page with "<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-travel-expenses-category}}]]{{DISPLAYTITLE:Travel Expenses for {{{person|}}}}}{{#semorg-set:travel...") |
No edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-travel-expenses-category}}]] | <noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-travel-expenses-category}}]]{{#semorg-set:travel-expenses | ||
|person={{{person|}}} | |person={{{person|}}} | ||
|project={{{project|}}} | |project={{{project|}}} | ||
| | |start={{{start|}}} | ||
| | |end={{{end|}}} | ||
|description={{{description|}}} | |description={{{description|}}} | ||
|quarter={{{quarter|}}} | |quarter={{{quarter|{{semorg-quarter|{{{start|}}}}}}}} | ||
|destination={{{destination|}}} | |destination={{{destination|}}} | ||
|year={{{year|}}} | |distance={{{distance|}}} | ||
|year={{{year|{{semorg-year|{{{start|}}}}}}}} | |||
|means={{{means|}}} | |means={{{means|}}} | ||
| | |duration={{semorg-duration|{{{start|}}}|{{{end|}}}}} | ||
|allowance-day={{{allowance-day|}}} | |allowance-day={{{allowance-day|}}} | ||
|end- | |allowance-night={{{allowance-night|}}} | ||
|allowances={{formatnum:{{semorg-allowances|{{{start|}}}|{{{end|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}}} | |||
|expenses={{formatnum:{{#if:{{{expenses|}}}|{{#expr:{{#replace:{{{expenses|}}}|,|.}}}}}}}} | |||
|total={{formatnum:{{#expr:{{semorg-allowances|{{{start|}}}|{{{end|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}+{{formatnum:{{{expenses|0}}}|R}}}}}} | |||
}}{{#semorg-detail:travel-expenses | |||
|heading={{int:semorg-travel-expenses-displaytitle|{{{person|}}}}} | |||
}} | }} | ||
{{#semorg-table:travel-expenses | {{#semorg-table:travel-expenses | ||
|person={{{person|}}} | |person={{semorg-person-link|{{{person|}}}}} | ||
| | |start={{semorg-datetime|{{{start|}}}|long}} | ||
| | |end={{semorg-datetime|{{{end|}}}|long}} | ||
| | |duration={{#semorg-datediff:{{{start|}}}|{{{end|}}}}} h | ||
| | |project={{#if:{{{project|}}}|[[{{{project|}}}]]}} | ||
|description={{{description|}}} | |description={{{description|}}} | ||
|destination={{{destination|}}} | |destination={{{destination|}}} | ||
|means={{{means|}}} | |means={{{means|}}} | ||
| | |allowance-day={{#if:{{{allowance-day|}}}|€ {{{allowance-day|}}}}}/Tag | ||
|allowance- | |allowance-night={{#if:{{{allowance-night|}}}|€ {{{allowance-night|}}}}} | ||
|end- | |allowances={{#if:{{{allowance-day|}}}{{{allowance-night|}}}|€ {{formatnum:{{semorg-allowances|{{{start|}}}|{{{end|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}}}}} | ||
}} | |expenses=€ {{formatnum:{{#if:{{{expenses|}}}|{{#expr:{{#replace:{{{expenses|}}}|,|.}}}}}}}} | ||
</includeonly> | |total=€ {{formatnum:{{#expr:{{semorg-allowances|{{{start|}}}|{{{end|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}+{{formatnum:{{{expenses|0}}}|R}}}}}} | ||
}}{{semorg-printable | |||
|template=Semorg-travel-expenses-footer | |||
|class=semorg-travel-expenses-footer | |||
}}</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