Template: Semorg-travel-expenses: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
No edit summary
 
Line 2: Line 2:
   |person={{{person|}}}  
   |person={{{person|}}}  
   |project={{{project|}}}  
   |project={{{project|}}}  
   |date={{{date|}}}  
   |start={{{start|}}}
  |end={{{end|}}}
   |description={{{description|}}}  
   |description={{{description|}}}  
   |quarter={{semorg-quarter|{{{quarter|}}}}}
   |quarter={{{quarter|{{semorg-quarter|{{{start|}}}}}}}}
   |destination={{{destination|}}}  
   |destination={{{destination|}}}  
   |year={{semorg-year|{{{year|}}}}}
  |distance={{{distance|}}}
   |year={{{year|{{semorg-year|{{{start|}}}}}}}}
   |means={{{means|}}}  
   |means={{{means|}}}  
  |start-time={{{start-time|}}}
   |duration={{semorg-duration|{{{start|}}}|{{{end|}}}}}
  |end-time={{{end-time|}}}
   |duration={{semorg-duration|{{{start-time|}}}|{{{end-time|}}}}}
   |allowance-day={{{allowance-day|}}}  
   |allowance-day={{{allowance-day|}}}  
   |allowance-night={{{allowance-night|}}}  
   |allowance-night={{{allowance-night|}}}  
   |allowances={{semorg-allowances|{{{start-time|}}}|{{{end-time|}}}|{{{allowance-day|}}}|{{{allowance-night|}}}}}
   |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:{{formatnum:{{semorg-allowances|{{{start-time|}}}|{{{end-time|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}|R}}+{{formatnum:{{{expenses|0}}}|R}}}}}}
   |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|}}}}}
   |date={{semorg-date|{{{date|}}}|long}}
   |start={{semorg-datetime|{{{start|}}}|long}}
   |time={{{start-time|}}}{{#if:{{{start-time|}}}|{{#if:{{{end-time|}}}|-}}}}{{{end-time|}}}
   |end={{semorg-datetime|{{{end|}}}|long}}
   |duration={{#expr:{{semorg-duration|{{{start-time|}}}|{{{end-time|}}}}}/60 round 0}} h
   |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-time|}}}|{{{end-time|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}
   |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:{{formatnum:{{semorg-allowances|{{{start-time|}}}|{{{end-time|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}|R}}+{{formatnum:{{{expenses|0}}}|R}}}}}}
   |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