Template:ReportListRow: Difference between revisions
From Avi's Drug Diary
No edit summary |
Pretty substance lists; compact rating stars (no paragraph spacing) |
||
| Line 4: | Line 4: | ||
{{#if:{{{author|}}}|<td>{{{author}}}</td>}} | {{#if:{{{author|}}}|<td>{{{author}}}</td>}} | ||
<td>{{{category|}}}</td> | <td>{{{category|}}}</td> | ||
<td>{{{substances|}}}</td> | <td>{{#invoke:ReportListHelpers|prettyList|{{{substances|}}}}}</td> | ||
<td> | <td class="report-rating">{{#switch:{{{rating|}}}|1=★☆☆☆☆|2=★★☆☆☆|3=★★★☆☆|4=★★★★☆|5=★★★★★|#default=—}}</td> | ||
{{#switch:{{{rating|}}} | |||
|1=★☆☆☆☆ | |||
|2=★★☆☆☆ | |||
|3=★★★☆☆ | |||
|4=★★★★☆ | |||
|5=★★★★★ | |||
|#default=— | |||
}} | |||
</td> | |||
<td>{{{duration|}}}</td> | <td>{{{duration|}}}</td> | ||
</tr> | </tr> | ||
</includeonly> | </includeonly> | ||