Template:ReportSidebar: Difference between revisions
From Avi's Drug Diary
No edit summary |
Compact template; remove leading <p> whitespace |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#cargo_declare: | {{#cargo_declare: | ||
_table=Reports | _table=Reports | ||
| Line 16: | Line 15: | ||
|DrugClasses=List (;) of String | |DrugClasses=List (;) of String | ||
}} | }} | ||
</noinclude><includeonly>{{#cargo_store: | |||
</noinclude><includeonly> | |||
{{#cargo_store: | |||
_table=Reports | _table=Reports | ||
|Title={{{title|}}} | |Title={{{title|}}} | ||
| Line 33: | Line 29: | ||
|Rating={{{rating|}}} | |Rating={{{rating|}}} | ||
|DrugClasses={{{drug_classes|}}} | |DrugClasses={{{drug_classes|}}} | ||
}} | }}<div class="report-sidebar" style="float:right;width:340px;margin:0 0 1em 1.25em;clear:right"> | ||
<table class="wikitable" style="width:100%;margin:0"> | |||
<div style="float:right; width:340px; margin | <tr><th colspan="2">{{{title|Untitled}}}</th></tr> | ||
{{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}} | |||
<table class="wikitable" style="width:100%;"> | {{#if:{{{author|}}}|<tr><th>Author</th><td>{{{author}}}</td></tr>}} | ||
<tr> | {{#if:{{{contact|}}}|<tr><th>Contact</th><td>{{{contact}}}</td></tr>}} | ||
<th colspan="2">{{{title|Untitled}}}</th> | {{#if:{{{experience_date|}}}|<tr><th>Experience Date</th><td>{{{experience_date}}}</td></tr>}} | ||
</tr> | {{#if:{{{experience_level|}}}|<tr><th>Experience Level</th><td>{{{experience_level}}}</td></tr>}} | ||
{{#if:{{{duration|}}}|<tr><th>Duration</th><td>{{{duration}}}</td></tr>}} | |||
{{#if:{{{type|}}}| | {{#if:{{{setting|}}}|<tr><th>Setting</th><td>{{{setting}}}</td></tr>}} | ||
<tr> | {{#if:{{{substances|}}}|<tr><th>Substance(s)</th><td>{{{substances}}}</td></tr>}} | ||
<th>Type</th> | {{#if:{{{rating|}}}|<tr><th>Rating</th><td>{{{rating}}}</td></tr>}} | ||
<td>{{{type}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{author|}}}| | |||
<tr> | |||
<th>Author</th> | |||
<td>{{{author}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{contact|}}}| | |||
<tr> | |||
<th>Contact</th> | |||
<td>{{{contact}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{experience_date|}}}| | |||
<tr> | |||
<th>Experience Date</th> | |||
<td>{{{experience_date}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{experience_level|}}}| | |||
<tr> | |||
<th>Experience Level</th> | |||
<td>{{{experience_level}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{duration|}}}| | |||
<tr> | |||
<th>Duration</th> | |||
<td>{{{duration}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{setting|}}}| | |||
<tr> | |||
<th>Setting</th> | |||
<td>{{{setting}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{substances|}}}| | |||
<tr> | |||
<th>Substance(s)</th> | |||
<td>{{{substances}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{rating|}}}| | |||
<tr> | |||
<th>Rating</th> | |||
<td>{{{rating}}}</td> | |||
</tr> | |||
}} | |||
</table> | </table> | ||
{{#if:{{{dosage|}}}|<div class="report-dosage" style="margin-top:0.5em">{{{dosage}}}</div>}} | |||
<div class="report-dosage"> | </div></includeonly> | ||
{{{dosage | |||
</div> | |||
</div> | |||
</includeonly> | |||
Latest revision as of 17:44, 9 August 2026
This template defines the table "Reports". View table.