Template:Jam series detailed stats/row: Difference between revisions

From VNDev Wiki
handle cases where participants or entries are unknown
m maybe this?
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
| {{#show: {{{1}}} | ?}}
<tr><td>{{{num}}}</td>
| {{#show: {{{1}}} | ?Is number in series}}
<td {{#ifeq: {{{year}}} | {{CURRENTYEAR}} | style="background-color:yellow"}}>{{{year}}}</td>
| {{#ifeq: {{#show: {{{1}}} | ?Has year}} | {{CURRENTYEAR}} | <span style="background-color:yellow"> | <span>}} {{#show: {{{1}}} | ?Has year}}</span>
<td>{{#ifeq: {{{entries}}} | | --- | {{{entries}}} }} {{#ifexpr: {{#time: U | {{{end}}} }} > {{#time: U | {{{modif}}} }} |&#32;(partial)}}</td>
| {{#show: {{{1}}} | ?Has entries|default=---}} {{#ifexpr: {{#time: U | {{#show: {{{1}}} | ?Has end date}} }} > {{#time: U | {{#show: {{{1}}} | ?Modification date}} }} |&#32;(partial)}}
<td>{{#ifeq: {{{partic}}} | | --- | {{{partic}}} }} {{#ifexpr: {{#time: U | {{{end}}}  }} > {{#time: U | {{{modif}}} }} |&#32;(partial)}}</td>
| {{#show: {{{1}}} | ?Has participants|default=---}} {{#ifexpr: {{#time: U | {{#show: {{{1}}} | ?Has end date}}  }} > {{#time: U | {{#show: {{{1}}} | ?Modification date}}  }} |&#32;(partial)}}
<td>{{#iferror: {{#expr: {{formatnum: {{{partic}}} |R}} div {{formatnum: {{{entries}}} |R}} }}
| {{#ifexpr: {{#time: U | {{#show: {{{1}}} | ?Has end date}} }} < {{#time: U | {{#show: {{{1}}} | ?Modification date}}} |
  | ---
  {{#expr: {{#expr: {{formatnum: {{#show: {{{1}}} | ?Has participants}} |R}} div {{formatnum: {{#show: {{{1}}} | ?Has entries}} |R}} }} round 2}}
  |{{#ifexpr: {{#time: U | {{{end}}} }} < {{#time: U | {{{modif}}} }} |
  | --- }}
    {{#expr: {{#expr: {{formatnum: {{{partic}}} |R}} div {{formatnum: {{{entries}}} |R}} }} round 2}}
| {{#show: {{{1}}} | ?Has URL}}
    | ---
|-
  }}
}}</td>
<td>{{{url}}}</td>
</tr>

Latest revision as of 09:52, 23 January 2025

{{{num}}} {{{year}}} {{{entries}}} Expression error: Unexpected < operator. {{{partic}}} Expression error: Unexpected < operator. --- {{{url}}}