Template: Semorg-travel-expenses: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-travel-expenses-category}}]]{{DISPLAYTITLE:Travel Expenses for {{{person|}}}}}{{#semorg-set:travel-expenses  
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-travel-expenses-category}}]]{{#semorg-set:travel-expenses  
   |person={{{person|}}}  
   |person={{{person|}}}  
  |allowance-night={{{allowance-night|}}}
   |project={{{project|}}}  
   |project={{{project|}}}  
   |date={{{date|}}}  
   |start={{{start|}}}
   |expenses={{{expenses|}}}  
   |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|}}}}}
   |allowance-day={{{allowance-day|}}}  
   |allowance-day={{{allowance-day|}}}  
   |end-time={{{end-time|}}}
   |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={{semorg-person-link|{{{person|}}}}}
   |person={{semorg-person-link|{{{person|}}}}}
   |date={{{date|}}}  
   |start={{semorg-datetime|{{{start|}}}|long}}
   |time={{{start-time|}}}{{#if:{{{start-time|}}}|{{#if:{{{end-time|}}}|-}}}}{{{end-time|}}}
   |end={{semorg-datetime|{{{end|}}}|long}}
  |project={{{project|}}}  
  |duration={{#semorg-datediff:{{{start|}}}|{{{end|}}}}} h
  |project={{#if:{{{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|}}}}}/Tag
   |allowance-night={{{allowance-night|}}}  
   |allowance-night={{#if:{{{allowance-night|}}}|€ {{{allowance-night|}}}}}
   |allowances={{semorg-allowances|{{{start-time|}}}|{{{end-time|}}}|{{{allowance-day|}}}|{{{allowance-night|}}}
   |allowances={{#if:{{{allowance-day|}}}{{{allowance-night|}}}|€ {{formatnum:{{semorg-allowances|{{{start|}}}|{{{end|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}}}}}
   |expenses={{{expenses|}}}  
   |expenses=€ {{formatnum:{{#if:{{{expenses|}}}|{{#expr:{{#replace:{{{expenses|}}}|,|.}}}}}}}}
   |total={{#expr:{{semorg-allowances|{{{start-time|}}}|{{{end-time|}}}|{{{allowance-day|}}}|{{{allowance-night|}}}+{{{expenses|0}}}}}
   |total=€ {{formatnum:{{#expr:{{semorg-allowances|{{{start|}}}|{{{end|}}}|{{{allowance-day|0}}}|{{{allowance-night|0}}}}}+{{formatnum:{{{expenses|0}}}|R}}}}}}
}}
}}{{semorg-printable
</includeonly>
  |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