Template: Semorg-travel-expenses-row: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
m (Text replacement - "{{{?" to "{{{")
Line 1: Line 1:
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td data-sort-value="{{#titleparts:{{{?target|}}}||-1}}" data-sort-type="number">{{#show:{{{?person|}}}|?semorg-person-name}}<br>[[{{{?target|}}}|{{#titleparts:{{{?target|}}}||2}}]]</td>  
<td data-sort-value="{{#titleparts:{{{target|}}}||-1}}" data-sort-type="number">{{#show:{{{person|}}}|?semorg-person-name}}<br>[[{{{target|}}}|{{#titleparts:{{{target|}}}||2}}]]</td>  
<td data-sort-value="{{{?start|}}}">{{semorg-datetime|{{{?start|}}}}}{{#if:{{{?end|}}}
<td data-sort-value="{{{start|}}}">{{semorg-datetime|{{{start|}}}}}{{#if:{{{end|}}}
   |{{#ifeq:{{#time:Ymd|{{{?start|}}}}}|{{#time:Ymd|{{{?end}}}}}
   |{{#ifeq:{{#time:Ymd|{{{start|}}}}}|{{#time:Ymd|{{{end}}}}}
     |-{{#time:H:i|{{{?end}}}}}
     |-{{#time:H:i|{{{end}}}}}
     |<br>-{{semorg-datetime|{{{?end|}}}}}
     |<br>-{{semorg-datetime|{{{end|}}}}}
   }}
   }}
}}</td>  
}}</td>  
<td>{{#if:{{{?destination|}}}|{{{?destination|}}} {{#if:{{{?distance|}}}|({{{?distance}}}km)}}<br>}}{{{?description|}}}</td>  
<td>{{#if:{{{destination|}}}|{{{destination|}}} {{#if:{{{distance|}}}|({{{distance}}}km)}}<br>}}{{{description|}}}</td>  
<td style="text-align:right">{{#ifeq:{{{?allowances|}}}|0
<td style="text-align:right">{{#ifeq:{{{allowances|}}}|0
   |
   |
   |{{semorg-currency|{{formatnum:{{#expr:{{formatnum:{{{?allowances|0}}}|R}} - {{#if:{{{?allowance-night|}}}
   |{{semorg-currency|{{formatnum:{{#expr:{{formatnum:{{{allowances|0}}}|R}} - {{#if:{{{allowance-night|}}}
     |{{formatnum:{{{?allowance-night|0}}}|R}}
     |{{formatnum:{{{allowance-night|0}}}|R}}
     |0
     |0
   }} }} }} }}
   }} }} }} }}
}}{{#if:{{{?allowance-night|}}}
}}{{#if:{{{allowance-night|}}}
   |<br>N: {{semorg-currency|{{{?allowance-night|}}}}}
   |<br>N: {{semorg-currency|{{{allowance-night|}}}}}
}}</td>  
}}</td>  
<td style="text-align:right">{{#ifeq:{{{?expenses|}}}|0||{{semorg-currency|{{{?expenses|}}}}}}}</td>  
<td style="text-align:right">{{#ifeq:{{{expenses|}}}|0||{{semorg-currency|{{{expenses|}}}}}}}</td>  
<td style="text-align:right">{{semorg-currency|{{{?total|}}}}}</td>  
<td style="text-align:right">{{semorg-currency|{{{total|}}}}}</td>  
{{semorg-showedit
{{semorg-showedit
   |target={{{?target|}}}
   |target={{{target|}}}
}}
}}
</tr></includeonly>
</tr></includeonly>

Revision as of 20:16, 19 April 2021

This page is part of the Semantic Organization extension.