Template: Semorg-travel-expenses: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
No edit summary
 
(10 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={{{person|}}}  
   |person={{semorg-person-link|{{{person|}}}}}
   |allowance-night={{{allowance-night|}}}  
   |start={{semorg-datetime|{{{start|}}}|long}}
   |project={{{project|}}}  
   |end={{semorg-datetime|{{{end|}}}|long}}
   |date={{{date|}}}  
   |duration={{#semorg-datediff:{{{start|}}}|{{{end|}}}}} h
   |expenses={{{expenses|}}}  
   |project={{#if:{{{project|}}}|[[{{{project|}}}]]}}
   |description={{{description|}}}  
   |description={{{description|}}}  
  |quarter={{{quarter|}}}
   |destination={{{destination|}}}  
   |destination={{{destination|}}}  
  |year={{{year|}}}
   |means={{{means|}}}  
   |means={{{means|}}}  
   |start-time={{{start-time|}}}  
   |allowance-day={{#if:{{{allowance-day|}}}|€ {{{allowance-day|}}}}}/Tag
   |allowance-day={{{allowance-day|}}}  
   |allowance-night={{#if:{{{allowance-night|}}}|€ {{{allowance-night|}}}}}
   |end-time={{{end-time|}}}
   |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