Template:ReportListRow: Difference between revisions
From Avi's Drug Diary
Pretty substance lists; compact rating stars (no paragraph spacing) |
Keep report list rows compact |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><tr> | ||
<tr> | |||
<td>[[{{{page}}}|{{{title}}}]]</td> | <td>[[{{{page}}}|{{{title}}}]]</td> | ||
{{#if:{{{author|}}}|<td>{{{author}}}</td>}} | {{#if:{{{author|}}}|<td>{{{author}}}</td>}} | ||
<td>{{{category|}}}</td> | <td>{{{category|}}}</td> | ||
<td>{{# | <td>{{#replace:{{{substances|}}}|;|, }}</td> | ||
<td class="report-rating">{{#switch:{{{rating|}}}|1=★☆☆☆☆|2=★★☆☆☆|3=★★★☆☆|4=★★★★☆|5=★★★★★|#default=—}}</td> | <td class="report-rating" style="white-space:nowrap;width:1%;text-align:left;letter-spacing:-0.06em">{{#switch:{{{rating|}}}|1=★☆☆☆☆|2=★★☆☆☆|3=★★★☆☆|4=★★★★☆|5=★★★★★|#default=—}}</td> | ||
<td>{{{duration|}}}</td> | <td>{{{duration|}}}</td> | ||
</tr> | </tr></includeonly> | ||
</includeonly> | |||